Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001735/0.001735, allocations: 176.5 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.555/1.555, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 97.66 kB / 292.1 MB, free: 10.9 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4006/0.4006, allocations: 44.22 MB / 387.5 MB, free: 38.82 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003704/0.0003704, allocations: 8 kB / 460 MB, free: 1.41 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4476/0.448, allocations: 61.9 MB / 0.5096 GB, free: 38.29 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.788/7.236, allocations: 2.83 GB / 3.34 GB, free: 19.79 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/7.236, allocations: 87.94 kB / 3.34 GB, free: 19.7 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.255/10.49, allocations: 0.8174 GB / 4.157 GB, free: 16.89 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.284e-06/10.49, allocations: 0 / 4.157 GB, free: 16.89 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003375/10.49, allocations: 63.98 kB / 4.157 GB, free: 16.83 MB / 0.5417 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.01768/10.51, allocations: 4.263 MB / 4.161 GB, free: 12.48 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/10.51, allocations: 12.03 kB / 4.161 GB, free: 12.47 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001494/10.51, allocations: 299.1 kB / 4.162 GB, free: 12.17 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006716/10.52, allocations: 0.8374 MB / 4.163 GB, free: 11.33 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006818/10.52, allocations: 2.184 MB / 4.165 GB, free: 9.09 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00027/10.52, allocations: 176.1 kB / 4.165 GB, free: 8.918 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001089/10.53, allocations: 207.8 kB / 4.165 GB, free: 8.715 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01094/10.54, allocations: 3.733 MB / 4.169 GB, free: 4.773 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001116/10.54, allocations: 7.844 kB / 4.169 GB, free: 4.766 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009002/10.54, allocations: 91.95 kB / 4.169 GB, free: 4.676 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002377/10.54, allocations: 159.7 kB / 4.169 GB, free: 4.52 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008766/10.55, allocations: 3.563 MB / 4.172 GB, free: 0.9531 MB / 0.5417 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.02688/10.57, allocations: 14.94 MB / 4.187 GB, free: 0.7812 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.411/10.98, allocations: 2.239 MB / 4.189 GB, free: 43.52 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0413/11.03, allocations: 24.53 MB / 4.213 GB, free: 28.52 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004383/11.03, allocations: 1.705 MB / 4.215 GB, free: 28.41 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001504/11.03, allocations: 205.4 kB / 4.215 GB, free: 28.41 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=162): time 4.569e-06/11.03, allocations: 0 / 4.215 GB, free: 28.41 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.02357/11.06, allocations: 9.368 MB / 4.224 GB, free: 27.33 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001523/11.06, allocations: 414 kB / 4.225 GB, free: 26.86 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002495/11.06, allocations: 1.564 MB / 4.226 GB, free: 26.64 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002449/11.06, allocations: 58.17 kB / 4.226 GB, free: 26.61 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009098/11.06, allocations: 0.9833 MB / 4.227 GB, free: 26.33 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005613/11.06, allocations: 0.5913 MB / 4.228 GB, free: 26.04 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/11.06, allocations: 38.78 kB / 4.228 GB, free: 26.04 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001404/11.06, allocations: 385.1 kB / 4.228 GB, free: 25.73 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002329/11.06, allocations: 1.177 MB / 4.229 GB, free: 25.72 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002562/11.07, allocations: 1.617 MB / 4.231 GB, free: 25.27 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002402/11.07, allocations: 1.423 MB / 4.232 GB, free: 25.18 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-06/11.07, allocations: 3.219 kB / 4.232 GB, free: 25.18 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.006821/11.07, allocations: 3.596 MB / 4.236 GB, free: 24.9 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009926/11.08, allocations: 4.063 MB / 4.24 GB, free: 20.67 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-05/11.08, allocations: 20.34 kB / 4.24 GB, free: 20.67 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004779/11.08, allocations: 0.9784 MB / 4.241 GB, free: 20.63 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00242/11.08, allocations: 469.6 kB / 4.241 GB, free: 20.63 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002907/11.09, allocations: 3.156 MB / 4.244 GB, free: 18.55 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003288/11.09, allocations: 244 kB / 4.244 GB, free: 18.54 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000329/11.09, allocations: 102.5 kB / 4.245 GB, free: 18.54 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/11.09, allocations: 3.562 kB / 4.245 GB, free: 18.54 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007376/11.1, allocations: 3.262 MB / 4.248 GB, free: 18.39 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.412e-05/11.1, allocations: 14.02 kB / 4.248 GB, free: 18.39 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001499/11.1, allocations: 372.2 kB / 4.248 GB, free: 18.36 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00223/11.1, allocations: 493.4 kB / 4.249 GB, free: 18.36 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003865/11.1, allocations: 4.113 MB / 4.253 GB, free: 15.54 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002909/11.11, allocations: 237.8 kB / 4.253 GB, free: 15.54 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005113/11.11, allocations: 100.3 kB / 4.253 GB, free: 15.54 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,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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.002283/11.11, allocations: 0.7637 MB / 4.254 GB, free: 15.28 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000844/11.11, allocations: 218.5 kB / 4.254 GB, free: 15.17 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01201/11.12, allocations: 7.958 MB / 4.262 GB, free: 14.5 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001092/11.12, allocations: 85.89 kB / 4.262 GB, free: 14.5 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.085e-05/11.12, allocations: 7.547 kB / 4.262 GB, free: 14.5 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009359/11.13, allocations: 6.973 MB / 4.269 GB, free: 13.58 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01844/11.15, allocations: 11.09 MB / 4.279 GB, free: 12.85 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.389e-05/11.15, allocations: 0 / 4.279 GB, free: 12.85 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001548/11.15, allocations: 352.8 kB / 4.28 GB, free: 12.85 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005321/11.16, allocations: 2.174 MB / 4.282 GB, free: 12.75 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004085/11.16, allocations: 67.78 kB / 4.282 GB, free: 12.75 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004207/11.16, allocations: 4.102 MB / 4.286 GB, free: 26.64 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/11.16, allocations: 0 / 4.286 GB, free: 26.64 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01366/11.18, allocations: 8.123 MB / 4.294 GB, free: 25.95 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002999/11.18, allocations: 0.7753 MB / 4.295 GB, free: 25.68 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001108/11.18, allocations: 53.41 kB / 4.295 GB, free: 25.68 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00279/11.18, allocations: 199.8 kB / 4.295 GB, free: 25.67 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000467/11.18, allocations: 143.7 kB / 4.295 GB, free: 25.67 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000281/11.18, allocations: 74.86 kB / 4.295 GB, free: 25.67 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003278/11.19, allocations: 1.389 MB / 4.296 GB, free: 25.52 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.645e-06/11.19, allocations: 0 / 4.296 GB, free: 25.52 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01441/11.2, allocations: 2.87 MB / 4.299 GB, free: 25.42 MB / 0.573 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,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.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.02887/11.23, allocations: 10.67 MB / 4.31 GB, free: 24.04 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01264/11.24, allocations: 5.597 MB / 4.315 GB, free: 23.45 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/11.24, allocations: 6.5 kB / 4.315 GB, free: 23.45 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004494/11.25, allocations: 2.441 MB / 4.317 GB, free: 23.29 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0061/11.25, allocations: 0.9516 MB / 4.318 GB, free: 23.28 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.031/11.29, allocations: 17.75 MB / 4.336 GB, free: 11.23 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003627/11.29, allocations: 2.302 MB / 4.338 GB, free: 10.33 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.005706/11.29, allocations: 2.235 MB / 4.34 GB, free: 10.25 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002671/11.3, allocations: 1.307 MB / 4.341 GB, free: 9.195 MB / 0.573 GB Notification: Performance of SimCode: time 1.864e-06/11.3, allocations: 5.938 kB / 4.341 GB, free: 9.191 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.608/11.91, allocations: 119.2 MB / 4.458 GB, free: 68.28 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001651/11.91, allocations: 264.3 kB / 4.458 GB, free: 67.92 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.64/18.55, allocations: 0 / 4.458 GB, free: 67.92 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat