Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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.BranchingPipes3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",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.001268/0.001268, allocations: 198.2 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.239/1.239, allocations: 225.5 MB / 234.4 MB, free: 3.305 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009861/0.000986, allocations: 93.33 kB / 286.3 MB, free: 5.305 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1923/0.1923, allocations: 45.14 MB / 383.3 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2338/0.4262, allocations: 69.36 MB / 452.7 MB, free: 76.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.5357, allocations: 63.24 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.87/5.406, allocations: 2.848 GB / 3.352 GB, free: 71.76 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/5.406, allocations: 75.95 kB / 3.352 GB, free: 71.68 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 2.703/8.109, allocations: 0.8825 GB / 4.234 GB, free: 18 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/8.109, allocations: 12 kB / 4.234 GB, free: 17.99 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005724/8.115, allocations: 0.8204 MB / 4.235 GB, free: 17.17 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004696/8.12, allocations: 1.991 MB / 4.237 GB, free: 15.16 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001133/8.12, allocations: 83.98 kB / 4.237 GB, free: 15.08 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003565/8.12, allocations: 108 kB / 4.237 GB, free: 14.98 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003691/8.124, allocations: 2.373 MB / 4.24 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003792/8.128, allocations: 2.613 MB / 4.242 GB, free: 9.824 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.038e-05/8.128, allocations: 7.984 kB / 4.242 GB, free: 9.816 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002143/8.128, allocations: 8 kB / 4.242 GB, free: 9.809 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00013/8.128, allocations: 159.1 kB / 4.242 GB, free: 9.652 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4381/8.566, allocations: 141.3 MB / 4.38 GB, free: 31.08 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001459/8.568, allocations: 1.051 MB / 4.381 GB, free: 31.05 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001181/8.569, allocations: 1.009 MB / 4.382 GB, free: 31.04 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03433/8.603, allocations: 19.47 MB / 4.401 GB, free: 33.79 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00175/8.605, allocations: 1.179 MB / 4.402 GB, free: 33.63 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=145): time 3.446e-06/8.605, allocations: 0 / 4.402 GB, free: 33.63 MB / 0.6042 GB Notification: Performance of matching and sorting (n=157): time 0.03952/8.644, allocations: 9.265 MB / 4.411 GB, free: 32.18 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001534/8.645, allocations: 359.4 kB / 4.412 GB, free: 31.77 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001592/8.646, allocations: 1.054 MB / 4.413 GB, free: 31.6 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0003473/8.647, allocations: 29.61 kB / 4.413 GB, free: 31.57 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005666/8.647, allocations: 0.6981 MB / 4.414 GB, free: 31.26 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005783/8.648, allocations: 0.5047 MB / 4.414 GB, free: 31 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001734/8.648, allocations: 0 / 4.414 GB, free: 31 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001531/8.648, allocations: 378 kB / 4.414 GB, free: 30.7 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001461/8.65, allocations: 1.029 MB / 4.415 GB, free: 30.69 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001611/8.651, allocations: 1.411 MB / 4.417 GB, free: 30.3 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009132/8.66, allocations: 1.999 MB / 4.419 GB, free: 30.26 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-06/8.66, allocations: 3.188 kB / 4.419 GB, free: 30.26 MB / 0.6042 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01515/8.676, allocations: 4.332 MB / 4.423 GB, free: 30.04 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001047/8.677, allocations: 3.723 MB / 4.427 GB, free: 42.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.052e-05/8.677, allocations: 11.62 kB / 4.427 GB, free: 42.19 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002278/8.679, allocations: 0.5193 MB / 4.427 GB, free: 42.15 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001996/8.681, allocations: 461.9 kB / 4.428 GB, free: 42.14 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002588/8.684, allocations: 2.905 MB / 4.43 GB, free: 40.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002841/8.686, allocations: 276 kB / 4.431 GB, free: 40.02 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003424/8.687, allocations: 104.8 kB / 4.431 GB, free: 40.02 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 7.214e-06/8.687, allocations: 3.031 kB / 4.431 GB, free: 40.02 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01103/8.698, allocations: 3.198 MB / 4.434 GB, free: 39.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.467e-05/8.698, allocations: 15 kB / 4.434 GB, free: 39.93 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004462/8.698, allocations: 189.6 kB / 4.434 GB, free: 39.9 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001945/8.7, allocations: 469.7 kB / 4.435 GB, free: 39.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001259/8.702, allocations: 1.926 MB / 4.436 GB, free: 38.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002378/8.704, allocations: 246.1 kB / 4.437 GB, free: 38.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002748/8.704, allocations: 96.81 kB / 4.437 GB, free: 38.3 MB / 0.6198 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 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 205 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0005987/8.705, allocations: 227.7 kB / 4.437 GB, free: 38.13 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001894/8.707, allocations: 0.6145 MB / 4.438 GB, free: 38.04 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01394/8.721, allocations: 6.754 MB / 4.444 GB, free: 37.54 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.143e-05/8.721, allocations: 54.36 kB / 4.444 GB, free: 37.54 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/8.721, allocations: 3.797 kB / 4.444 GB, free: 37.54 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01164/8.732, allocations: 5.859 MB / 4.45 GB, free: 36.81 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01885/8.751, allocations: 10.25 MB / 4.46 GB, free: 35.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/8.751, allocations: 7.656 kB / 4.46 GB, free: 35.52 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00125/8.753, allocations: 292.4 kB / 4.46 GB, free: 35.52 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002039/8.755, allocations: 1.168 MB / 4.461 GB, free: 35.43 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001722/8.755, allocations: 49.95 kB / 4.461 GB, free: 35.43 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002676/8.758, allocations: 3.39 MB / 4.465 GB, free: 33.32 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/8.758, allocations: 7.938 kB / 4.465 GB, free: 33.32 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0148/8.772, allocations: 7.68 MB / 4.472 GB, free: 32.2 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01712/8.79, allocations: 10.04 MB / 4.482 GB, free: 30.68 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001416/8.791, allocations: 0.6653 MB / 4.483 GB, free: 30.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000608/8.792, allocations: 27.8 kB / 4.483 GB, free: 30.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001758/8.793, allocations: 158.3 kB / 4.483 GB, free: 30.44 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002411/8.794, allocations: 135.8 kB / 4.483 GB, free: 30.43 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001726/8.794, allocations: 72.66 kB / 4.483 GB, free: 30.43 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.001462/8.795, allocations: 1.035 MB / 4.484 GB, free: 30.32 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01187/8.807, allocations: 3.081 MB / 4.487 GB, free: 30.06 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (155): * Single equations (assignments): 139 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01083/8.818, allocations: 3.045 MB / 4.49 GB, free: 28.04 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.006766/8.825, allocations: 4.914 MB / 4.495 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/8.825, allocations: 8.188 kB / 4.495 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.003343/8.828, allocations: 2.974 MB / 4.498 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003876/8.832, allocations: 0.7516 MB / 4.499 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008428/8.841, allocations: 5.428 MB / 4.504 GB, free: 19.5 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00195/8.843, allocations: 2.234 MB / 4.506 GB, free: 17.82 MB / 0.6198 GB Notification: Performance of SimCode: time 5.31e-07/8.843, allocations: 0 / 4.506 GB, free: 17.82 MB / 0.6198 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1)