Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.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.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",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.001232/0.001233, allocations: 183.9 kB / 15.76 MB, free: 6.363 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.812/1.812, 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.0009883/0.0009883, allocations: 90.86 kB / 270.2 MB, free: 13.37 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.2427/0.2427, allocations: 43.56 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003302/0.0003302, allocations: 11.98 kB / 431.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.1479, allocations: 58.85 MB / 490.3 MB, free: 8.582 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.417/6.565, allocations: 2.825 GB / 3.304 GB, free: 12.07 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/6.565, allocations: 84.2 kB / 3.304 GB, free: 12.02 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.124/9.689, allocations: 0.8087 GB / 4.113 GB, free: 17.5 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.945e-06/9.689, allocations: 0 / 4.113 GB, free: 17.5 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003346/9.69, allocations: 71.86 kB / 4.113 GB, free: 17.43 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.01882/9.708, allocations: 4.255 MB / 4.117 GB, free: 13.09 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/9.708, allocations: 16.03 kB / 4.117 GB, free: 13.08 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001663/9.71, allocations: 295.1 kB / 4.117 GB, free: 12.78 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006705/9.717, allocations: 0.8364 MB / 4.118 GB, free: 11.94 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007851/9.725, allocations: 2.192 MB / 4.12 GB, free: 9.699 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002834/9.725, allocations: 175.7 kB / 4.121 GB, free: 9.527 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001239/9.726, allocations: 196 kB / 4.121 GB, free: 9.336 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01078/9.737, allocations: 3.741 MB / 4.124 GB, free: 5.391 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.328e-05/9.737, allocations: 11.84 kB / 4.124 GB, free: 5.379 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003586/9.738, allocations: 87.97 kB / 4.124 GB, free: 5.293 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002033/9.738, allocations: 163.6 kB / 4.125 GB, free: 5.133 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007082/9.745, allocations: 3.566 MB / 4.128 GB, free: 1.562 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.02263/9.768, allocations: 14.93 MB / 4.143 GB, free: 1.402 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4112/10.18, allocations: 2.236 MB / 4.145 GB, free: 45.38 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04674/10.23, allocations: 24.53 MB / 4.169 GB, free: 30.38 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005066/10.23, allocations: 1.709 MB / 4.17 GB, free: 30.26 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001672/10.23, allocations: 196.1 kB / 4.171 GB, free: 30.26 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=162): time 6.592e-06/10.23, allocations: 0 / 4.171 GB, free: 30.26 MB / 0.5417 GB Notification: Performance of matching and sorting (n=174): time 0.02408/10.26, allocations: 9.371 MB / 4.18 GB, free: 29.18 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001457/10.26, allocations: 415.4 kB / 4.18 GB, free: 28.71 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002409/10.26, allocations: 1.569 MB / 4.182 GB, free: 28.5 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002175/10.26, allocations: 60.3 kB / 4.182 GB, free: 28.46 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009251/10.26, allocations: 0.9771 MB / 4.183 GB, free: 28.18 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005782/10.26, allocations: 0.5831 MB / 4.183 GB, free: 27.89 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/10.26, allocations: 47.05 kB / 4.183 GB, free: 27.89 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001464/10.26, allocations: 387.6 kB / 4.184 GB, free: 27.58 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002068/10.26, allocations: 1.18 MB / 4.185 GB, free: 27.57 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002144/10.27, allocations: 1.615 MB / 4.186 GB, free: 27.11 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00213/10.27, allocations: 1.419 MB / 4.188 GB, free: 27.03 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.675e-06/10.27, allocations: 1.875 kB / 4.188 GB, free: 27.03 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.006222/10.27, allocations: 3.589 MB / 4.191 GB, free: 26.75 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001128/10.27, allocations: 4.062 MB / 4.195 GB, free: 22.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.705e-05/10.27, allocations: 14.41 kB / 4.195 GB, free: 22.52 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004794/10.28, allocations: 0.979 MB / 4.196 GB, free: 22.49 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002055/10.28, allocations: 471.4 kB / 4.197 GB, free: 22.49 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002355/10.28, allocations: 3.161 MB / 4.2 GB, free: 20.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002748/10.29, allocations: 242.3 kB / 4.2 GB, free: 20.39 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002368/10.29, allocations: 103.6 kB / 4.2 GB, free: 20.39 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/10.29, allocations: 2.969 kB / 4.2 GB, free: 20.39 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005794/10.29, allocations: 3.26 MB / 4.203 GB, free: 20.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.188e-05/10.29, allocations: 19.31 kB / 4.203 GB, free: 20.25 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00123/10.29, allocations: 364.5 kB / 4.204 GB, free: 20.21 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001812/10.3, allocations: 492.5 kB / 4.204 GB, free: 20.21 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003217/10.3, allocations: 4.117 MB / 4.208 GB, free: 17.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002563/10.3, allocations: 230.9 kB / 4.208 GB, free: 17.38 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002215/10.3, allocations: 111.3 kB / 4.209 GB, free: 17.38 MB / 0.5417 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.001758/10.3, allocations: 0.7547 MB / 4.209 GB, free: 17.13 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004764/10.3, allocations: 222 kB / 4.209 GB, free: 17.02 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009844/10.31, allocations: 7.95 MB / 4.217 GB, free: 16.35 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.103e-05/10.31, allocations: 82.2 kB / 4.217 GB, free: 16.35 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/10.31, allocations: 2.062 kB / 4.217 GB, free: 16.35 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00791/10.32, allocations: 6.978 MB / 4.224 GB, free: 15.43 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01825/10.34, allocations: 11.09 MB / 4.235 GB, free: 14.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.067e-05/10.34, allocations: 2.438 kB / 4.235 GB, free: 14.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001456/10.34, allocations: 352.1 kB / 4.235 GB, free: 14.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004947/10.35, allocations: 2.169 MB / 4.237 GB, free: 14.61 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003271/10.35, allocations: 67.42 kB / 4.237 GB, free: 14.61 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00358/10.35, allocations: 4.095 MB / 4.241 GB, free: 12.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/10.35, allocations: 0 / 4.241 GB, free: 12.5 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01021/10.36, allocations: 8.123 MB / 4.249 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002268/10.36, allocations: 0.7802 MB / 4.25 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000383/10.36, allocations: 56.17 kB / 4.25 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001496/10.37, allocations: 196.8 kB / 4.25 GB, free: 11.53 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000305/10.37, allocations: 147.6 kB / 4.251 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001561/10.37, allocations: 75.66 kB / 4.251 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001978/10.37, allocations: 1.39 MB / 4.252 GB, free: 11.38 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.7e-07/10.37, allocations: 0 / 4.252 GB, free: 11.38 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.012/10.38, allocations: 2.871 MB / 4.255 GB, free: 11.27 MB / 0.5417 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.02452/10.4, allocations: 10.65 MB / 4.265 GB, free: 9.879 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01133/10.42, allocations: 5.601 MB / 4.271 GB, free: 9.297 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.268e-06/10.42, allocations: 0 / 4.271 GB, free: 9.297 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004552/10.42, allocations: 2.436 MB / 4.273 GB, free: 25.14 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005512/10.43, allocations: 0.9684 MB / 4.274 GB, free: 25.11 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02721/10.45, allocations: 17.74 MB / 4.291 GB, free: 13.26 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002961/10.46, allocations: 2.291 MB / 4.294 GB, free: 12.36 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.005164/10.46, allocations: 2.244 MB / 4.296 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002138/10.46, allocations: 1.304 MB / 4.297 GB, free: 11.21 MB / 0.5573 GB Notification: Performance of SimCode: time 1.162e-06/10.46, allocations: 4 kB / 4.297 GB, free: 11.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5602/11.02, allocations: 118.5 MB / 4.413 GB, free: 70.17 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001843/11.02, allocations: 259.8 kB / 4.413 GB, free: 69.82 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.397/17.42, allocations: 0 / 4.413 GB, free: 69.82 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat