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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001293/0.001293, allocations: 191.5 kB / 7.802 MB, free: 2.441 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.505/1.505, allocations: 205.2 MB / 213.4 MB, free: 13.87 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.0009463/0.0009463, allocations: 83.55 kB / 261.4 MB, free: 13.64 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2124/0.2124, allocations: 43.49 MB / 352.8 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2219/0.4344, allocations: 64.96 MB / 417.8 MB, free: 40.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3594/0.7938, allocations: 58.83 MB / 476.6 MB, free: 5.203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.526/7.32, allocations: 2.841 GB / 3.307 GB, free: 7.91 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/7.32, allocations: 79.95 kB / 3.307 GB, free: 7.832 MB / 0.4948 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 3.758/11.08, allocations: 0.8031 GB / 4.11 GB, free: 39.06 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.421e-05/11.08, allocations: 6.344 kB / 4.11 GB, free: 39.06 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007596/11.09, allocations: 0.8107 MB / 4.111 GB, free: 38.94 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008833/11.09, allocations: 2.015 MB / 4.113 GB, free: 38.5 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002778/11.09, allocations: 87.28 kB / 4.113 GB, free: 38.5 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001197/11.1, allocations: 107.9 kB / 4.113 GB, free: 38.5 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00653/11.1, allocations: 2.602 MB / 4.115 GB, free: 38.49 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007158/11.11, allocations: 2.599 MB / 4.118 GB, free: 38.02 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.658e-05/11.11, allocations: 4.75 kB / 4.118 GB, free: 38.02 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005296/11.11, allocations: 6.656 kB / 4.118 GB, free: 38.02 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002223/11.11, allocations: 152.9 kB / 4.118 GB, free: 38.01 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2689/11.38, allocations: 125.3 MB / 4.24 GB, free: 23.15 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002036/11.38, allocations: 1.052 MB / 4.242 GB, free: 23.12 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001721/11.38, allocations: 1.002 MB / 4.243 GB, free: 23.11 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0394/11.42, allocations: 17.09 MB / 4.259 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00343/11.43, allocations: 1.186 MB / 4.26 GB, free: 11.63 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=145): time 9.368e-06/11.43, allocations: 0 / 4.26 GB, free: 11.63 MB / 0.5886 GB Notification: Performance of matching and sorting (n=157): time 0.0457/11.47, allocations: 9.183 MB / 4.269 GB, free: 9.984 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002762/11.47, allocations: 357.4 kB / 4.27 GB, free: 9.578 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003205/11.48, allocations: 1.052 MB / 4.271 GB, free: 9.402 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.000478/11.48, allocations: 29.2 kB / 4.271 GB, free: 9.371 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.001113/11.48, allocations: 0.6894 MB / 4.271 GB, free: 8.965 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.001066/11.48, allocations: 0.4997 MB / 4.272 GB, free: 8.637 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002877/11.48, allocations: 0 / 4.272 GB, free: 8.637 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002737/11.48, allocations: 376.2 kB / 4.272 GB, free: 8.332 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00242/11.48, allocations: 1.026 MB / 4.273 GB, free: 8.328 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00263/11.48, allocations: 1.422 MB / 4.275 GB, free: 7.93 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01004/11.49, allocations: 1.977 MB / 4.277 GB, free: 7.887 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.473e-05/11.49, allocations: 7.562 kB / 4.277 GB, free: 7.883 MB / 0.5886 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01786/11.51, allocations: 4.311 MB / 4.281 GB, free: 7.664 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001933/11.51, allocations: 3.719 MB / 4.284 GB, free: 19.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.545e-05/11.51, allocations: 9.312 kB / 4.284 GB, free: 19.82 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002712/11.52, allocations: 0.5238 MB / 4.285 GB, free: 19.77 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002739/11.52, allocations: 450.5 kB / 4.285 GB, free: 19.77 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004056/11.52, allocations: 2.912 MB / 4.288 GB, free: 17.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004164/11.53, allocations: 267.5 kB / 4.288 GB, free: 17.64 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008421/11.53, allocations: 100.5 kB / 4.289 GB, free: 17.64 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/11.53, allocations: 3.344 kB / 4.289 GB, free: 17.64 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01406/11.54, allocations: 3.189 MB / 4.292 GB, free: 17.22 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.364e-05/11.54, allocations: 12 kB / 4.292 GB, free: 17.21 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000499/11.54, allocations: 187.3 kB / 4.292 GB, free: 17.09 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002206/11.55, allocations: 476.1 kB / 4.292 GB, free: 16.74 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001462/11.55, allocations: 1.918 MB / 4.294 GB, free: 14.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002952/11.55, allocations: 242.3 kB / 4.294 GB, free: 14.78 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005345/11.55, allocations: 93.86 kB / 4.295 GB, free: 14.71 MB / 0.6042 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,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,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 () * 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.001312/11.55, allocations: 224.9 kB / 4.295 GB, free: 14.51 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002315/11.55, allocations: 0.6103 MB / 4.295 GB, free: 14.14 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01683/11.57, allocations: 6.733 MB / 4.302 GB, free: 10.28 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.109e-05/11.57, allocations: 58.95 kB / 4.302 GB, free: 10.25 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.62e-05/11.57, allocations: 0 / 4.302 GB, free: 10.25 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01405/11.59, allocations: 5.844 MB / 4.308 GB, free: 6.695 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02341/11.61, allocations: 10.21 MB / 4.318 GB, free: 0.9648 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.092e-05/11.61, allocations: 10.38 kB / 4.318 GB, free: 0.957 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001479/11.61, allocations: 298 kB / 4.318 GB, free: 0.7344 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3507/11.96, allocations: 1.164 MB / 4.319 GB, free: 157.4 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005456/11.96, allocations: 48.5 kB / 4.319 GB, free: 157.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002529/11.96, allocations: 3.404 MB / 4.322 GB, free: 155.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.318e-06/11.96, allocations: 9.281 kB / 4.322 GB, free: 155.3 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0152/11.98, allocations: 7.659 MB / 4.33 GB, free: 154.4 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01748/12, allocations: 10.01 MB / 4.34 GB, free: 153.1 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001634/12, allocations: 0.6601 MB / 4.34 GB, free: 153 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004165/12, allocations: 30.97 kB / 4.34 GB, free: 153 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001474/12, allocations: 143.8 kB / 4.34 GB, free: 153 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002638/12, allocations: 138 kB / 4.341 GB, free: 153 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00015/12, allocations: 76.59 kB / 4.341 GB, free: 153 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001452/12, allocations: 1.029 MB / 4.342 GB, free: 152.9 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01395/12.02, allocations: 2.973 MB / 4.345 GB, free: 152.9 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 39 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (155): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 10 * 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.01498/12.03, allocations: 2.931 MB / 4.347 GB, free: 152.7 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.008179/12.04, allocations: 4.931 MB / 4.352 GB, free: 152.5 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.32e-05/12.04, allocations: 0 / 4.352 GB, free: 152.5 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003737/12.04, allocations: 2.987 MB / 4.355 GB, free: 152.4 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004158/12.05, allocations: 0.6785 MB / 4.356 GB, free: 152.4 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009865/12.06, allocations: 5.411 MB / 4.361 GB, free: 151.4 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002231/12.06, allocations: 2.228 MB / 4.363 GB, free: 150.6 MB / 0.6042 GB Notification: Performance of SimCode: time 6.11e-07/12.06, allocations: 0 / 4.363 GB, free: 150.6 MB / 0.6042 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)