Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_3_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.001509/0.001509, allocations: 185.2 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.816/1.816, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001167/0.001167, allocations: 94.86 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.2605/0.2605, allocations: 43.56 MB / 362 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004389/0.0004389, allocations: 8 kB / 431.5 MB, free: 19.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1621, allocations: 58.87 MB / 490.3 MB, free: 8.582 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.724/6.886, allocations: 2.843 GB / 3.322 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/6.887, allocations: 86.55 kB / 3.322 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.24/10.13, allocations: 0.8754 GB / 4.197 GB, free: 39.47 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.485e-06/10.13, allocations: 0 / 4.197 GB, free: 39.47 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002855/10.13, allocations: 62.77 kB / 4.197 GB, free: 39.46 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01894/10.15, allocations: 4.031 MB / 4.201 GB, free: 37.75 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.761e-05/10.15, allocations: 10.34 kB / 4.201 GB, free: 37.75 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001428/10.15, allocations: 278.2 kB / 4.201 GB, free: 37.7 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006374/10.15, allocations: 0.7839 MB / 4.202 GB, free: 37.57 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006317/10.16, allocations: 1.996 MB / 4.204 GB, free: 37.14 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002355/10.16, allocations: 173 kB / 4.204 GB, free: 37.13 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007594/10.16, allocations: 184.1 kB / 4.204 GB, free: 37.13 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007449/10.17, allocations: 3.28 MB / 4.208 GB, free: 36.64 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.93e-05/10.17, allocations: 3.281 kB / 4.208 GB, free: 36.64 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002998/10.17, allocations: 86.05 kB / 4.208 GB, free: 36.64 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002258/10.17, allocations: 149.6 kB / 4.208 GB, free: 36.64 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007142/10.18, allocations: 2.955 MB / 4.211 GB, free: 36.62 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.02464/10.2, allocations: 14.07 MB / 4.224 GB, free: 28.16 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005373/10.21, allocations: 2.08 MB / 4.226 GB, free: 28.12 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04701/10.25, allocations: 24.6 MB / 4.25 GB, free: 29 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00567/10.26, allocations: 1.619 MB / 4.252 GB, free: 28.88 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002603/10.26, allocations: 175.2 kB / 4.252 GB, free: 28.8 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=155): time 1.696e-05/10.26, allocations: 0 / 4.252 GB, free: 28.8 MB / 0.5573 GB Notification: Performance of matching and sorting (n=167): time 0.02618/10.29, allocations: 8.529 MB / 4.261 GB, free: 27.56 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001828/10.29, allocations: 256.4 kB / 4.261 GB, free: 27.28 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003289/10.29, allocations: 1.335 MB / 4.262 GB, free: 27.11 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003423/10.29, allocations: 59.27 kB / 4.262 GB, free: 27.07 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001119/10.29, allocations: 0.8789 MB / 4.263 GB, free: 26.75 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006743/10.29, allocations: 0.5547 MB / 4.264 GB, free: 26.4 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002125/10.29, allocations: 39.34 kB / 4.264 GB, free: 26.4 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002283/10.29, allocations: 380.5 kB / 4.264 GB, free: 26.09 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002016/10.3, allocations: 1.03 MB / 4.265 GB, free: 26.09 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00232/10.3, allocations: 1.439 MB / 4.266 GB, free: 25.69 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002225/10.3, allocations: 1.257 MB / 4.268 GB, free: 25.61 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.139e-05/10.3, allocations: 7.844 kB / 4.268 GB, free: 25.6 MB / 0.5573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.006948/10.31, allocations: 3.191 MB / 4.271 GB, free: 25.31 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001835/10.31, allocations: 3.858 MB / 4.274 GB, free: 21.23 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.244e-05/10.31, allocations: 8.531 kB / 4.274 GB, free: 21.23 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002757/10.31, allocations: 0.528 MB / 4.275 GB, free: 21.19 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002163/10.31, allocations: 451.2 kB / 4.275 GB, free: 21.19 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002313/10.32, allocations: 2.7 MB / 4.278 GB, free: 19.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003119/10.32, allocations: 272.7 kB / 4.278 GB, free: 19.07 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004558/10.32, allocations: 92.86 kB / 4.278 GB, free: 19.07 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/10.32, allocations: 3.875 kB / 4.278 GB, free: 19.07 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005994/10.33, allocations: 2.822 MB / 4.281 GB, free: 18.92 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.125e-05/10.33, allocations: 10.84 kB / 4.281 GB, free: 18.92 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007067/10.33, allocations: 210.5 kB / 4.281 GB, free: 18.89 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00192/10.33, allocations: 459.2 kB / 4.282 GB, free: 18.89 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001363/10.33, allocations: 1.879 MB / 4.284 GB, free: 17.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002741/10.33, allocations: 261.3 kB / 4.284 GB, free: 17.3 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002969/10.33, allocations: 95.56 kB / 4.284 GB, free: 17.3 MB / 0.5573 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,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_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 () * Number of clocked 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.001866/10.34, allocations: 0.7244 MB / 4.285 GB, free: 17.03 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006447/10.34, allocations: 198.4 kB / 4.285 GB, free: 16.93 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01105/10.35, allocations: 7.561 MB / 4.292 GB, free: 16.12 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.545e-05/10.35, allocations: 80.62 kB / 4.292 GB, free: 16.12 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.951e-05/10.35, allocations: 3.953 kB / 4.292 GB, free: 16.12 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01007/10.36, allocations: 6.614 MB / 4.299 GB, free: 15.19 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0186/10.38, allocations: 11.41 MB / 4.31 GB, free: 10.25 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.76e-05/10.38, allocations: 3.969 kB / 4.31 GB, free: 10.25 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001425/10.38, allocations: 367.8 kB / 4.31 GB, free: 10.23 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002694/10.38, allocations: 1.182 MB / 4.311 GB, free: 10.01 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002107/10.38, allocations: 67.22 kB / 4.312 GB, free: 9.984 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002559/10.38, allocations: 3.183 MB / 4.315 GB, free: 7.449 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/10.38, allocations: 6.797 kB / 4.315 GB, free: 7.449 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01005/10.39, allocations: 7.616 MB / 4.322 GB, free: 3.672 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002145/10.4, allocations: 0.7359 MB / 4.323 GB, free: 3.215 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000742/10.4, allocations: 58.83 kB / 4.323 GB, free: 3.184 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002108/10.4, allocations: 190.2 kB / 4.323 GB, free: 3.137 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003097/10.4, allocations: 157.3 kB / 4.323 GB, free: 3.113 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001785/10.4, allocations: 76.34 kB / 4.323 GB, free: 3.098 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002272/10.4, allocations: 1.221 MB / 4.324 GB, free: 2.621 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.1e-07/10.4, allocations: 0 / 4.324 GB, free: 2.621 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01179/10.41, allocations: 2.638 MB / 4.327 GB, free: 260 kB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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 (179): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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.02799/10.44, allocations: 11.69 MB / 4.338 GB, free: 5.754 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01126/10.45, allocations: 4.874 MB / 4.343 GB, free: 1.426 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.059e-05/10.45, allocations: 224 / 4.343 GB, free: 1.426 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.3734/10.83, allocations: 2.674 MB / 4.346 GB, free: 68.33 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005467/10.83, allocations: 0.9796 MB / 4.347 GB, free: 68.31 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02047/10.85, allocations: 16.81 MB / 4.363 GB, free: 57.84 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002111/10.85, allocations: 2.188 MB / 4.365 GB, free: 57.07 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.006225/10.86, allocations: 2.305 MB / 4.368 GB, free: 57.03 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002132/10.86, allocations: 1.238 MB / 4.369 GB, free: 57.03 MB / 0.573 GB Notification: Performance of SimCode: time 1.704e-06/10.86, allocations: 0 / 4.369 GB, free: 57.03 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1942/11.06, allocations: 111.3 MB / 4.478 GB, free: 51.39 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001809/11.06, allocations: 254.4 kB / 4.478 GB, free: 51.05 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.09/17.15, allocations: 3.938 kB / 4.478 GB, free: 51.05 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat