Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002127/0.002126, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.08/2.08, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001146/0.001146, allocations: 92.69 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3259/0.3259, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.056e-05/2.066e-05, allocations: 224 / 418.3 MB, free: 40.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4302/0.4302, allocations: 58.85 MB / 477.2 MB, free: 5.164 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.144/9.574, allocations: 2.842 GB / 3.308 GB, free: 100.7 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002687/9.575, allocations: 79.5 kB / 3.308 GB, free: 100.7 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 4.546/14.12, allocations: 0.8658 GB / 4.174 GB, free: 36.7 MB / 0.5265 GB Notification: Performance of FrontEnd: time 2.625e-06/14.12, allocations: 0 / 4.174 GB, free: 36.7 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.0004397/14.12, allocations: 61.09 kB / 4.174 GB, free: 36.68 MB / 0.5265 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.02248/14.14, allocations: 3.768 MB / 4.178 GB, free: 34.6 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 5.845e-05/14.14, allocations: 7.219 kB / 4.178 GB, free: 34.6 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01306/14.16, allocations: 0.7842 MB / 4.178 GB, free: 34.4 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01114/14.17, allocations: 1.963 MB / 4.18 GB, free: 33.5 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003557/14.17, allocations: 80.05 kB / 4.18 GB, free: 33.49 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001213/14.17, allocations: 120.6 kB / 4.18 GB, free: 33.48 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009429/14.18, allocations: 2.301 MB / 4.183 GB, free: 32.69 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01142/14.19, allocations: 2.557 MB / 4.185 GB, free: 31.52 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001139/14.19, allocations: 7.875 kB / 4.185 GB, free: 31.51 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005055/14.19, allocations: 3.938 kB / 4.185 GB, free: 31.51 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004345/14.19, allocations: 149 kB / 4.185 GB, free: 31.49 MB / 0.5265 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8918/15.08, allocations: 124.8 MB / 4.307 GB, free: 22.98 MB / 0.5577 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003914/15.09, allocations: 1.45 MB / 4.309 GB, free: 22.95 MB / 0.5577 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002431/15.09, allocations: 0.9737 MB / 4.31 GB, free: 22.93 MB / 0.5577 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05654/15.15, allocations: 17.07 MB / 4.326 GB, free: 27.77 MB / 0.5733 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00294/15.15, allocations: 1.161 MB / 4.327 GB, free: 27.62 MB / 0.5733 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001809/15.15, allocations: 140.8 kB / 4.327 GB, free: 27.61 MB / 0.5733 GB Notification: Performance of pre-optimization done (n=145): time 1.096e-05/15.15, allocations: 3.938 kB / 4.327 GB, free: 27.61 MB / 0.5733 GB Notification: Performance of matching and sorting (n=157): time 0.05656/15.21, allocations: 8.92 MB / 4.336 GB, free: 26.09 MB / 0.5733 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002312/15.21, allocations: 358.8 kB / 4.337 GB, free: 25.69 MB / 0.5733 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002262/15.21, allocations: 1.037 MB / 4.338 GB, free: 25.52 MB / 0.5733 GB Notification: Performance of collectPreVariables (initialization): time 0.0006044/15.21, allocations: 29.17 kB / 4.338 GB, free: 25.49 MB / 0.5733 GB Notification: Performance of collectInitialEqns (initialization): time 0.001006/15.21, allocations: 0.8942 MB / 4.338 GB, free: 25.11 MB / 0.5733 GB Notification: Performance of collectInitialBindings (initialization): time 0.000933/15.21, allocations: 0.5017 MB / 4.339 GB, free: 24.85 MB / 0.5733 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001968/15.21, allocations: 2.312 kB / 4.339 GB, free: 24.85 MB / 0.5733 GB Notification: Performance of setup shared object (initialization): time 0.0002338/15.21, allocations: 385.1 kB / 4.339 GB, free: 24.54 MB / 0.5733 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002133/15.22, allocations: 0.9101 MB / 4.34 GB, free: 24.54 MB / 0.5733 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00425/15.22, allocations: 1.297 MB / 4.341 GB, free: 24.14 MB / 0.5733 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02346/15.24, allocations: 1.832 MB / 4.343 GB, free: 24.1 MB / 0.5733 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.721e-05/15.24, allocations: 6.391 kB / 4.343 GB, free: 24.1 MB / 0.5733 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.0329/15.28, allocations: 3.447 MB / 4.347 GB, free: 23.93 MB / 0.5733 GB Notification: Performance of prepare postOptimizeDAE: time 0.002366/15.28, allocations: 3.731 MB / 4.35 GB, free: 20.01 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-05/15.28, allocations: 8.406 kB / 4.35 GB, free: 20.01 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005709/15.29, allocations: 497.1 kB / 4.351 GB, free: 19.97 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005744/15.29, allocations: 446.7 kB / 4.351 GB, free: 19.97 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005168/15.3, allocations: 2.813 MB / 4.354 GB, free: 17.88 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006979/15.3, allocations: 271.3 kB / 4.354 GB, free: 17.85 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001002/15.3, allocations: 97.89 kB / 4.354 GB, free: 17.85 MB / 0.5733 GB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/15.3, allocations: 5.938 kB / 4.354 GB, free: 17.85 MB / 0.5733 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02688/15.33, allocations: 3.02 MB / 4.357 GB, free: 17.75 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.263e-05/15.33, allocations: 10.62 kB / 4.357 GB, free: 17.75 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001036/15.33, allocations: 184 kB / 4.357 GB, free: 17.73 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005797/15.34, allocations: 463 kB / 4.358 GB, free: 17.73 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002838/15.34, allocations: 1.887 MB / 4.36 GB, free: 16.17 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005411/15.35, allocations: 241.1 kB / 4.36 GB, free: 16.14 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008602/15.35, allocations: 95.92 kB / 4.36 GB, free: 16.14 MB / 0.5733 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 205 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001275/15.35, allocations: 238.8 kB / 4.36 GB, free: 15.96 MB / 0.5733 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02693/15.38, allocations: 2.981 MB / 4.363 GB, free: 15.75 MB / 0.5733 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001297/15.38, allocations: 181.9 kB / 4.363 GB, free: 15.66 MB / 0.5733 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02481/15.4, allocations: 6.768 MB / 4.37 GB, free: 15.14 MB / 0.5733 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.572e-05/15.4, allocations: 72.31 kB / 4.37 GB, free: 15.14 MB / 0.5733 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.45e-05/15.4, allocations: 0 / 4.37 GB, free: 15.14 MB / 0.5733 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02017/15.42, allocations: 5.902 MB / 4.376 GB, free: 14.38 MB / 0.5733 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03236/15.46, allocations: 10.07 MB / 4.386 GB, free: 13.41 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.834e-05/15.46, allocations: 9.562 kB / 4.386 GB, free: 13.41 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002612/15.46, allocations: 312.8 kB / 4.386 GB, free: 13.4 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003526/15.46, allocations: 1.238 MB / 4.387 GB, free: 13.33 MB / 0.5733 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005307/15.46, allocations: 44.86 kB / 4.387 GB, free: 13.33 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004312/15.47, allocations: 3.401 MB / 4.39 GB, free: 11.22 MB / 0.5733 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.248e-05/15.47, allocations: 8.562 kB / 4.39 GB, free: 11.22 MB / 0.5733 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02334/15.49, allocations: 7.187 MB / 4.398 GB, free: 10.07 MB / 0.5733 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002387/15.49, allocations: 0.6696 MB / 4.398 GB, free: 9.805 MB / 0.5733 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007639/15.49, allocations: 23.56 kB / 4.398 GB, free: 9.805 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003136/15.5, allocations: 162.3 kB / 4.398 GB, free: 9.781 MB / 0.5733 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004621/15.5, allocations: 142.8 kB / 4.398 GB, free: 9.777 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002462/15.5, allocations: 70.72 kB / 4.399 GB, free: 9.777 MB / 0.5733 GB Notification: Performance of sorting global known variables: time 0.00218/15.5, allocations: 1.008 MB / 4.4 GB, free: 9.668 MB / 0.5733 GB Notification: Performance of sort global known variables: time 7.51e-07/15.5, allocations: 0 / 4.4 GB, free: 9.668 MB / 0.5733 GB Notification: Performance of remove unused functions: time 0.01305/15.51, allocations: 2.506 MB / 4.402 GB, free: 9.559 MB / 0.5733 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (163): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.03812/15.55, allocations: 11.73 MB / 4.413 GB, free: 22.18 MB / 0.589 GB Notification: Performance of simCode: created initialization part: time 0.01075/15.56, allocations: 4.262 MB / 4.418 GB, free: 20.08 MB / 0.589 GB Notification: Performance of simCode: created event and clocks part: time 1.498e-05/15.56, allocations: 0 / 4.418 GB, free: 20.08 MB / 0.589 GB Notification: Performance of simCode: created simulation system equations: time 0.004959/15.57, allocations: 2.138 MB / 4.42 GB, free: 18.96 MB / 0.589 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007531/15.57, allocations: 0.7984 MB / 4.42 GB, free: 18.51 MB / 0.589 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02146/15.6, allocations: 6.347 MB / 4.427 GB, free: 14.08 MB / 0.589 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002893/15.6, allocations: 2.057 MB / 4.429 GB, free: 12.54 MB / 0.589 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002623/15.6, allocations: 1.145 MB / 4.43 GB, free: 12.39 MB / 0.589 GB Notification: Performance of SimCode: time 1.714e-06/15.6, allocations: 0 / 4.43 GB, free: 12.39 MB / 0.589 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.342/20.94, allocations: 119.1 MB / 4.546 GB, free: 89.86 MB / 0.589 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat