Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001644/0.001644, allocations: 188.4 kB / 7.803 MB, free: 2.5 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.753/1.753, allocations: 205.2 MB / 213.4 MB, free: 13.91 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.001042/0.001042, allocations: 97.97 kB / 261.4 MB, free: 13.6 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.2292/0.2292, allocations: 43.49 MB / 352.8 MB, free: 2.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2518/0.481, allocations: 64.96 MB / 417.8 MB, free: 40.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4217/0.9027, allocations: 58.83 MB / 476.6 MB, free: 5.18 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.479/7.382, allocations: 2.846 GB / 3.311 GB, free: 19.29 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002107/7.382, allocations: 79.95 kB / 3.311 GB, free: 19.21 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 3.341/10.72, allocations: 0.9074 GB / 4.219 GB, free: 26.25 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/10.72, allocations: 9.75 kB / 4.219 GB, free: 26.25 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007001/10.73, allocations: 0.909 MB / 4.219 GB, free: 26.11 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005795/10.74, allocations: 2.125 MB / 4.222 GB, free: 25.66 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000167/10.74, allocations: 93.75 kB / 4.222 GB, free: 25.66 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005434/10.74, allocations: 127.5 kB / 4.222 GB, free: 25.66 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00445/10.74, allocations: 2.701 MB / 4.224 GB, free: 25.65 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004148/10.75, allocations: 2.92 MB / 4.227 GB, free: 25.11 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.423e-05/10.75, allocations: 9.219 kB / 4.227 GB, free: 25.11 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002375/10.75, allocations: 5.938 kB / 4.227 GB, free: 25.11 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001508/10.75, allocations: 178.8 kB / 4.227 GB, free: 25.1 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5105/11.26, allocations: 127.3 MB / 4.352 GB, free: 104.2 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001631/11.26, allocations: 1.154 MB / 4.353 GB, free: 104.2 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00129/11.26, allocations: 1.102 MB / 4.354 GB, free: 104.2 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03123/11.29, allocations: 16.97 MB / 4.37 GB, free: 93.67 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002324/11.29, allocations: 1.277 MB / 4.372 GB, free: 93.51 MB / 0.573 GB Notification: Performance of pre-optimization done (n=163): time 4.488e-06/11.29, allocations: 0 / 4.372 GB, free: 93.51 MB / 0.573 GB Notification: Performance of matching and sorting (n=179): time 0.03697/11.33, allocations: 9.893 MB / 4.381 GB, free: 92.02 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00013/11.33, allocations: 360.5 kB / 4.382 GB, free: 91.61 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001679/11.33, allocations: 1.114 MB / 4.383 GB, free: 91.45 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004566/11.33, allocations: 29.61 kB / 4.383 GB, free: 91.42 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006975/11.33, allocations: 0.7724 MB / 4.384 GB, free: 91.07 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007025/11.33, allocations: 0.579 MB / 4.384 GB, free: 90.77 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/11.33, allocations: 3.688 kB / 4.384 GB, free: 90.77 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001115/11.33, allocations: 384.6 kB / 4.385 GB, free: 90.47 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00153/11.34, allocations: 1.123 MB / 4.386 GB, free: 90.46 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001761/11.34, allocations: 1.577 MB / 4.387 GB, free: 90.02 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009518/11.35, allocations: 2.111 MB / 4.389 GB, free: 89.99 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.592e-05/11.35, allocations: 2.906 kB / 4.389 GB, free: 89.99 MB / 0.573 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01492/11.36, allocations: 4.499 MB / 4.394 GB, free: 89.79 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007313/11.36, allocations: 4.343 MB / 4.398 GB, free: 85.35 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.784e-05/11.36, allocations: 8.75 kB / 4.398 GB, free: 85.35 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005885/11.36, allocations: 226.8 kB / 4.398 GB, free: 85.32 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002162/11.37, allocations: 0.533 MB / 4.399 GB, free: 85.32 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001282/11.37, allocations: 2.482 MB / 4.401 GB, free: 83.24 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003012/11.37, allocations: 318.3 kB / 4.401 GB, free: 83.23 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002495/11.37, allocations: 112.6 kB / 4.401 GB, free: 83.23 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 8.466e-06/11.37, allocations: 5.5 kB / 4.401 GB, free: 83.23 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0107/11.38, allocations: 3.415 MB / 4.405 GB, free: 83.16 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.904e-05/11.38, allocations: 12.41 kB / 4.405 GB, free: 83.16 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005578/11.38, allocations: 222.5 kB / 4.405 GB, free: 83.12 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002186/11.38, allocations: 0.5266 MB / 4.406 GB, free: 83.12 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001262/11.38, allocations: 2.488 MB / 4.408 GB, free: 81.05 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002843/11.39, allocations: 277 kB / 4.408 GB, free: 81.04 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002736/11.39, allocations: 113.1 kB / 4.408 GB, free: 81.04 MB / 0.573 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.0007447/11.39, allocations: 237.3 kB / 4.409 GB, free: 80.86 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002189/11.39, allocations: 0.6597 MB / 4.409 GB, free: 80.77 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02365/11.41, allocations: 6.785 MB / 4.416 GB, free: 80.33 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.049e-05/11.41, allocations: 54 kB / 4.416 GB, free: 80.33 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.715e-05/11.41, allocations: 0 / 4.416 GB, free: 80.33 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02497/11.44, allocations: 5.873 MB / 4.422 GB, free: 79.63 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03855/11.48, allocations: 11.16 MB / 4.433 GB, free: 77.91 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.536e-05/11.48, allocations: 9.875 kB / 4.433 GB, free: 77.91 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001744/11.48, allocations: 362.5 kB / 4.433 GB, free: 77.91 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000888/11.48, allocations: 324.5 kB / 4.433 GB, free: 77.87 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002351/11.48, allocations: 60.94 kB / 4.433 GB, free: 77.87 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001441/11.48, allocations: 2.664 MB / 4.436 GB, free: 75.78 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.147e-06/11.48, allocations: 8.438 kB / 4.436 GB, free: 75.78 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01817/11.5, allocations: 8.121 MB / 4.444 GB, free: 74.53 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02017/11.52, allocations: 10.62 MB / 4.454 GB, free: 72.89 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002132/11.52, allocations: 0.7 MB / 4.455 GB, free: 72.66 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005443/11.52, allocations: 29.48 kB / 4.455 GB, free: 72.66 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001889/11.53, allocations: 183 kB / 4.455 GB, free: 72.64 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002803/11.53, allocations: 150 kB / 4.455 GB, free: 72.64 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001757/11.53, allocations: 85.41 kB / 4.455 GB, free: 72.64 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.001429/11.53, allocations: 1.077 MB / 4.456 GB, free: 72.53 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01493/11.54, allocations: 3.195 MB / 4.459 GB, free: 72.42 MB / 0.573 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.01388/11.56, allocations: 3.123 MB / 4.463 GB, free: 72.12 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.008056/11.56, allocations: 5.274 MB / 4.468 GB, free: 71.94 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/11.56, allocations: 0 / 4.468 GB, free: 71.94 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.003983/11.57, allocations: 3.183 MB / 4.471 GB, free: 71.86 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005403/11.57, allocations: 0.8054 MB / 4.472 GB, free: 71.85 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/11.58, allocations: 5.791 MB / 4.477 GB, free: 70.56 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002191/11.59, allocations: 2.347 MB / 4.48 GB, free: 69.76 MB / 0.573 GB Notification: Performance of SimCode: time 7.81e-07/11.59, allocations: 4.516 kB / 4.48 GB, free: 69.76 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1)