Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",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 trunk/package.mo): time 0.001157/0.001157, allocations: 198.8 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.167/1.167, allocations: 225.5 MB / 234.4 MB, free: 3.293 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009138/0.0009138, allocations: 89.84 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1674/0.1674, allocations: 45.14 MB / 383.4 MB, free: 0.5 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1985/0.3659, allocations: 69.36 MB / 452.7 MB, free: 76.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08348/0.4494, allocations: 63.24 MB / 0.5039 GB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.472/4.921, allocations: 2.852 GB / 3.356 GB, free: 66.69 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/4.921, allocations: 75.95 kB / 3.356 GB, free: 66.62 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 2.992/7.914, allocations: 1.025 GB / 4.381 GB, free: 38.04 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/7.914, allocations: 11.91 kB / 4.381 GB, free: 38.04 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006639/7.92, allocations: 0.9776 MB / 4.382 GB, free: 37.88 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00502/7.925, allocations: 2.215 MB / 4.384 GB, free: 37.42 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001213/7.926, allocations: 102.3 kB / 4.384 GB, free: 37.42 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003373/7.926, allocations: 137 kB / 4.384 GB, free: 37.42 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004205/7.93, allocations: 2.883 MB / 4.387 GB, free: 37.4 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004063/7.934, allocations: 3.093 MB / 4.39 GB, free: 36.81 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.402e-05/7.934, allocations: 8.125 kB / 4.39 GB, free: 36.81 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002393/7.935, allocations: 7.406 kB / 4.39 GB, free: 36.81 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001302/7.935, allocations: 184.9 kB / 4.39 GB, free: 36.8 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1107/8.045, allocations: 70.82 MB / 4.459 GB, free: 22.73 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002187/8.048, allocations: 1.291 MB / 4.461 GB, free: 22.71 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001763/8.049, allocations: 1.232 MB / 4.462 GB, free: 22.69 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03445/8.084, allocations: 19.21 MB / 4.481 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002398/8.086, allocations: 1.416 MB / 4.482 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=186): time 3.877e-06/8.086, allocations: 0 / 4.482 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of matching and sorting (n=206): time 0.03926/8.126, allocations: 10.84 MB / 4.493 GB, free: 17.5 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001745/8.126, allocations: 360.1 kB / 4.493 GB, free: 17.06 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001498/8.127, allocations: 1.176 MB / 4.494 GB, free: 16.07 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0002687/8.128, allocations: 33.7 kB / 4.494 GB, free: 16.04 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004997/8.128, allocations: 0.8072 MB / 4.495 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.000504/8.129, allocations: 0.6606 MB / 4.495 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001504/8.129, allocations: 4 kB / 4.495 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001525/8.129, allocations: 399.5 kB / 4.496 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001855/8.131, allocations: 1.229 MB / 4.497 GB, free: 13.23 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002203/8.133, allocations: 1.737 MB / 4.499 GB, free: 11.46 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01033/8.143, allocations: 2.273 MB / 4.501 GB, free: 9.688 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.856e-05/8.143, allocations: 8 kB / 4.501 GB, free: 9.68 MB / 0.6198 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01701/8.16, allocations: 4.892 MB / 4.506 GB, free: 5.664 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001369/8.162, allocations: 4.981 MB / 4.511 GB, free: 432 kB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.946e-05/8.162, allocations: 12 kB / 4.511 GB, free: 420 kB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009504/8.163, allocations: 324 kB / 4.511 GB, free: 144 kB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.208/8.371, allocations: 0.642 MB / 4.512 GB, free: 127.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001739/8.373, allocations: 3.191 MB / 4.515 GB, free: 124.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00293/8.376, allocations: 337.7 kB / 4.515 GB, free: 124.9 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002731/8.376, allocations: 123.3 kB / 4.515 GB, free: 124.9 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 9.758e-06/8.376, allocations: 9.812 kB / 4.515 GB, free: 124.9 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01184/8.388, allocations: 3.778 MB / 4.519 GB, free: 124.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.711e-05/8.388, allocations: 11.75 kB / 4.519 GB, free: 124.8 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008144/8.389, allocations: 331.7 kB / 4.519 GB, free: 124.8 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002428/8.391, allocations: 0.5973 MB / 4.52 GB, free: 124.8 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001707/8.393, allocations: 3.189 MB / 4.523 GB, free: 122.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00303/8.396, allocations: 316.9 kB / 4.523 GB, free: 122.2 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002789/8.396, allocations: 121.4 kB / 4.523 GB, free: 122.2 MB / 0.6198 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.junctionVolume.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real junctionVolume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 31 (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,junctionVolume.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 (283): * Single equations (assignments): 276 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,2 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007861/8.397, allocations: 246.5 kB / 4.524 GB, free: 122 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002015/8.399, allocations: 0.7123 MB / 4.524 GB, free: 122 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01687/8.416, allocations: 7.812 MB / 4.532 GB, free: 121.6 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.199e-05/8.416, allocations: 60.23 kB / 4.532 GB, free: 121.6 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/8.416, allocations: 3.75 kB / 4.532 GB, free: 121.6 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0142/8.43, allocations: 6.711 MB / 4.538 GB, free: 120.9 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02222/8.452, allocations: 12.63 MB / 4.551 GB, free: 119.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/8.452, allocations: 3.188 kB / 4.551 GB, free: 119.1 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00174/8.454, allocations: 424.6 kB / 4.551 GB, free: 119.1 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00115/8.455, allocations: 445.6 kB / 4.552 GB, free: 119.1 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001972/8.455, allocations: 60.52 kB / 4.552 GB, free: 119.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001769/8.457, allocations: 3.416 MB / 4.555 GB, free: 116.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.146e-06/8.457, allocations: 15.62 kB / 4.555 GB, free: 116.5 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01759/8.475, allocations: 9.169 MB / 4.564 GB, free: 115.2 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02019/8.495, allocations: 11.98 MB / 4.576 GB, free: 113.4 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001513/8.497, allocations: 0.751 MB / 4.576 GB, free: 113.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004459/8.497, allocations: 28.33 kB / 4.576 GB, free: 113.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001822/8.499, allocations: 206.4 kB / 4.577 GB, free: 113.1 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002932/8.499, allocations: 174.3 kB / 4.577 GB, free: 113.1 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000201/8.499, allocations: 97.77 kB / 4.577 GB, free: 113.1 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.001394/8.501, allocations: 1.128 MB / 4.578 GB, free: 113 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01083/8.512, allocations: 3.447 MB / 4.581 GB, free: 113 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 9 (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,junctionVolume.medium.h) * Number of discrete variables: 43 ($cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.phase,$cse43.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,junctionVolume.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 (220): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.008403/8.52, allocations: 3.325 MB / 4.585 GB, free: 112.8 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.007978/8.528, allocations: 5.995 MB / 4.59 GB, free: 112.6 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/8.528, allocations: 3.75 kB / 4.59 GB, free: 112.6 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.003888/8.532, allocations: 3.637 MB / 4.594 GB, free: 112.5 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004638/8.537, allocations: 0.9599 MB / 4.595 GB, free: 112.5 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009508/8.546, allocations: 6.441 MB / 4.601 GB, free: 111.3 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002242/8.548, allocations: 2.497 MB / 4.604 GB, free: 110.5 MB / 0.6198 GB Notification: Performance of SimCode: time 5.21e-07/8.548, allocations: 0 / 4.604 GB, free: 110.5 MB / 0.6198 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1)