Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.SeriesPipes12,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",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.001183/0.001183, allocations: 198.6 kB / 8.539 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009251/0.0009251, allocations: 94.27 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1719/0.1719, allocations: 45.13 MB / 383.3 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2265/0.3985, allocations: 69.36 MB / 452.7 MB, free: 76.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.5013, allocations: 63.25 MB / 0.5039 GB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.374/4.875, allocations: 2.833 GB / 3.336 GB, free: 86.71 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002219/4.876, allocations: 79.95 kB / 3.337 GB, free: 86.63 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "Mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 2.399/7.275, allocations: 0.8113 GB / 4.148 GB, free: 42.98 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/7.275, allocations: 6.75 kB / 4.148 GB, free: 42.98 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006887/7.282, allocations: 0.8814 MB / 4.149 GB, free: 42.84 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0064/7.288, allocations: 2.107 MB / 4.151 GB, free: 42.39 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001938/7.288, allocations: 98.08 kB / 4.151 GB, free: 42.39 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000885/7.289, allocations: 117.1 kB / 4.151 GB, free: 42.39 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004838/7.294, allocations: 2.62 MB / 4.154 GB, free: 42.38 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004386/7.298, allocations: 2.862 MB / 4.156 GB, free: 41.82 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.115e-05/7.298, allocations: 10.5 kB / 4.156 GB, free: 41.82 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002241/7.299, allocations: 11.38 kB / 4.156 GB, free: 41.82 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001603/7.299, allocations: 175.5 kB / 4.157 GB, free: 41.82 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1767/7.476, allocations: 105.8 MB / 4.26 GB, free: 14.91 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00144/7.477, allocations: 1.135 MB / 4.261 GB, free: 14.28 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001132/7.478, allocations: 1.027 MB / 4.262 GB, free: 13.72 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2284/7.707, allocations: 19.34 MB / 4.281 GB, free: 132.5 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001847/7.708, allocations: 1.207 MB / 4.282 GB, free: 132.4 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=147): time 4.688e-06/7.709, allocations: 0 / 4.282 GB, free: 132.4 MB / 0.6042 GB Notification: Performance of matching and sorting (n=163): time 0.02092/7.729, allocations: 8.403 MB / 4.29 GB, free: 131 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.792e-05/7.73, allocations: 386.4 kB / 4.291 GB, free: 130.5 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001416/7.731, allocations: 1.151 MB / 4.292 GB, free: 130.4 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0002421/7.731, allocations: 26.61 kB / 4.292 GB, free: 130.4 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004799/7.732, allocations: 0.7761 MB / 4.293 GB, free: 130 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004728/7.732, allocations: 0.5381 MB / 4.293 GB, free: 129.7 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/7.732, allocations: 0.875 kB / 4.293 GB, free: 129.7 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.000119/7.732, allocations: 388 kB / 4.293 GB, free: 129.4 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001432/7.734, allocations: 1.158 MB / 4.295 GB, free: 129.4 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00159/7.735, allocations: 1.612 MB / 4.296 GB, free: 128.9 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007143/7.743, allocations: 2.328 MB / 4.298 GB, free: 128.9 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.947e-05/7.743, allocations: 2.625 kB / 4.298 GB, free: 128.9 MB / 0.6042 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01315/7.756, allocations: 5.351 MB / 4.304 GB, free: 128.7 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006782/7.757, allocations: 4.7 MB / 4.308 GB, free: 123.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.208e-05/7.757, allocations: 14.28 kB / 4.308 GB, free: 123.9 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007458/7.764, allocations: 2.147 MB / 4.31 GB, free: 123.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/7.765, allocations: 314.3 kB / 4.311 GB, free: 123.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006914/7.772, allocations: 4.306 MB / 4.315 GB, free: 123.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002597/7.775, allocations: 271.4 kB / 4.315 GB, free: 123.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002668/7.775, allocations: 104.3 kB / 4.315 GB, free: 123.3 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/7.775, allocations: 6.469 kB / 4.315 GB, free: 123.3 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009558/7.785, allocations: 4.121 MB / 4.319 GB, free: 123.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.956e-05/7.785, allocations: 12.81 kB / 4.319 GB, free: 123.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005816/7.791, allocations: 1.615 MB / 4.321 GB, free: 123.3 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/7.792, allocations: 353.3 kB / 4.321 GB, free: 123.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00371/7.796, allocations: 3.008 MB / 4.324 GB, free: 122.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002305/7.798, allocations: 243.3 kB / 4.324 GB, free: 122.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002352/7.798, allocations: 98.3 kB / 4.324 GB, free: 122.7 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 153 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.00055/7.799, allocations: 193.7 kB / 4.325 GB, free: 122.6 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00182/7.801, allocations: 0.6524 MB / 4.325 GB, free: 122.5 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008573/7.809, allocations: 6.677 MB / 4.332 GB, free: 122 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.277e-05/7.809, allocations: 60.59 kB / 4.332 GB, free: 122 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/7.809, allocations: 0 / 4.332 GB, free: 122 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006093/7.815, allocations: 5.484 MB / 4.337 GB, free: 121.3 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01158/7.827, allocations: 9.257 MB / 4.346 GB, free: 120.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.746e-06/7.827, allocations: 6.094 kB / 4.346 GB, free: 120.5 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001469/7.829, allocations: 331.6 kB / 4.347 GB, free: 120.5 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008891/7.829, allocations: 344.8 kB / 4.347 GB, free: 120.4 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001606/7.83, allocations: 47.75 kB / 4.347 GB, free: 120.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001223/7.831, allocations: 2.715 MB / 4.35 GB, free: 118.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/7.831, allocations: 1.328 kB / 4.35 GB, free: 118.4 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009556/7.84, allocations: 7.147 MB / 4.357 GB, free: 117.8 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01139/7.852, allocations: 9.687 MB / 4.366 GB, free: 116.8 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001426/7.853, allocations: 0.6974 MB / 4.367 GB, free: 116.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004867/7.854, allocations: 22.39 kB / 4.367 GB, free: 116.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001544/7.855, allocations: 162.6 kB / 4.367 GB, free: 116.6 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002439/7.856, allocations: 126.8 kB / 4.367 GB, free: 116.6 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000161/7.856, allocations: 75.25 kB / 4.367 GB, free: 116.6 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001491/7.857, allocations: 1.11 MB / 4.368 GB, free: 116.5 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01131/7.869, allocations: 3.25 MB / 4.371 GB, free: 116.3 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 13 * 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.01064/7.879, allocations: 3.076 MB / 4.374 GB, free: 116 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.007354/7.887, allocations: 5.576 MB / 4.38 GB, free: 115.8 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/7.887, allocations: 0 / 4.38 GB, free: 115.8 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.00288/7.89, allocations: 2.868 MB / 4.383 GB, free: 115.8 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003625/7.893, allocations: 0.7352 MB / 4.383 GB, free: 115.8 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00852/7.902, allocations: 5.946 MB / 4.389 GB, free: 114.8 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001838/7.904, allocations: 2.326 MB / 4.391 GB, free: 114 MB / 0.6042 GB Notification: Performance of SimCode: time 1.082e-06/7.904, allocations: 0 / 4.391 GB, free: 114 MB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1)