Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",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.001435/0.001435, allocations: 182.7 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.937/1.937, 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.001238/0.001238, allocations: 82.88 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.2414/0.2414, allocations: 43.57 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003422/0.0003422, allocations: 12 kB / 431.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1425, allocations: 58.85 MB / 490.3 MB, free: 8.586 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.458/6.6, allocations: 2.83 GB / 3.308 GB, free: 7.02 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002884/6.601, allocations: 83.77 kB / 3.308 GB, free: 6.977 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.716/10.32, allocations: 0.9068 GB / 4.215 GB, free: 39.54 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.866e-06/10.32, allocations: 1.688 kB / 4.215 GB, free: 39.54 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003595/10.32, allocations: 64.88 kB / 4.215 GB, free: 39.52 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01918/10.34, allocations: 4.318 MB / 4.22 GB, free: 37.65 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/10.34, allocations: 11.62 kB / 4.22 GB, free: 37.65 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001676/10.34, allocations: 311.2 kB / 4.22 GB, free: 37.6 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007095/10.35, allocations: 0.8694 MB / 4.221 GB, free: 37.46 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007702/10.35, allocations: 2.095 MB / 4.223 GB, free: 37.02 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003445/10.35, allocations: 182.9 kB / 4.223 GB, free: 37.01 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001231/10.35, allocations: 201.9 kB / 4.223 GB, free: 37.01 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01128/10.37, allocations: 3.719 MB / 4.227 GB, free: 36.48 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001289/10.37, allocations: 3.281 kB / 4.227 GB, free: 36.48 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008235/10.37, allocations: 88.12 kB / 4.227 GB, free: 36.48 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002676/10.37, allocations: 170 kB / 4.227 GB, free: 36.48 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009117/10.38, allocations: 3.452 MB / 4.23 GB, free: 36.46 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.02581/10.4, allocations: 15.57 MB / 4.246 GB, free: 27.16 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006032/10.41, allocations: 2.307 MB / 4.248 GB, free: 27.12 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04509/10.45, allocations: 24.53 MB / 4.272 GB, free: 27.97 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005454/10.46, allocations: 1.726 MB / 4.273 GB, free: 27.84 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=163): time 5.731e-06/10.46, allocations: 0 / 4.273 GB, free: 27.84 MB / 0.5573 GB Notification: Performance of matching and sorting (n=179): time 0.02693/10.49, allocations: 9.22 MB / 4.282 GB, free: 26.51 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001655/10.49, allocations: 258.5 kB / 4.283 GB, free: 26.23 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003331/10.49, allocations: 1.514 MB / 4.284 GB, free: 26.05 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003695/10.49, allocations: 59.2 kB / 4.284 GB, free: 26.02 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001274/10.49, allocations: 0.9757 MB / 4.285 GB, free: 25.64 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008132/10.49, allocations: 0.604 MB / 4.286 GB, free: 25.26 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002592/10.49, allocations: 36.53 kB / 4.286 GB, free: 25.26 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0003066/10.49, allocations: 390.7 kB / 4.286 GB, free: 24.95 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00236/10.5, allocations: 1.143 MB / 4.287 GB, free: 24.94 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002766/10.5, allocations: 1.579 MB / 4.289 GB, free: 24.47 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002703/10.5, allocations: 1.385 MB / 4.29 GB, free: 24.36 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-05/10.5, allocations: 2.812 kB / 4.29 GB, free: 24.36 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.00721/10.51, allocations: 3.364 MB / 4.293 GB, free: 24.06 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002041/10.51, allocations: 4.486 MB / 4.298 GB, free: 19.32 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-05/10.51, allocations: 10.66 kB / 4.298 GB, free: 19.32 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009976/10.51, allocations: 251.8 kB / 4.298 GB, free: 19.29 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002243/10.51, allocations: 0.5134 MB / 4.299 GB, free: 19.29 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001878/10.52, allocations: 2.433 MB / 4.301 GB, free: 17.21 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003155/10.52, allocations: 270 kB / 4.301 GB, free: 17.18 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003905/10.52, allocations: 103.2 kB / 4.301 GB, free: 17.18 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/10.52, allocations: 3.438 kB / 4.301 GB, free: 17.18 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006715/10.53, allocations: 3.106 MB / 4.304 GB, free: 17.01 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.302e-05/10.53, allocations: 11.81 kB / 4.304 GB, free: 17.01 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008659/10.53, allocations: 244.4 kB / 4.305 GB, free: 16.97 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002034/10.53, allocations: 0.506 MB / 4.305 GB, free: 16.95 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001633/10.53, allocations: 2.438 MB / 4.308 GB, free: 14.87 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002861/10.53, allocations: 275.4 kB / 4.308 GB, free: 14.83 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003405/10.53, allocations: 99.64 kB / 4.308 GB, free: 14.83 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (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,splitter.medium.phase,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 (243): * Single equations (assignments): 237 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002208/10.54, allocations: 0.7561 MB / 4.309 GB, free: 14.54 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007296/10.54, allocations: 210 kB / 4.309 GB, free: 14.43 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01195/10.55, allocations: 7.747 MB / 4.316 GB, free: 12.89 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.902e-05/10.55, allocations: 84.47 kB / 4.316 GB, free: 12.88 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.786e-05/10.55, allocations: 0 / 4.316 GB, free: 12.88 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008855/10.56, allocations: 6.749 MB / 4.323 GB, free: 9.723 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01759/10.58, allocations: 11.03 MB / 4.334 GB, free: 5.051 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.237e-06/10.58, allocations: 0 / 4.334 GB, free: 5.051 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001729/10.58, allocations: 420 kB / 4.334 GB, free: 5.012 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001448/10.58, allocations: 361.8 kB / 4.335 GB, free: 4.895 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002409/10.58, allocations: 74.5 kB / 4.335 GB, free: 4.859 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00158/10.58, allocations: 2.512 MB / 4.337 GB, free: 2.586 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/10.58, allocations: 0 / 4.337 GB, free: 2.586 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01148/10.59, allocations: 7.286 MB / 4.344 GB, free: 11.98 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002509/10.59, allocations: 0.7883 MB / 4.345 GB, free: 11.29 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008648/10.6, allocations: 48 kB / 4.345 GB, free: 11.24 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002493/10.6, allocations: 216.6 kB / 4.345 GB, free: 11.08 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003674/10.6, allocations: 153.6 kB / 4.345 GB, free: 10.99 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002292/10.6, allocations: 78.45 kB / 4.345 GB, free: 10.92 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002996/10.6, allocations: 1.356 MB / 4.347 GB, free: 9.77 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.405e-06/10.6, allocations: 0 / 4.347 GB, free: 9.77 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01588/10.62, allocations: 2.887 MB / 4.35 GB, free: 6.945 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.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,splitter.medium.phase) * 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 (202): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.4228/11.04, allocations: 10.7 MB / 4.36 GB, free: 68.31 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01076/11.05, allocations: 5.321 MB / 4.365 GB, free: 67.97 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.317e-06/11.05, allocations: 0.9062 kB / 4.365 GB, free: 67.97 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004647/11.06, allocations: 2.486 MB / 4.368 GB, free: 67.83 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005729/11.06, allocations: 1.04 MB / 4.369 GB, free: 67.8 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02894/11.09, allocations: 18.65 MB / 4.387 GB, free: 56 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002079/11.09, allocations: 2.281 MB / 4.389 GB, free: 55.23 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.005089/11.1, allocations: 2.478 MB / 4.392 GB, free: 55.18 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001779/11.1, allocations: 1.324 MB / 4.393 GB, free: 55.18 MB / 0.573 GB Notification: Performance of SimCode: time 7.41e-07/11.1, allocations: 1.969 kB / 4.393 GB, free: 55.18 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.19/11.29, allocations: 117 MB / 4.507 GB, free: 44.3 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001804/11.29, allocations: 254.9 kB / 4.507 GB, free: 43.97 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.243/17.53, allocations: 3.938 kB / 4.507 GB, free: 43.96 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat