Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001466/0.001467, allocations: 178.9 kB / 8.524 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 221.4 MB / 230.3 MB, free: 7.672 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 85.61 kB / 281.2 MB, free: 5.484 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2009/0.2009, allocations: 44.14 MB / 376.1 MB, free: 3.188 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.618e-06/9.658e-06, allocations: 224 / 444 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1499, allocations: 61.92 MB / 0.4941 GB, free: 1.559 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.552/5.702, allocations: 2.765 GB / 3.259 GB, free: 152 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001819/5.702, allocations: 83.08 kB / 3.259 GB, free: 152 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.003/6.704, allocations: 402.3 MB / 3.652 GB, free: 11.33 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.448e-05/6.705, allocations: 12 kB / 3.652 GB, free: 11.32 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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.005242/6.71, allocations: 1.552 MB / 3.654 GB, free: 9.727 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/6.71, allocations: 8.031 kB / 3.654 GB, free: 9.719 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002485/6.712, allocations: 318.9 kB / 3.654 GB, free: 9.406 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008814/6.713, allocations: 443.2 kB / 3.654 GB, free: 8.938 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.453e-05/6.713, allocations: 16 kB / 3.654 GB, free: 8.922 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.011e-05/6.713, allocations: 28 kB / 3.654 GB, free: 8.895 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007056/6.714, allocations: 373.7 kB / 3.655 GB, free: 8.531 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000712/6.715, allocations: 471.1 kB / 3.655 GB, free: 8.023 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/6.715, allocations: 4 kB / 3.655 GB, free: 8.02 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.502e-05/6.715, allocations: 0 / 3.655 GB, free: 8.02 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.301e-05/6.715, allocations: 12 kB / 3.655 GB, free: 8.008 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2736/6.988, allocations: 51.33 MB / 3.705 GB, free: 95.01 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003462/6.989, allocations: 252.7 kB / 3.706 GB, free: 94.99 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001842/6.989, allocations: 132.8 kB / 3.706 GB, free: 94.98 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09984/7.089, allocations: 55.7 MB / 3.76 GB, free: 59.48 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/7.089, allocations: 37.67 kB / 3.76 GB, free: 59.45 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=24): time 2.084e-06/7.089, allocations: 0 / 3.76 GB, free: 59.45 MB / 0.5261 GB Notification: Performance of matching and sorting (n=24): time 0.002247/7.091, allocations: 0.612 MB / 3.761 GB, free: 59.41 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/7.091, allocations: 110.6 kB / 3.761 GB, free: 59.28 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003273/7.092, allocations: 312.9 kB / 3.761 GB, free: 59.18 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.649e-05/7.092, allocations: 25.7 kB / 3.761 GB, free: 59.15 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 9.432e-05/7.092, allocations: 229.2 kB / 3.761 GB, free: 59.02 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.169e-05/7.092, allocations: 82.08 kB / 3.762 GB, free: 58.98 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.878e-05/7.092, allocations: 3.094 kB / 3.762 GB, free: 58.98 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.135e-05/7.092, allocations: 348.2 kB / 3.762 GB, free: 58.67 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/7.092, allocations: 124.4 kB / 3.762 GB, free: 58.67 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000219/7.092, allocations: 243.7 kB / 3.762 GB, free: 58.53 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001139/7.093, allocations: 292.7 kB / 3.763 GB, free: 58.52 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/7.093, allocations: 5.312 kB / 3.763 GB, free: 58.52 MB / 0.5261 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002444/7.096, allocations: 0.8243 MB / 3.763 GB, free: 58.46 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001938/7.096, allocations: 1.313 MB / 3.765 GB, free: 57.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/7.096, allocations: 0 / 3.765 GB, free: 57.09 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002137/7.096, allocations: 55.84 kB / 3.765 GB, free: 57.08 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003566/7.097, allocations: 97.83 kB / 3.765 GB, free: 57.08 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000964/7.098, allocations: 0.7216 MB / 3.765 GB, free: 56.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004829/7.098, allocations: 73.05 kB / 3.766 GB, free: 56.54 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.71e-05/7.098, allocations: 28.89 kB / 3.766 GB, free: 56.54 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.384e-06/7.098, allocations: 5.188 kB / 3.766 GB, free: 56.54 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001081/7.099, allocations: 423 kB / 3.766 GB, free: 56.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-06/7.099, allocations: 7.219 kB / 3.766 GB, free: 56.53 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.202e-06/7.099, allocations: 3.5 kB / 3.766 GB, free: 56.53 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000397/7.1, allocations: 115.8 kB / 3.766 GB, free: 56.53 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/7.1, allocations: 12.55 kB / 3.766 GB, free: 56.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003503/7.1, allocations: 58.52 kB / 3.766 GB, free: 56.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.302e-05/7.1, allocations: 20.61 kB / 3.766 GB, free: 56.52 MB / 0.5261 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 0.0001077/7.1, allocations: 120.8 kB / 3.766 GB, free: 56.41 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000558/7.101, allocations: 202.4 kB / 3.766 GB, free: 56.39 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002031/7.103, allocations: 1.688 MB / 3.768 GB, free: 56.26 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.739e-05/7.103, allocations: 18.27 kB / 3.768 GB, free: 56.26 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/7.103, allocations: 0 / 3.768 GB, free: 56.26 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/7.103, allocations: 4.938 kB / 3.768 GB, free: 56.26 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002306/7.105, allocations: 2.264 MB / 3.77 GB, free: 55.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/7.105, allocations: 7.844 kB / 3.77 GB, free: 55.89 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002155/7.106, allocations: 46.05 kB / 3.77 GB, free: 55.89 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000539/7.106, allocations: 0.512 MB / 3.771 GB, free: 55.85 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.346e-05/7.106, allocations: 6.391 kB / 3.771 GB, free: 55.85 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008864/7.107, allocations: 1.075 MB / 3.772 GB, free: 55.32 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/7.107, allocations: 3.875 kB / 3.772 GB, free: 55.32 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001829/7.109, allocations: 1.457 MB / 3.773 GB, free: 55.05 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002124/7.109, allocations: 190.4 kB / 3.774 GB, free: 54.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.066e-05/7.109, allocations: 10.7 kB / 3.774 GB, free: 54.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003231/7.11, allocations: 35.86 kB / 3.774 GB, free: 54.91 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.632e-05/7.11, allocations: 22.34 kB / 3.774 GB, free: 54.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.706e-05/7.11, allocations: 17.47 kB / 3.774 GB, free: 54.91 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0002044/7.11, allocations: 229.9 kB / 3.774 GB, free: 54.83 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004372/7.114, allocations: 1.202 MB / 3.775 GB, free: 54.81 MB / 0.5261 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.005627/7.12, allocations: 1.796 MB / 3.777 GB, free: 54.61 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001233/7.121, allocations: 0.883 MB / 3.778 GB, free: 54.59 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/7.121, allocations: 3.906 kB / 3.778 GB, free: 54.59 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.000528/7.122, allocations: 0.6245 MB / 3.778 GB, free: 54.59 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009531/7.123, allocations: 168.4 kB / 3.778 GB, free: 54.58 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/7.124, allocations: 1.066 MB / 3.779 GB, free: 54.33 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003936/7.125, allocations: 0.9773 MB / 3.78 GB, free: 53.61 MB / 0.5261 GB Notification: Performance of SimCode: time 3e-07/7.125, allocations: 0 / 3.78 GB, free: 53.61 MB / 0.5261 GB Notification: Performance of Templates: time 0.04554/7.17, allocations: 36.72 MB / 3.816 GB, free: 51.35 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestFlowRate/TestFlowRate.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches