Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.2+maint.om/package.mo): time 0.003264/0.003264, allocations: 186.9 kB / 7.461 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.35/1.35, allocations: 194.2 MB / 202.1 MB, free: 8.66 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001745/0.001745, allocations: 124.9 kB / 247.1 MB, free: 6.348 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1904/0.1904, allocations: 39.95 MB / 331.9 MB, free: 4.887 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.422e-06/6.452e-06, allocations: 0 / 392.8 MB, free: 75.89 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1096, allocations: 54.87 MB / 447.6 MB, free: 20.99 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.48/4.59, allocations: 2.595 GB / 3.033 GB, free: 145 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/4.59, allocations: 82.03 kB / 3.033 GB, free: 145 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+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.175/5.765, allocations: 395.8 MB / 3.419 GB, free: 57.55 MB / 474.7 MB Notification: Performance of Transformations before backend: time 4.612e-05/5.765, allocations: 9.781 kB / 3.419 GB, free: 57.55 MB / 474.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.005239/5.77, allocations: 1.545 MB / 3.421 GB, free: 56.8 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/5.77, allocations: 8.344 kB / 3.421 GB, free: 56.8 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002528/5.773, allocations: 318.1 kB / 3.421 GB, free: 56.77 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001043/5.774, allocations: 472.3 kB / 3.421 GB, free: 56.55 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.8e-05/5.774, allocations: 15.69 kB / 3.421 GB, free: 56.55 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.231e-05/5.774, allocations: 24.84 kB / 3.421 GB, free: 56.55 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006449/5.774, allocations: 362.5 kB / 3.422 GB, free: 56.54 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006679/5.775, allocations: 465.6 kB / 3.422 GB, free: 56.4 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/5.775, allocations: 0 / 3.422 GB, free: 56.4 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.185e-05/5.775, allocations: 3.312 kB / 3.422 GB, free: 56.4 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/5.775, allocations: 10.44 kB / 3.422 GB, free: 56.4 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1903/5.965, allocations: 68.76 MB / 3.489 GB, free: 28.46 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003847/5.966, allocations: 252.4 kB / 3.49 GB, free: 28.3 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001591/5.966, allocations: 122.6 kB / 3.49 GB, free: 28.23 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3057/6.272, allocations: 65.07 MB / 3.553 GB, free: 128.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.008e-05/6.272, allocations: 41.2 kB / 3.553 GB, free: 128.5 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=24): time 2.515e-06/6.272, allocations: 0 / 3.553 GB, free: 128.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=24): time 0.002147/6.274, allocations: 0.5916 MB / 3.554 GB, free: 128.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/6.274, allocations: 113.4 kB / 3.554 GB, free: 128.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003321/6.274, allocations: 294 kB / 3.554 GB, free: 128.2 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/6.275, allocations: 25.7 kB / 3.554 GB, free: 128.2 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/6.275, allocations: 246.5 kB / 3.555 GB, free: 128.1 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 5.572e-05/6.275, allocations: 83.55 kB / 3.555 GB, free: 128.1 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.923e-05/6.275, allocations: 6.781 kB / 3.555 GB, free: 128.1 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.492e-05/6.275, allocations: 344.5 kB / 3.555 GB, free: 127.7 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001603/6.275, allocations: 121.7 kB / 3.555 GB, free: 127.7 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002098/6.275, allocations: 262.7 kB / 3.555 GB, free: 127.6 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001066/6.276, allocations: 282.9 kB / 3.556 GB, free: 127.6 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/6.276, allocations: 3.656 kB / 3.556 GB, free: 127.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.002359/6.279, allocations: 0.8145 MB / 3.556 GB, free: 127.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003004/6.279, allocations: 1.737 MB / 3.558 GB, free: 125.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/6.279, allocations: 6.625 kB / 3.558 GB, free: 125.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000187/6.279, allocations: 55.17 kB / 3.558 GB, free: 125.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003703/6.28, allocations: 99.53 kB / 3.558 GB, free: 125.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000857/6.28, allocations: 0.6964 MB / 3.559 GB, free: 125.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004642/6.281, allocations: 63.12 kB / 3.559 GB, free: 125.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.098e-05/6.281, allocations: 28.47 kB / 3.559 GB, free: 125.2 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 5.5e-06/6.281, allocations: 2.438 kB / 3.559 GB, free: 125.2 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001028/6.282, allocations: 432.5 kB / 3.559 GB, free: 125.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/6.282, allocations: 4.875 kB / 3.559 GB, free: 125.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.993e-06/6.282, allocations: 6.75 kB / 3.559 GB, free: 125.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000369/6.282, allocations: 108.2 kB / 3.56 GB, free: 125.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/6.282, allocations: 19.12 kB / 3.56 GB, free: 125.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00031/6.283, allocations: 45.42 kB / 3.56 GB, free: 125.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.297e-05/6.283, allocations: 30.42 kB / 3.56 GB, free: 125.1 MB / 0.4948 GB 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.000108/6.283, allocations: 120.9 kB / 3.56 GB, free: 125 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005485/6.283, allocations: 198.2 kB / 3.56 GB, free: 125 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002045/6.285, allocations: 1.674 MB / 3.562 GB, free: 124.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.999e-05/6.286, allocations: 22.84 kB / 3.562 GB, free: 124.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/6.286, allocations: 3.812 kB / 3.562 GB, free: 124.9 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/6.286, allocations: 0 / 3.562 GB, free: 124.9 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002372/6.288, allocations: 2.226 MB / 3.564 GB, free: 124.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/6.288, allocations: 0 / 3.564 GB, free: 124.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002143/6.288, allocations: 53.83 kB / 3.564 GB, free: 124.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004882/6.289, allocations: 0.4962 MB / 3.564 GB, free: 124.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.288e-05/6.289, allocations: 3.812 kB / 3.564 GB, free: 124.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008699/6.29, allocations: 1.06 MB / 3.565 GB, free: 123.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/6.29, allocations: 3 kB / 3.565 GB, free: 123.9 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001804/6.291, allocations: 1.442 MB / 3.567 GB, free: 123.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001819/6.292, allocations: 188 kB / 3.567 GB, free: 123.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.059e-05/6.292, allocations: 3.906 kB / 3.567 GB, free: 123.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002937/6.292, allocations: 31.36 kB / 3.567 GB, free: 123.6 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.094e-05/6.292, allocations: 24.72 kB / 3.567 GB, free: 123.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.55e-05/6.292, allocations: 15.88 kB / 3.567 GB, free: 123.6 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0002027/6.292, allocations: 224 kB / 3.567 GB, free: 123.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005162/6.297, allocations: 1.179 MB / 3.568 GB, free: 123.5 MB / 0.4948 GB 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.006256/6.304, allocations: 1.786 MB / 3.57 GB, free: 123.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001301/6.305, allocations: 0.8824 MB / 3.571 GB, free: 123.3 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/6.305, allocations: 0 / 3.571 GB, free: 123.3 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0005346/6.306, allocations: 0.6131 MB / 3.572 GB, free: 123.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009279/6.307, allocations: 166.8 kB / 3.572 GB, free: 123.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1355/6.442, allocations: 55.9 MB / 3.626 GB, free: 121.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005738/6.443, allocations: 0.9769 MB / 3.627 GB, free: 120.9 MB / 0.4948 GB Notification: Performance of SimCode: time 1.843e-06/6.443, allocations: 0 / 3.627 GB, free: 120.9 MB / 0.4948 GB Notification: Performance of Templates: time 0.0504/6.493, allocations: 36.42 MB / 3.663 GB, free: 115.5 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1)