Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.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.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001821/0.001821, allocations: 191.3 kB / 7.805 MB, free: 128 kB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.701/1.701, allocations: 205.2 MB / 213.4 MB, free: 2.082 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001025/0.001026, allocations: 74.72 kB / 261.4 MB, free: 1.473 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2292/0.2292, allocations: 43.49 MB / 352.9 MB, free: 5.891 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.3082/0.5375, allocations: 64.96 MB / 417.8 MB, free: 62.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.6783, allocations: 58.85 MB / 476.7 MB, free: 3.809 MB / 318.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.789/7.467, allocations: 2.826 GB / 3.291 GB, free: 155.6 MB / 0.4981 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/7.468, allocations: 80.61 kB / 3.291 GB, free: 155.6 MB / 0.4981 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 3.153/10.62, allocations: 0.8679 GB / 4.159 GB, free: 40.36 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/10.62, allocations: 11.25 kB / 4.159 GB, free: 40.36 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006905/10.63, allocations: 0.8194 MB / 4.16 GB, free: 40.23 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007326/10.64, allocations: 1.966 MB / 4.162 GB, free: 39.79 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002704/10.64, allocations: 82.45 kB / 4.162 GB, free: 39.79 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001043/10.64, allocations: 108.5 kB / 4.162 GB, free: 39.79 MB / 0.5294 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005973/10.64, allocations: 2.421 MB / 4.164 GB, free: 39.78 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006536/10.65, allocations: 2.64 MB / 4.167 GB, free: 39.32 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.432e-05/10.65, allocations: 7.094 kB / 4.167 GB, free: 39.32 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006204/10.65, allocations: 10.06 kB / 4.167 GB, free: 39.32 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002022/10.65, allocations: 152.5 kB / 4.167 GB, free: 39.32 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5022/11.15, allocations: 125.8 MB / 4.29 GB, free: 94.7 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001454/11.15, allocations: 1.04 MB / 4.291 GB, free: 94.68 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001151/11.16, allocations: 0.9291 MB / 4.292 GB, free: 94.67 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03073/11.19, allocations: 17 MB / 4.308 GB, free: 84.15 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001897/11.19, allocations: 1.153 MB / 4.309 GB, free: 83.99 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=136): time 3.357e-06/11.19, allocations: 0 / 4.309 GB, free: 83.99 MB / 0.5606 GB Notification: Performance of matching and sorting (n=148): time 0.01962/11.21, allocations: 7.561 MB / 4.317 GB, free: 82.61 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/11.21, allocations: 356.5 kB / 4.317 GB, free: 82.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001578/11.21, allocations: 1.095 MB / 4.318 GB, free: 82.04 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0002136/11.21, allocations: 29.52 kB / 4.318 GB, free: 82.01 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005479/11.21, allocations: 0.7155 MB / 4.319 GB, free: 81.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004317/11.21, allocations: 487.7 kB / 4.319 GB, free: 81.45 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/11.21, allocations: 3.812 kB / 4.319 GB, free: 81.45 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001018/11.21, allocations: 379.6 kB / 4.32 GB, free: 81.14 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001368/11.21, allocations: 1.025 MB / 4.321 GB, free: 81.14 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001631/11.21, allocations: 1.387 MB / 4.322 GB, free: 80.75 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01123/11.23, allocations: 2.929 MB / 4.325 GB, free: 80.73 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.09e-05/11.23, allocations: 0 / 4.325 GB, free: 80.73 MB / 0.5606 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.01738/11.24, allocations: 5.29 MB / 4.33 GB, free: 80.54 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006625/11.24, allocations: 3.714 MB / 4.334 GB, free: 76.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.96e-05/11.24, allocations: 18.38 kB / 4.334 GB, free: 76.73 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002253/11.25, allocations: 0.5687 MB / 4.334 GB, free: 76.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001856/11.25, allocations: 441.6 kB / 4.335 GB, free: 76.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002537/11.25, allocations: 3.092 MB / 4.338 GB, free: 74.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002648/11.25, allocations: 250.4 kB / 4.338 GB, free: 74.61 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002873/11.25, allocations: 95.42 kB / 4.338 GB, free: 74.61 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/11.25, allocations: 3.719 kB / 4.338 GB, free: 74.61 MB / 0.5606 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01401/11.27, allocations: 4.124 MB / 4.342 GB, free: 74.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.022e-05/11.27, allocations: 7.531 kB / 4.342 GB, free: 74.54 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004214/11.27, allocations: 189.4 kB / 4.342 GB, free: 74.52 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001862/11.27, allocations: 460.8 kB / 4.343 GB, free: 74.52 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009607/11.27, allocations: 1.923 MB / 4.345 GB, free: 72.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002177/11.27, allocations: 218.4 kB / 4.345 GB, free: 72.95 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001951/11.27, allocations: 98.14 kB / 4.345 GB, free: 72.95 MB / 0.5606 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.0005989/11.27, allocations: 220.6 kB / 4.345 GB, free: 72.78 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001937/11.28, allocations: 0.6138 MB / 4.346 GB, free: 72.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009012/11.28, allocations: 6.32 MB / 4.352 GB, free: 72.23 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.135e-05/11.28, allocations: 52.2 kB / 4.352 GB, free: 72.23 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/11.28, allocations: 0 / 4.352 GB, free: 72.23 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006126/11.29, allocations: 5.319 MB / 4.357 GB, free: 71.52 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01188/11.3, allocations: 8.753 MB / 4.366 GB, free: 70.69 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/11.3, allocations: 0 / 4.366 GB, free: 70.69 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001204/11.3, allocations: 270.3 kB / 4.366 GB, free: 70.69 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002303/11.31, allocations: 1.309 MB / 4.367 GB, free: 70.62 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001686/11.31, allocations: 45.22 kB / 4.367 GB, free: 70.62 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002621/11.31, allocations: 3.613 MB / 4.371 GB, free: 68.51 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/11.31, allocations: 1.312 kB / 4.371 GB, free: 68.51 MB / 0.5606 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009904/11.32, allocations: 6.691 MB / 4.377 GB, free: 67.95 MB / 0.5606 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01154/11.33, allocations: 9.034 MB / 4.386 GB, free: 67 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001779/11.33, allocations: 0.6631 MB / 4.387 GB, free: 66.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000636/11.33, allocations: 17.09 kB / 4.387 GB, free: 66.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001699/11.33, allocations: 157.1 kB / 4.387 GB, free: 66.77 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002633/11.33, allocations: 109.6 kB / 4.387 GB, free: 66.77 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001635/11.34, allocations: 72.98 kB / 4.387 GB, free: 66.77 MB / 0.5606 GB Notification: Performance of sort global known variables: time 0.001561/11.34, allocations: 1.074 MB / 4.388 GB, free: 66.66 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01487/11.35, allocations: 3.166 MB / 4.391 GB, free: 66.55 MB / 0.5606 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.01525/11.37, allocations: 3.133 MB / 4.394 GB, free: 66.25 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008024/11.37, allocations: 4.915 MB / 4.399 GB, free: 66.07 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/11.37, allocations: 0 / 4.399 GB, free: 66.07 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003151/11.38, allocations: 2.612 MB / 4.402 GB, free: 65.98 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004439/11.38, allocations: 0.7625 MB / 4.403 GB, free: 65.97 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01115/11.39, allocations: 5.278 MB / 4.408 GB, free: 65.05 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002366/11.4, allocations: 2.225 MB / 4.41 GB, free: 64.26 MB / 0.5606 GB Notification: Performance of SimCode: time 1.012e-06/11.4, allocations: 0 / 4.41 GB, free: 64.26 MB / 0.5606 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1)