Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") [: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.1+maint.om/package.mo): time 0.003247/0.003247, allocations: 178.2 kB / 7.452 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.499/1.499, allocations: 170.6 MB / 178.4 MB, free: 15.37 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00186/0.00186, allocations: 119.8 kB / 217.7 MB, free: 8.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1931/0.1931, allocations: 37.97 MB / 294.8 MB, free: 9.598 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.277e-05/1.287e-05, allocations: 1.5 kB / 349.5 MB, free: 37.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1173, allocations: 48.71 MB / 398.2 MB, free: 5.656 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.989/6.107, allocations: 2.485 GB / 2.873 GB, free: 26.29 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/6.107, allocations: 88.36 kB / 2.874 GB, free: 26.21 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:327:3-329: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: Performance of FrontEnd: time 1.687/7.794, allocations: 386.1 MB / 3.251 GB, free: 36.79 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.152e-05/7.794, allocations: 17.94 kB / 3.251 GB, free: 36.79 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.007568/7.801, allocations: 1.498 MB / 3.252 GB, free: 36.15 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.832e-05/7.801, allocations: 12.56 kB / 3.252 GB, free: 36.15 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002793/7.804, allocations: 292.6 kB / 3.252 GB, free: 36.12 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/7.805, allocations: 478.2 kB / 3.253 GB, free: 35.9 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.971e-05/7.805, allocations: 14.16 kB / 3.253 GB, free: 35.9 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/7.806, allocations: 21.69 kB / 3.253 GB, free: 35.9 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008354/7.806, allocations: 366.5 kB / 3.253 GB, free: 35.9 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000864/7.807, allocations: 468.3 kB / 3.254 GB, free: 35.74 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/7.807, allocations: 3.062 kB / 3.254 GB, free: 35.74 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.595e-05/7.807, allocations: 2.688 kB / 3.254 GB, free: 35.74 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/7.807, allocations: 9.969 kB / 3.254 GB, free: 35.74 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.204/8.011, allocations: 67.4 MB / 3.319 GB, free: 27.18 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000504/8.012, allocations: 251.8 kB / 3.32 GB, free: 27.15 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002217/8.012, allocations: 121.5 kB / 3.32 GB, free: 27.14 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1579/8.17, allocations: 65.05 MB / 3.383 GB, free: 6.93 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.527e-05/8.17, allocations: 38.17 kB / 3.383 GB, free: 6.887 MB / 474.7 MB Notification: Performance of pre-optimization done (n=24): time 2.905e-06/8.17, allocations: 0 / 3.383 GB, free: 6.887 MB / 474.7 MB Notification: Performance of matching and sorting (n=24): time 0.002416/8.173, allocations: 0.5891 MB / 3.384 GB, free: 6.539 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.108e-05/8.173, allocations: 110 kB / 3.384 GB, free: 6.41 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004968/8.173, allocations: 296.1 kB / 3.384 GB, free: 6.195 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 4.456e-05/8.173, allocations: 29.7 kB / 3.384 GB, free: 6.16 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001484/8.174, allocations: 248.3 kB / 3.385 GB, free: 5.965 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.293e-05/8.174, allocations: 80.38 kB / 3.385 GB, free: 5.902 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.375e-05/8.174, allocations: 0 / 3.385 GB, free: 5.902 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001567/8.174, allocations: 352.8 kB / 3.385 GB, free: 5.578 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001892/8.174, allocations: 115.1 kB / 3.385 GB, free: 5.516 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002755/8.174, allocations: 269.1 kB / 3.385 GB, free: 5.254 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001171/8.175, allocations: 275.4 kB / 3.386 GB, free: 5.117 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/8.175, allocations: 4 kB / 3.386 GB, free: 5.113 MB / 474.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.002604/8.178, allocations: 0.8089 MB / 3.386 GB, free: 4.645 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008048/8.179, allocations: 1.744 MB / 3.388 GB, free: 2.805 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/8.179, allocations: 4 kB / 3.388 GB, free: 2.801 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002213/8.179, allocations: 54.02 kB / 3.388 GB, free: 2.766 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004161/8.18, allocations: 101.5 kB / 3.388 GB, free: 2.688 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001151/8.181, allocations: 0.7003 MB / 3.389 GB, free: 2.055 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005714/8.181, allocations: 69.78 kB / 3.389 GB, free: 2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.818e-05/8.181, allocations: 27.2 kB / 3.389 GB, free: 1.98 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/8.181, allocations: 4 kB / 3.389 GB, free: 1.977 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001248/8.183, allocations: 419.9 kB / 3.389 GB, free: 1.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/8.183, allocations: 8 kB / 3.389 GB, free: 1.742 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/8.183, allocations: 4 kB / 3.389 GB, free: 1.738 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004206/8.183, allocations: 116.6 kB / 3.39 GB, free: 1.652 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/8.183, allocations: 11.56 kB / 3.39 GB, free: 1.645 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004577/8.184, allocations: 43.06 kB / 3.39 GB, free: 1.609 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.481e-05/8.184, allocations: 27.72 kB / 3.39 GB, free: 1.59 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (massFlowRate1.medium.phase,boundary_fixed.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000184/8.184, allocations: 125.8 kB / 3.39 GB, free: 1.469 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006583/8.185, allocations: 204.5 kB / 3.39 GB, free: 1.355 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002556/8.187, allocations: 1.67 MB / 3.392 GB, free: 424 kB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.16e-05/8.187, allocations: 16.09 kB / 3.392 GB, free: 420 kB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-06/8.187, allocations: 0 / 3.392 GB, free: 420 kB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/8.187, allocations: 0 / 3.392 GB, free: 420 kB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2302/8.417, allocations: 2.234 MB / 3.394 GB, free: 124.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.914e-06/8.417, allocations: 0 / 3.394 GB, free: 124.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002655/8.418, allocations: 52.94 kB / 3.394 GB, free: 124.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006026/8.418, allocations: 0.4956 MB / 3.394 GB, free: 124 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.959e-05/8.418, allocations: 7.469 kB / 3.394 GB, free: 124 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001015/8.419, allocations: 1.053 MB / 3.395 GB, free: 123.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/8.419, allocations: 1.406 kB / 3.395 GB, free: 123.5 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002316/8.422, allocations: 1.453 MB / 3.397 GB, free: 123.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000346/8.422, allocations: 189.1 kB / 3.397 GB, free: 123.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/8.422, allocations: 0 / 3.397 GB, free: 123.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003915/8.423, allocations: 32.66 kB / 3.397 GB, free: 123.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.482e-05/8.423, allocations: 24.69 kB / 3.397 GB, free: 123.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.311e-05/8.423, allocations: 17.73 kB / 3.397 GB, free: 123.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0002903/8.423, allocations: 221.3 kB / 3.397 GB, free: 123.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00688/8.43, allocations: 1.173 MB / 3.398 GB, free: 123.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 ($cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,massFlowRate1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.01189/8.442, allocations: 1.778 MB / 3.4 GB, free: 123 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00184/8.444, allocations: 0.8872 MB / 3.401 GB, free: 122.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.814e-06/8.444, allocations: 0 / 3.401 GB, free: 122.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007542/8.445, allocations: 0.6176 MB / 3.402 GB, free: 122.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001224/8.446, allocations: 172.4 kB / 3.402 GB, free: 122.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1954/8.641, allocations: 54.96 MB / 3.455 GB, free: 121.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006469/8.642, allocations: 0.9797 MB / 3.456 GB, free: 120.9 MB / 474.7 MB Notification: Performance of SimCode: time 9.12e-07/8.642, allocations: 0 / 3.456 GB, free: 120.9 MB / 474.7 MB Notification: Performance of Templates: time 0.05274/8.695, allocations: 36.19 MB / 3.492 GB, free: 118.7 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1)