Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",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 4.0.0+maint.om/package.mo): time 0.0009906/0.0009903, allocations: 179.4 kB / 8.517 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.152/1.152, allocations: 221.4 MB / 230.3 MB, free: 7.77 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008998/0.0008998, allocations: 83.81 kB / 281.2 MB, free: 5.539 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1564/0.1564, allocations: 44.14 MB / 376.1 MB, free: 3.254 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1736/0.3301, allocations: 68.04 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0919/0.422, allocations: 61.91 MB / 0.4942 GB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.134/4.556, allocations: 2.851 GB / 3.345 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001982/4.556, allocations: 79.95 kB / 3.345 GB, free: 131.4 MB / 0.5105 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 2.627/7.183, allocations: 0.9173 GB / 4.262 GB, free: 10.32 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/7.183, allocations: 11.94 kB / 4.262 GB, free: 10.31 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006805/7.19, allocations: 0.9139 MB / 4.263 GB, free: 9.391 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005889/7.196, allocations: 2.116 MB / 4.265 GB, free: 7.254 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001875/7.196, allocations: 95.98 kB / 4.265 GB, free: 7.16 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008249/7.197, allocations: 120 kB / 4.265 GB, free: 7.043 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004849/7.202, allocations: 2.702 MB / 4.268 GB, free: 4.336 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004901/7.207, allocations: 2.929 MB / 4.271 GB, free: 1.207 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.793e-05/7.207, allocations: 7.938 kB / 4.271 GB, free: 1.199 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003388/7.207, allocations: 8 kB / 4.271 GB, free: 1.191 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001493/7.207, allocations: 175.6 kB / 4.271 GB, free: 1.02 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4301/7.637, allocations: 127.3 MB / 4.395 GB, free: 38.94 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001997/7.639, allocations: 1.156 MB / 4.396 GB, free: 38.92 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001491/7.641, allocations: 1.097 MB / 4.397 GB, free: 38.91 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03262/7.673, allocations: 16.98 MB / 4.414 GB, free: 43.72 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00214/7.676, allocations: 1.283 MB / 4.415 GB, free: 43.55 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=163): time 3.877e-06/7.676, allocations: 0 / 4.415 GB, free: 43.55 MB / 0.6042 GB Notification: Performance of matching and sorting (n=179): time 0.0372/7.713, allocations: 9.901 MB / 4.425 GB, free: 42 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001997/7.713, allocations: 360.4 kB / 4.425 GB, free: 41.59 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001676/7.715, allocations: 1.11 MB / 4.426 GB, free: 41.43 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0002392/7.715, allocations: 25.7 kB / 4.426 GB, free: 41.39 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005912/7.716, allocations: 0.7755 MB / 4.427 GB, free: 41.05 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005529/7.716, allocations: 0.5789 MB / 4.428 GB, free: 40.75 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001671/7.716, allocations: 0 / 4.428 GB, free: 40.75 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001852/7.716, allocations: 393.5 kB / 4.428 GB, free: 40.45 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001555/7.718, allocations: 1.121 MB / 4.429 GB, free: 40.44 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001774/7.72, allocations: 1.571 MB / 4.431 GB, free: 39.98 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009198/7.729, allocations: 2.118 MB / 4.433 GB, free: 39.93 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.046e-05/7.729, allocations: 3 kB / 4.433 GB, free: 39.93 MB / 0.6042 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01603/7.745, allocations: 4.495 MB / 4.437 GB, free: 39.71 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001537/7.747, allocations: 4.341 MB / 4.441 GB, free: 35.23 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.28e-05/7.747, allocations: 14.89 kB / 4.441 GB, free: 35.23 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006168/7.747, allocations: 228.6 kB / 4.442 GB, free: 35.19 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002443/7.75, allocations: 0.5256 MB / 4.442 GB, free: 35.19 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001742/7.752, allocations: 2.488 MB / 4.445 GB, free: 33.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003227/7.755, allocations: 314.4 kB / 4.445 GB, free: 33.06 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004703/7.755, allocations: 113 kB / 4.445 GB, free: 33.06 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 8.966e-06/7.755, allocations: 3.281 kB / 4.445 GB, free: 33.06 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01251/7.768, allocations: 3.415 MB / 4.448 GB, free: 32.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.861e-05/7.768, allocations: 8.656 kB / 4.448 GB, free: 32.96 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005637/7.769, allocations: 226.7 kB / 4.449 GB, free: 32.93 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00234/7.771, allocations: 0.5272 MB / 4.449 GB, free: 32.92 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001751/7.773, allocations: 2.484 MB / 4.452 GB, free: 30.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003085/7.776, allocations: 288.7 kB / 4.452 GB, free: 30.8 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005907/7.776, allocations: 107.1 kB / 4.452 GB, free: 30.8 MB / 0.6042 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 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 244 * 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.001153/7.778, allocations: 233.3 kB / 4.452 GB, free: 30.63 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002421/7.78, allocations: 0.6648 MB / 4.453 GB, free: 30.53 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01654/7.797, allocations: 6.794 MB / 4.459 GB, free: 30.04 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.341e-05/7.797, allocations: 51.41 kB / 4.459 GB, free: 30.04 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.355e-05/7.797, allocations: 4.125 kB / 4.459 GB, free: 30.04 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01358/7.81, allocations: 5.866 MB / 4.465 GB, free: 29.32 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2191/8.029, allocations: 11.16 MB / 4.476 GB, free: 123.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.336e-05/8.029, allocations: 11.72 kB / 4.476 GB, free: 123.6 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001504/8.031, allocations: 371.9 kB / 4.476 GB, free: 123.6 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008637/8.032, allocations: 317.5 kB / 4.477 GB, free: 123.5 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001652/8.032, allocations: 60.34 kB / 4.477 GB, free: 123.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/8.033, allocations: 2.668 MB / 4.479 GB, free: 121.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/8.033, allocations: 11.91 kB / 4.479 GB, free: 121.5 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01577/8.049, allocations: 8.121 MB / 4.487 GB, free: 120.4 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01832/8.067, allocations: 10.62 MB / 4.498 GB, free: 118.9 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00143/8.069, allocations: 0.6953 MB / 4.498 GB, free: 118.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004217/8.069, allocations: 28.53 kB / 4.498 GB, free: 118.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001632/8.071, allocations: 183.8 kB / 4.499 GB, free: 118.7 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002689/8.071, allocations: 152.9 kB / 4.499 GB, free: 118.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000161/8.071, allocations: 86.55 kB / 4.499 GB, free: 118.7 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001272/8.073, allocations: 1.076 MB / 4.5 GB, free: 118.6 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.009928/8.083, allocations: 3.2 MB / 4.503 GB, free: 118.6 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 38 ($cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.phase,$cse35.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,junctionIdeal.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (188): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 11 * 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.009783/8.092, allocations: 3.117 MB / 4.506 GB, free: 118.4 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.006883/8.099, allocations: 5.267 MB / 4.511 GB, free: 118.2 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 7.874e-06/8.099, allocations: 3.219 kB / 4.511 GB, free: 118.2 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.00352/8.103, allocations: 3.183 MB / 4.514 GB, free: 118.2 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004007/8.107, allocations: 0.8207 MB / 4.515 GB, free: 118.2 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008506/8.115, allocations: 5.796 MB / 4.521 GB, free: 117 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001999/8.117, allocations: 2.355 MB / 4.523 GB, free: 116.3 MB / 0.6042 GB Notification: Performance of SimCode: time 3.71e-07/8.117, allocations: 0 / 4.523 GB, free: 116.3 MB / 0.6042 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1)