Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.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.BranchingPipes13,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",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.001041/0.001041, allocations: 178.4 kB / 8.519 MB, free: 1.832 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.226/1.226, allocations: 221.4 MB / 230.3 MB, free: 7.727 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.001041/0.001041, allocations: 85.59 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.1599/0.1599, allocations: 44.15 MB / 376.1 MB, free: 3.254 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2254/0.3854, allocations: 68.03 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.5009, allocations: 61.91 MB / 0.4942 GB, free: 1.559 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.72/5.221, allocations: 2.83 GB / 3.324 GB, free: 148.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002271/5.221, allocations: 79.02 kB / 3.324 GB, free: 148.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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 2.487/7.708, allocations: 0.8773 GB / 4.201 GB, free: 33.93 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/7.708, allocations: 14.28 kB / 4.201 GB, free: 33.92 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005991/7.714, allocations: 0.8174 MB / 4.202 GB, free: 33.79 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005938/7.72, allocations: 1.963 MB / 4.204 GB, free: 33.35 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002068/7.72, allocations: 88.28 kB / 4.204 GB, free: 33.35 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007679/7.721, allocations: 104.5 kB / 4.204 GB, free: 33.35 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004351/7.725, allocations: 2.416 MB / 4.207 GB, free: 33.34 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004423/7.73, allocations: 2.641 MB / 4.209 GB, free: 32.89 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.051e-05/7.73, allocations: 6.031 kB / 4.209 GB, free: 32.89 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002522/7.73, allocations: 8.812 kB / 4.209 GB, free: 32.89 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001336/7.73, allocations: 153.9 kB / 4.209 GB, free: 32.88 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4176/8.148, allocations: 125.8 MB / 4.332 GB, free: 108.6 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001446/8.149, allocations: 1.037 MB / 4.333 GB, free: 108.6 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/8.15, allocations: 0.9378 MB / 4.334 GB, free: 108.6 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0314/8.182, allocations: 17 MB / 4.351 GB, free: 98.09 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001638/8.183, allocations: 1.148 MB / 4.352 GB, free: 97.93 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=136): time 2.915e-06/8.183, allocations: 0 / 4.352 GB, free: 97.93 MB / 0.5886 GB Notification: Performance of matching and sorting (n=148): time 0.01868/8.202, allocations: 7.564 MB / 4.359 GB, free: 96.55 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.126e-05/8.202, allocations: 368.7 kB / 4.36 GB, free: 96.14 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/8.203, allocations: 1.093 MB / 4.361 GB, free: 95.98 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001324/8.204, allocations: 29.42 kB / 4.361 GB, free: 95.95 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004499/8.204, allocations: 0.7077 MB / 4.361 GB, free: 95.63 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003759/8.204, allocations: 492 kB / 4.362 GB, free: 95.39 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/8.205, allocations: 3.188 kB / 4.362 GB, free: 95.39 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.815e-05/8.205, allocations: 377.7 kB / 4.362 GB, free: 95.08 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001257/8.206, allocations: 1.029 MB / 4.363 GB, free: 95.07 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001415/8.207, allocations: 1.385 MB / 4.365 GB, free: 94.69 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005545/8.213, allocations: 1.84 MB / 4.366 GB, free: 94.68 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/8.213, allocations: 5.562 kB / 4.366 GB, free: 94.68 MB / 0.5886 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.01039/8.223, allocations: 4.203 MB / 4.371 GB, free: 94.48 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005898/8.224, allocations: 3.72 MB / 4.374 GB, free: 90.67 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.678e-05/8.224, allocations: 14.06 kB / 4.374 GB, free: 90.67 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002441/8.226, allocations: 0.5644 MB / 4.375 GB, free: 90.64 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001931/8.228, allocations: 443.2 kB / 4.375 GB, free: 90.64 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002493/8.231, allocations: 3.091 MB / 4.378 GB, free: 88.56 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002351/8.233, allocations: 250.5 kB / 4.378 GB, free: 88.55 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001999/8.233, allocations: 96.66 kB / 4.379 GB, free: 88.55 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 9.047e-06/8.233, allocations: 4.562 kB / 4.379 GB, free: 88.55 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006643/8.24, allocations: 3.04 MB / 4.382 GB, free: 88.48 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/8.24, allocations: 11.12 kB / 4.382 GB, free: 88.48 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004293/8.241, allocations: 189.4 kB / 4.382 GB, free: 88.46 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001835/8.242, allocations: 465.3 kB / 4.382 GB, free: 88.46 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009193/8.243, allocations: 1.92 MB / 4.384 GB, free: 86.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001992/8.245, allocations: 218 kB / 4.384 GB, free: 86.89 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000183/8.246, allocations: 92.94 kB / 4.384 GB, free: 86.89 MB / 0.5886 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 (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_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_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (201): * Single equations (assignments): 195 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0004785/8.246, allocations: 223.8 kB / 4.385 GB, free: 86.72 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001817/8.248, allocations: 0.6133 MB / 4.385 GB, free: 86.64 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008321/8.256, allocations: 6.326 MB / 4.391 GB, free: 86.17 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.794e-05/8.256, allocations: 55.03 kB / 4.391 GB, free: 86.17 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/8.256, allocations: 2.562 kB / 4.391 GB, free: 86.17 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005745/8.262, allocations: 5.318 MB / 4.397 GB, free: 85.46 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01281/8.275, allocations: 8.766 MB / 4.405 GB, free: 84.63 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-05/8.275, allocations: 0 / 4.405 GB, free: 84.63 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001312/8.276, allocations: 266.5 kB / 4.405 GB, free: 84.63 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002216/8.279, allocations: 1.308 MB / 4.407 GB, free: 84.55 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002041/8.279, allocations: 47.06 kB / 4.407 GB, free: 84.55 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002545/8.281, allocations: 3.618 MB / 4.41 GB, free: 82.45 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/8.281, allocations: 0.5625 kB / 4.41 GB, free: 82.45 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008962/8.29, allocations: 6.689 MB / 4.417 GB, free: 81.88 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01129/8.302, allocations: 9.036 MB / 4.426 GB, free: 80.94 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001384/8.303, allocations: 0.6625 MB / 4.426 GB, free: 80.71 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004144/8.303, allocations: 17.89 kB / 4.426 GB, free: 80.71 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001437/8.305, allocations: 155.9 kB / 4.426 GB, free: 80.71 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002211/8.305, allocations: 114.4 kB / 4.426 GB, free: 80.71 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001375/8.305, allocations: 66.17 kB / 4.427 GB, free: 80.71 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001284/8.307, allocations: 1.079 MB / 4.428 GB, free: 80.6 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.009827/8.316, allocations: 3.165 MB / 4.431 GB, free: 80.52 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.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 (141): * Single equations (assignments): 125 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.008828/8.325, allocations: 3.145 MB / 4.434 GB, free: 80.21 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.006525/8.332, allocations: 4.915 MB / 4.439 GB, free: 80.03 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/8.332, allocations: 0 / 4.439 GB, free: 80.03 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002727/8.335, allocations: 2.61 MB / 4.441 GB, free: 79.95 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003794/8.338, allocations: 0.7531 MB / 4.442 GB, free: 79.94 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007414/8.346, allocations: 5.283 MB / 4.447 GB, free: 79.04 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001759/8.348, allocations: 2.232 MB / 4.449 GB, free: 78.28 MB / 0.5886 GB Notification: Performance of SimCode: time 7.72e-07/8.348, allocations: 0 / 4.449 GB, free: 78.28 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1)