Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",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.001168/0.001168, allocations: 184 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.838/1.838, 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.001051/0.001051, allocations: 94.73 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.244/0.244, allocations: 43.56 MB / 362 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003639/0.0003638, allocations: 8 kB / 431.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.144, allocations: 58.86 MB / 490.3 MB, free: 8.578 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.332/6.476, allocations: 2.842 GB / 3.321 GB, free: 62.18 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/6.476, allocations: 83.95 kB / 3.321 GB, free: 62.1 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.079/9.556, allocations: 0.8053 GB / 4.126 GB, free: 34.8 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.134e-06/9.556, allocations: 3.5 kB / 4.126 GB, free: 34.8 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002026/9.556, allocations: 60.89 kB / 4.126 GB, free: 34.79 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01815/9.574, allocations: 3.931 MB / 4.13 GB, free: 32.6 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/9.574, allocations: 9.562 kB / 4.13 GB, free: 32.6 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001371/9.575, allocations: 269.2 kB / 4.131 GB, free: 32.45 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006492/9.582, allocations: 0.7815 MB / 4.131 GB, free: 32.26 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00728/9.589, allocations: 2.013 MB / 4.133 GB, free: 31.35 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002985/9.59, allocations: 162.5 kB / 4.133 GB, free: 31.29 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00102/9.591, allocations: 190.7 kB / 4.134 GB, free: 31.23 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008788/9.599, allocations: 3.355 MB / 4.137 GB, free: 29.89 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.687e-05/9.6, allocations: 14.16 kB / 4.137 GB, free: 29.89 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002931/9.6, allocations: 82.53 kB / 4.137 GB, free: 29.84 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000183/9.6, allocations: 142.5 kB / 4.137 GB, free: 29.82 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006624/9.607, allocations: 3.183 MB / 4.14 GB, free: 28.87 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.01652/9.623, allocations: 13.83 MB / 4.154 GB, free: 18.47 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004466/9.628, allocations: 2.081 MB / 4.156 GB, free: 17.84 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04254/9.67, allocations: 24.59 MB / 4.18 GB, free: 12.28 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004465/9.675, allocations: 1.627 MB / 4.181 GB, free: 11.04 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001755/9.677, allocations: 189.7 kB / 4.182 GB, free: 10.87 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=155): time 5.08e-06/9.677, allocations: 0 / 4.182 GB, free: 10.87 MB / 0.5417 GB Notification: Performance of matching and sorting (n=167): time 0.02215/9.699, allocations: 8.53 MB / 4.19 GB, free: 3.473 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001651/9.699, allocations: 256.6 kB / 4.19 GB, free: 3.168 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002404/9.701, allocations: 1.339 MB / 4.191 GB, free: 2.031 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002353/9.702, allocations: 57.7 kB / 4.191 GB, free: 1.969 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008741/9.703, allocations: 0.8676 MB / 4.192 GB, free: 1.18 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005611/9.703, allocations: 0.5511 MB / 4.193 GB, free: 0.6758 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/9.703, allocations: 40 kB / 4.193 GB, free: 0.6367 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001882/9.703, allocations: 372.4 kB / 4.193 GB, free: 296 kB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.4035/10.11, allocations: 1.249 MB / 4.194 GB, free: 52.6 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003829/10.11, allocations: 1.441 MB / 4.196 GB, free: 52.22 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002613/10.11, allocations: 1.257 MB / 4.197 GB, free: 52.14 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.175e-06/10.11, allocations: 0 / 4.197 GB, free: 52.14 MB / 0.5417 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.007198/10.12, allocations: 3.194 MB / 4.2 GB, free: 51.97 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001109/10.12, allocations: 3.845 MB / 4.204 GB, free: 47.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.245e-05/10.12, allocations: 6.875 kB / 4.204 GB, free: 47.94 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00292/10.12, allocations: 0.5305 MB / 4.205 GB, free: 47.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002444/10.13, allocations: 448.8 kB / 4.205 GB, free: 47.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002454/10.13, allocations: 2.707 MB / 4.208 GB, free: 45.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003454/10.13, allocations: 260.5 kB / 4.208 GB, free: 45.84 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003924/10.13, allocations: 95.97 kB / 4.208 GB, free: 45.84 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/10.13, allocations: 4.406 kB / 4.208 GB, free: 45.84 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007198/10.14, allocations: 2.821 MB / 4.211 GB, free: 45.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.661e-05/10.14, allocations: 12.19 kB / 4.211 GB, free: 45.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007714/10.14, allocations: 210.1 kB / 4.211 GB, free: 45.68 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002235/10.14, allocations: 461.7 kB / 4.211 GB, free: 45.68 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001343/10.15, allocations: 1.879 MB / 4.213 GB, free: 44.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003229/10.15, allocations: 259.8 kB / 4.213 GB, free: 44.12 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004527/10.15, allocations: 91.7 kB / 4.214 GB, free: 44.12 MB / 0.5417 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.002304/10.15, allocations: 0.7074 MB / 4.214 GB, free: 43.87 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008578/10.15, allocations: 200 kB / 4.214 GB, free: 43.87 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01638/10.17, allocations: 7.564 MB / 4.222 GB, free: 43.32 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001149/10.17, allocations: 86.17 kB / 4.222 GB, free: 43.32 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/10.17, allocations: 0 / 4.222 GB, free: 43.32 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008769/10.18, allocations: 6.62 MB / 4.228 GB, free: 42.41 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01801/10.2, allocations: 11.39 MB / 4.239 GB, free: 41.33 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.105e-05/10.2, allocations: 7.562 kB / 4.239 GB, free: 41.33 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001687/10.2, allocations: 362.6 kB / 4.24 GB, free: 41.33 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002548/10.2, allocations: 1.206 MB / 4.241 GB, free: 41.26 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002075/10.2, allocations: 64.38 kB / 4.241 GB, free: 41.26 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001964/10.2, allocations: 3.211 MB / 4.244 GB, free: 39.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/10.2, allocations: 7.875 kB / 4.244 GB, free: 39.16 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00978/10.21, allocations: 7.612 MB / 4.252 GB, free: 37.89 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002179/10.21, allocations: 0.7317 MB / 4.252 GB, free: 37.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005223/10.21, allocations: 53.66 kB / 4.252 GB, free: 37.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001538/10.22, allocations: 186.2 kB / 4.253 GB, free: 37.62 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002935/10.22, allocations: 157.3 kB / 4.253 GB, free: 37.61 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001907/10.22, allocations: 77.47 kB / 4.253 GB, free: 37.61 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00177/10.22, allocations: 1.215 MB / 4.254 GB, free: 37.47 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/10.22, allocations: 3.562 kB / 4.254 GB, free: 37.47 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01198/10.23, allocations: 2.587 MB / 4.257 GB, free: 37.47 MB / 0.5417 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,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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.02402/10.25, allocations: 11.6 MB / 4.268 GB, free: 34.53 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00904/10.26, allocations: 4.879 MB / 4.273 GB, free: 34.21 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.831e-05/10.26, allocations: 2.188 kB / 4.273 GB, free: 34.21 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003787/10.27, allocations: 2.518 MB / 4.275 GB, free: 34.06 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005072/10.27, allocations: 0.9208 MB / 4.276 GB, free: 34.03 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02296/10.3, allocations: 16.74 MB / 4.292 GB, free: 23.42 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001901/10.3, allocations: 2.177 MB / 4.294 GB, free: 22.66 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.004704/10.3, allocations: 2.295 MB / 4.297 GB, free: 22.61 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001754/10.3, allocations: 1.22 MB / 4.298 GB, free: 22.6 MB / 0.5417 GB Notification: Performance of SimCode: time 1.473e-06/10.3, allocations: 0 / 4.298 GB, free: 22.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1889/10.49, allocations: 109 MB / 4.404 GB, free: 11.96 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002615/10.49, allocations: 254.8 kB / 4.405 GB, free: 11.62 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.914/16.41, allocations: 0 / 4.405 GB, free: 11.62 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat