Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.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.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",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.001406/0.001406, allocations: 182.8 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.828/1.828, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001027/0.001028, allocations: 102.8 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2335/0.2335, allocations: 43.56 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003335/0.0003335, allocations: 8 kB / 431.5 MB, free: 19.49 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1249, allocations: 58.85 MB / 490.3 MB, free: 8.566 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.526/6.651, allocations: 2.825 GB / 3.304 GB, free: 79.71 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002721/6.652, allocations: 75.97 kB / 3.304 GB, free: 79.63 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.155/9.806, allocations: 0.8017 GB / 4.106 GB, free: 33.16 MB / 0.5261 GB Notification: Performance of FrontEnd: time 5.801e-06/9.806, allocations: 2.844 kB / 4.106 GB, free: 33.16 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003379/9.807, allocations: 66.12 kB / 4.106 GB, free: 33.14 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.02225/9.829, allocations: 4.256 MB / 4.11 GB, free: 30.98 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/9.829, allocations: 7.938 kB / 4.11 GB, free: 30.98 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001626/9.831, allocations: 306.6 kB / 4.111 GB, free: 30.93 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006654/9.837, allocations: 0.8369 MB / 4.111 GB, free: 30.79 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006976/9.844, allocations: 2.112 MB / 4.113 GB, free: 30.27 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002672/9.845, allocations: 180 kB / 4.114 GB, free: 30.27 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009033/9.845, allocations: 197 kB / 4.114 GB, free: 30.26 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00802/9.853, allocations: 3.739 MB / 4.117 GB, free: 29.69 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.494e-05/9.854, allocations: 7.781 kB / 4.117 GB, free: 29.68 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003005/9.854, allocations: 90.34 kB / 4.117 GB, free: 29.68 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002009/9.854, allocations: 166.8 kB / 4.118 GB, free: 29.68 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008249/9.862, allocations: 3.558 MB / 4.121 GB, free: 29.64 MB / 0.5261 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.02208/9.885, allocations: 14.93 MB / 4.136 GB, free: 19.94 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004639/9.889, allocations: 2.251 MB / 4.138 GB, free: 19.25 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04314/9.932, allocations: 24.53 MB / 4.162 GB, free: 19.14 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004624/9.937, allocations: 1.711 MB / 4.164 GB, free: 18.61 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001723/9.939, allocations: 196.4 kB / 4.164 GB, free: 18.5 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=162): time 5.3e-06/9.939, allocations: 0 / 4.164 GB, free: 18.5 MB / 0.5417 GB Notification: Performance of matching and sorting (n=174): time 0.02617/9.965, allocations: 9.373 MB / 4.173 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003818/9.966, allocations: 414.9 kB / 4.173 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002938/9.968, allocations: 1.567 MB / 4.175 GB, free: 10.44 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002701/9.969, allocations: 61.7 kB / 4.175 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008272/9.97, allocations: 0.978 MB / 4.176 GB, free: 9.48 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005441/9.97, allocations: 0.5874 MB / 4.176 GB, free: 8.953 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001358/9.97, allocations: 36 kB / 4.176 GB, free: 8.918 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001895/9.97, allocations: 389.1 kB / 4.177 GB, free: 8.555 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002224/9.973, allocations: 1.171 MB / 4.178 GB, free: 7.582 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002624/9.975, allocations: 1.626 MB / 4.18 GB, free: 6.008 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00252/9.978, allocations: 1.416 MB / 4.181 GB, free: 4.75 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/9.978, allocations: 3.938 kB / 4.181 GB, free: 4.746 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.007135/9.985, allocations: 3.6 MB / 4.184 GB, free: 1.574 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001745/9.987, allocations: 4.054 MB / 4.188 GB, free: 13.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.386e-05/9.987, allocations: 15.14 kB / 4.188 GB, free: 13.19 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005186/9.992, allocations: 0.9809 MB / 4.189 GB, free: 12.47 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002543/9.995, allocations: 468 kB / 4.19 GB, free: 12.09 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003091/9.998, allocations: 3.171 MB / 4.193 GB, free: 9.035 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003333/10, allocations: 236.5 kB / 4.193 GB, free: 8.855 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005412/10, allocations: 99.5 kB / 4.193 GB, free: 8.766 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/10, allocations: 4 kB / 4.193 GB, free: 8.762 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007356/10.01, allocations: 3.266 MB / 4.196 GB, free: 5.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-05/10.01, allocations: 19.45 kB / 4.196 GB, free: 5.914 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001422/10.01, allocations: 376.3 kB / 4.197 GB, free: 5.617 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002143/10.01, allocations: 486.1 kB / 4.197 GB, free: 5.219 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004554/10.02, allocations: 4.118 MB / 4.201 GB, free: 1.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003822/10.02, allocations: 232.6 kB / 4.201 GB, free: 0.9805 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004836/10.02, allocations: 102.2 kB / 4.202 GB, free: 0.8906 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 209 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.002386/10.02, allocations: 0.7585 MB / 4.202 GB, free: 188 kB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.4199/10.44, allocations: 218.3 kB / 4.203 GB, free: 64.23 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01403/10.46, allocations: 7.95 MB / 4.21 GB, free: 63.71 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.453e-05/10.46, allocations: 82.45 kB / 4.21 GB, free: 63.71 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/10.46, allocations: 0 / 4.21 GB, free: 63.71 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01021/10.47, allocations: 6.982 MB / 4.217 GB, free: 62.8 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02146/10.49, allocations: 11.09 MB / 4.228 GB, free: 62.14 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.716e-05/10.49, allocations: 0 / 4.228 GB, free: 62.14 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001938/10.49, allocations: 351.8 kB / 4.228 GB, free: 62.14 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007132/10.5, allocations: 2.166 MB / 4.23 GB, free: 62.06 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007177/10.5, allocations: 67.97 kB / 4.231 GB, free: 62.06 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003819/10.5, allocations: 4.105 MB / 4.235 GB, free: 59.97 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/10.5, allocations: 1.031 kB / 4.235 GB, free: 59.97 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01133/10.52, allocations: 8.119 MB / 4.242 GB, free: 59.43 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002542/10.52, allocations: 0.7756 MB / 4.243 GB, free: 59.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006713/10.52, allocations: 58.33 kB / 4.243 GB, free: 59.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001921/10.52, allocations: 195.6 kB / 4.243 GB, free: 59.15 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003163/10.52, allocations: 150.8 kB / 4.244 GB, free: 59.15 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001624/10.52, allocations: 79.02 kB / 4.244 GB, free: 59.15 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.00218/10.52, allocations: 1.39 MB / 4.245 GB, free: 59 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.9e-07/10.52, allocations: 0 / 4.245 GB, free: 59 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01282/10.54, allocations: 2.86 MB / 4.248 GB, free: 59 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (170): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.02427/10.56, allocations: 10.66 MB / 4.258 GB, free: 57.68 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01007/10.57, allocations: 5.594 MB / 4.264 GB, free: 57.1 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/10.57, allocations: 0 / 4.264 GB, free: 57.1 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00359/10.57, allocations: 2.439 MB / 4.266 GB, free: 56.94 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005205/10.58, allocations: 0.9549 MB / 4.267 GB, free: 56.92 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03306/10.61, allocations: 17.75 MB / 4.284 GB, free: 45.73 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005072/10.62, allocations: 2.301 MB / 4.287 GB, free: 44.96 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.005619/10.62, allocations: 2.241 MB / 4.289 GB, free: 44.92 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002787/10.63, allocations: 1.308 MB / 4.29 GB, free: 44.91 MB / 0.5573 GB Notification: Performance of SimCode: time 2.064e-06/10.63, allocations: 1.031 kB / 4.29 GB, free: 44.91 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.199/10.83, allocations: 118.2 MB / 4.405 GB, free: 12 kB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002635/10.83, allocations: 262.4 kB / 4.406 GB, free: 15.66 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.838/17.66, allocations: 0 / 4.406 GB, free: 15.66 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat