Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.m_flow|volumeFlowRate.V_flow|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.m_flow|volumeFlowRate.V_flow|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_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.3+maint.om/package.mo): time 0.000901/0.0009011, allocations: 187.3 kB / 7.805 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9728/0.9728, allocations: 205.2 MB / 213.4 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007736/0.0007733, allocations: 89.48 kB / 261.4 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1462/0.1462, allocations: 43.5 MB / 352.9 MB, free: 1.957 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.051e-06/6.081e-06, allocations: 0 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2014/0.2014, allocations: 58.84 MB / 476.6 MB, free: 5.23 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.775/3.976, allocations: 2.76 GB / 3.225 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/3.977, allocations: 82.55 kB / 3.225 GB, free: 106.2 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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: Performance of FrontEnd: time 1.057/5.034, allocations: 398 MB / 3.614 GB, free: 64.45 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.452e-05/5.034, allocations: 17.53 kB / 3.614 GB, free: 64.45 MB / 0.4948 GB 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.004679/5.038, allocations: 1.547 MB / 3.615 GB, free: 63.59 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.099e-05/5.038, allocations: 11.22 kB / 3.615 GB, free: 63.59 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002234/5.041, allocations: 313.8 kB / 3.616 GB, free: 63.55 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007716/5.042, allocations: 450.5 kB / 3.616 GB, free: 63.23 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.032e-05/5.042, allocations: 21.66 kB / 3.616 GB, free: 63.22 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.177e-05/5.042, allocations: 24.59 kB / 3.616 GB, free: 63.22 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005758/5.042, allocations: 365.2 kB / 3.617 GB, free: 63.09 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005732/5.043, allocations: 470.5 kB / 3.617 GB, free: 62.83 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/5.043, allocations: 0 / 3.617 GB, free: 62.83 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.198e-05/5.043, allocations: 3.938 kB / 3.617 GB, free: 62.83 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/5.043, allocations: 7.094 kB / 3.617 GB, free: 62.83 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08576/5.129, allocations: 51.32 MB / 3.667 GB, free: 29.05 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003973/5.129, allocations: 259.4 kB / 3.667 GB, free: 28.95 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001862/5.129, allocations: 130.6 kB / 3.668 GB, free: 28.89 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2431/5.372, allocations: 55.69 MB / 3.722 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.782e-05/5.372, allocations: 31.56 kB / 3.722 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=24): time 2.124e-06/5.372, allocations: 0 / 3.722 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=24): time 0.002113/5.375, allocations: 0.6156 MB / 3.723 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.054e-05/5.375, allocations: 111.7 kB / 3.723 GB, free: 123.4 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000313/5.375, allocations: 304.8 kB / 3.723 GB, free: 123.3 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/5.375, allocations: 25.7 kB / 3.723 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 8.677e-05/5.375, allocations: 232.6 kB / 3.723 GB, free: 123.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 4.645e-05/5.375, allocations: 85.16 kB / 3.723 GB, free: 123.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.777e-05/5.375, allocations: 0 / 3.723 GB, free: 123.1 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 5.813e-05/5.375, allocations: 351.1 kB / 3.724 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001611/5.375, allocations: 126.1 kB / 3.724 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001942/5.376, allocations: 242.1 kB / 3.724 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/5.377, allocations: 294.4 kB / 3.724 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/5.377, allocations: 0 / 3.724 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002263/5.379, allocations: 0.8281 MB / 3.725 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001913/5.379, allocations: 1.305 MB / 3.726 GB, free: 121.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/5.379, allocations: 3.75 kB / 3.726 GB, free: 121.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002029/5.379, allocations: 52.92 kB / 3.726 GB, free: 121.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003302/5.38, allocations: 96.08 kB / 3.726 GB, free: 121.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008503/5.381, allocations: 0.7336 MB / 3.727 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004471/5.381, allocations: 72.33 kB / 3.727 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.396e-05/5.381, allocations: 19.31 kB / 3.727 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.881e-06/5.381, allocations: 6.219 kB / 3.727 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001006/5.382, allocations: 428.8 kB / 3.728 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/5.382, allocations: 7.469 kB / 3.728 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.43e-06/5.382, allocations: 5.812 kB / 3.728 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000364/5.382, allocations: 112.5 kB / 3.728 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/5.382, allocations: 7.438 kB / 3.728 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003138/5.383, allocations: 61.72 kB / 3.728 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.943e-05/5.383, allocations: 22.08 kB / 3.728 GB, free: 120.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (40): * Single equations (assignments): 39 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 9.547e-05/5.383, allocations: 115.8 kB / 3.728 GB, free: 120.6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005213/5.383, allocations: 204.2 kB / 3.728 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001783/5.385, allocations: 1.682 MB / 3.73 GB, free: 120.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.499e-05/5.385, allocations: 18.61 kB / 3.73 GB, free: 120.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/5.385, allocations: 0 / 3.73 GB, free: 120.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/5.385, allocations: 0 / 3.73 GB, free: 120.4 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002019/5.387, allocations: 2.261 MB / 3.732 GB, free: 120.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/5.387, allocations: 3.906 kB / 3.732 GB, free: 120.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000191/5.388, allocations: 50.47 kB / 3.732 GB, free: 120.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000469/5.388, allocations: 0.5121 MB / 3.733 GB, free: 120 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/5.388, allocations: 7.031 kB / 3.733 GB, free: 120 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008277/5.389, allocations: 1.084 MB / 3.734 GB, free: 119.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/5.389, allocations: 0 / 3.734 GB, free: 119.5 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001719/5.391, allocations: 1.466 MB / 3.735 GB, free: 119.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001804/5.391, allocations: 192.3 kB / 3.735 GB, free: 119.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.462e-05/5.391, allocations: 0 / 3.735 GB, free: 119.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002981/5.391, allocations: 38.08 kB / 3.735 GB, free: 119.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.124e-05/5.391, allocations: 27.22 kB / 3.735 GB, free: 119.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-05/5.391, allocations: 10.91 kB / 3.735 GB, free: 119.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0001828/5.391, allocations: 243.5 kB / 3.736 GB, free: 119 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004262/5.396, allocations: 1.199 MB / 3.737 GB, free: 119 MB / 0.5105 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 (26): * Single equations (assignments): 22 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004781/5.401, allocations: 1.774 MB / 3.739 GB, free: 118.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001048/5.402, allocations: 0.8952 MB / 3.739 GB, free: 118.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/5.402, allocations: 0.9375 kB / 3.739 GB, free: 118.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0004902/5.402, allocations: 0.6235 MB / 3.74 GB, free: 118.9 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007996/5.403, allocations: 160.7 kB / 3.74 GB, free: 118.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/5.404, allocations: 1.068 MB / 3.741 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003619/5.405, allocations: 0.9782 MB / 3.742 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of SimCode: time 2.41e-07/5.405, allocations: 0 / 3.742 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of Templates: time 0.03843/5.443, allocations: 36.72 MB / 3.778 GB, free: 117.3 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Sensors/TestFlowRate/TestFlowRate.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches