Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.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.BranchingPipes16,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",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.001615/0.001615, allocations: 199.5 kB / 8.54 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 225.5 MB / 234.4 MB, free: 3.465 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008747/0.0008747, allocations: 96.11 kB / 286.3 MB, free: 5.168 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1701/0.1701, allocations: 45.13 MB / 383.3 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1893/0.3594, allocations: 69.37 MB / 452.7 MB, free: 76.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08188/0.4413, allocations: 63.24 MB / 0.5039 GB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8958/1.337, allocations: 0.5617 GB / 1.066 GB, free: 102 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000212/1.337, allocations: 82.62 kB / 1.066 GB, free: 101.9 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: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 1.454/2.792, allocations: 0.5082 GB / 1.574 GB, free: 1.223 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/2.792, allocations: 8 kB / 1.574 GB, free: 1.215 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003798/2.796, allocations: 444.8 kB / 1.574 GB, free: 0.7773 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1879/2.983, allocations: 1.94 MB / 1.576 GB, free: 93.84 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001334/2.984, allocations: 57.75 kB / 1.576 GB, free: 93.84 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007337/2.984, allocations: 99.53 kB / 1.576 GB, free: 93.84 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003752/2.988, allocations: 2.201 MB / 1.578 GB, free: 93.83 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003436/2.992, allocations: 2.438 MB / 1.581 GB, free: 93.41 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.591e-05/2.992, allocations: 4.312 kB / 1.581 GB, free: 93.41 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002326/2.992, allocations: 13.36 kB / 1.581 GB, free: 93.41 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001272/2.992, allocations: 157 kB / 1.581 GB, free: 93.4 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01379/3.006, allocations: 11.87 MB / 1.593 GB, free: 86.57 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0015/3.007, allocations: 1.042 MB / 1.594 GB, free: 86.55 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001233/3.009, allocations: 1.009 MB / 1.595 GB, free: 86.54 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008325/3.01, allocations: 0.5049 MB / 1.595 GB, free: 86.07 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001468/3.011, allocations: 1.187 MB / 1.596 GB, free: 85.9 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=153): time 4.689e-06/3.011, allocations: 2.562 kB / 1.596 GB, free: 85.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=173): time 0.03967/3.051, allocations: 9.083 MB / 1.605 GB, free: 85.09 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.877e-05/3.051, allocations: 360.5 kB / 1.605 GB, free: 84.69 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001454/3.052, allocations: 1.085 MB / 1.606 GB, free: 84.53 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002767/3.053, allocations: 28.2 kB / 1.606 GB, free: 84.5 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004105/3.053, allocations: 0.6548 MB / 1.607 GB, free: 84.2 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004852/3.053, allocations: 0.5656 MB / 1.608 GB, free: 83.91 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001605/3.054, allocations: 0 / 1.608 GB, free: 83.91 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.705e-05/3.054, allocations: 384.1 kB / 1.608 GB, free: 83.6 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/3.055, allocations: 1.009 MB / 1.609 GB, free: 83.6 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001664/3.057, allocations: 1.437 MB / 1.61 GB, free: 83.18 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01012/3.067, allocations: 2.308 MB / 1.613 GB, free: 83.16 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.467e-05/3.067, allocations: 3.875 kB / 1.613 GB, free: 83.16 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01369/3.081, allocations: 3.946 MB / 1.617 GB, free: 82.95 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005734/3.081, allocations: 3.638 MB / 1.62 GB, free: 79.24 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.855e-05/3.081, allocations: 11.98 kB / 1.62 GB, free: 79.24 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003909/3.082, allocations: 172.9 kB / 1.62 GB, free: 79.21 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002584/3.084, allocations: 0.5396 MB / 1.621 GB, free: 79.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001205/3.086, allocations: 2.36 MB / 1.623 GB, free: 77.13 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002808/3.088, allocations: 176.6 kB / 1.623 GB, free: 77.12 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003706/3.089, allocations: 187.5 kB / 1.623 GB, free: 77.12 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 7.895e-06/3.089, allocations: 2.094 kB / 1.623 GB, free: 77.12 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01137/3.1, allocations: 3.401 MB / 1.627 GB, free: 77.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.646e-05/3.1, allocations: 13.09 kB / 1.627 GB, free: 77.05 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003345/3.101, allocations: 170.8 kB / 1.627 GB, free: 77.02 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002377/3.103, allocations: 0.5217 MB / 1.627 GB, free: 77.02 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001139/3.104, allocations: 2.365 MB / 1.63 GB, free: 74.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002281/3.106, allocations: 171 kB / 1.63 GB, free: 74.94 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003158/3.107, allocations: 182.1 kB / 1.63 GB, free: 74.94 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (243): * Single equations (assignments): 237 * 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.0006275/3.107, allocations: 232 kB / 1.63 GB, free: 74.77 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000417/3.108, allocations: 190.4 kB / 1.631 GB, free: 74.67 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01674/3.125, allocations: 5.12 MB / 1.636 GB, free: 74.49 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-05/3.125, allocations: 23.88 kB / 1.636 GB, free: 74.49 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/3.125, allocations: 0 / 1.636 GB, free: 74.49 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.012/3.137, allocations: 3.526 MB / 1.639 GB, free: 73.97 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01898/3.156, allocations: 6.847 MB / 1.646 GB, free: 73.03 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/3.156, allocations: 10.72 kB / 1.646 GB, free: 73.03 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002025/3.158, allocations: 409.9 kB / 1.646 GB, free: 73.03 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003887/3.158, allocations: 168.9 kB / 1.646 GB, free: 72.99 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002276/3.158, allocations: 75.48 kB / 1.646 GB, free: 72.99 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001483/3.16, allocations: 3.032 MB / 1.649 GB, free: 70.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/3.16, allocations: 13.88 kB / 1.649 GB, free: 70.25 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01442/3.174, allocations: 5.329 MB / 1.654 GB, free: 69.2 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01655/3.191, allocations: 7.216 MB / 1.662 GB, free: 67.77 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001253/3.192, allocations: 0.5125 MB / 1.662 GB, free: 67.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004784/3.193, allocations: 25.09 kB / 1.662 GB, free: 67.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001605/3.194, allocations: 90.75 kB / 1.662 GB, free: 67.57 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002823/3.195, allocations: 146.2 kB / 1.662 GB, free: 67.56 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002704/3.195, allocations: 149 kB / 1.662 GB, free: 67.56 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001105/3.196, allocations: 0.8025 MB / 1.663 GB, free: 67.45 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00706/3.203, allocations: 2.091 MB / 1.665 GB, free: 67.45 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,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 (183): * Single equations (assignments): 177 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.004141/3.207, allocations: 2.366 MB / 1.668 GB, free: 67.2 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005718/3.213, allocations: 3.997 MB / 1.671 GB, free: 67.02 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/3.213, allocations: 7.031 kB / 1.671 GB, free: 67.02 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001705/3.215, allocations: 1.385 MB / 1.673 GB, free: 66.85 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003747/3.218, allocations: 0.7509 MB / 1.674 GB, free: 66.84 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007252/3.226, allocations: 4.062 MB / 1.678 GB, free: 65.95 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002881/3.229, allocations: 2.267 MB / 1.68 GB, free: 65.2 MB / 0.5417 GB Notification: Performance of SimCode: time 4.91e-07/3.229, allocations: 0 / 1.68 GB, free: 65.2 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe 2>&1)