Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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_cpp_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_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002447/0.002447, allocations: 170.3 kB / 8.149 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.695/1.695, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001256/0.001256, allocations: 92.77 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2604/0.2604, allocations: 43.49 MB / 353.2 MB, free: 2.023 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.546e-06/8.686e-06, allocations: 4 kB / 417.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2951/0.2951, allocations: 58.83 MB / 476.5 MB, free: 5.094 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.716/6.011, allocations: 2.76 GB / 3.225 GB, free: 24.02 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002886/6.011, allocations: 82.83 kB / 3.225 GB, free: 23.98 MB / 0.4948 GB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/var/lib/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.819/7.83, allocations: 398 MB / 3.614 GB, free: 21.02 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.719e-05/7.831, allocations: 12 kB / 3.614 GB, free: 21.01 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.006704/7.837, allocations: 1.542 MB / 3.615 GB, free: 19.43 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/7.837, allocations: 12.03 kB / 3.615 GB, free: 19.42 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003683/7.841, allocations: 315 kB / 3.616 GB, free: 19.11 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001295/7.842, allocations: 448.8 kB / 3.616 GB, free: 18.64 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.49e-05/7.842, allocations: 16 kB / 3.616 GB, free: 18.62 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.425e-05/7.843, allocations: 27.91 kB / 3.616 GB, free: 18.59 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001051/7.844, allocations: 369.9 kB / 3.617 GB, free: 18.23 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001014/7.845, allocations: 477.9 kB / 3.617 GB, free: 17.71 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.014e-05/7.845, allocations: 7.875 kB / 3.617 GB, free: 17.71 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.302e-05/7.845, allocations: 4 kB / 3.617 GB, free: 17.7 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/7.845, allocations: 8 kB / 3.617 GB, free: 17.7 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.382/8.227, allocations: 51.31 MB / 3.667 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006504/8.227, allocations: 254 kB / 3.667 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003143/8.228, allocations: 127.8 kB / 3.668 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1931/8.421, allocations: 55.7 MB / 3.722 GB, free: 70.21 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/8.421, allocations: 38.16 kB / 3.722 GB, free: 70.18 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=24): time 2.184e-06/8.421, allocations: 2.297 kB / 3.722 GB, free: 70.18 MB / 0.5105 GB Notification: Performance of matching and sorting (n=24): time 0.003489/8.425, allocations: 0.6214 MB / 3.723 GB, free: 70.13 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.485e-05/8.425, allocations: 109.9 kB / 3.723 GB, free: 70.01 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005108/8.425, allocations: 304 kB / 3.723 GB, free: 69.91 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.63e-05/8.425, allocations: 28.08 kB / 3.723 GB, free: 69.88 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/8.425, allocations: 282.8 kB / 3.723 GB, free: 69.68 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 8.113e-05/8.425, allocations: 82.89 kB / 3.723 GB, free: 69.64 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.028e-05/8.425, allocations: 0 / 3.723 GB, free: 69.64 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.809e-05/8.426, allocations: 324.4 kB / 3.724 GB, free: 69.33 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000322/8.426, allocations: 129.2 kB / 3.724 GB, free: 69.32 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003935/8.426, allocations: 242.8 kB / 3.724 GB, free: 69.19 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001946/8.428, allocations: 292.3 kB / 3.724 GB, free: 69.18 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/8.428, allocations: 0 / 3.724 GB, free: 69.18 MB / 0.5105 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.004072/8.432, allocations: 0.8062 MB / 3.725 GB, free: 69.13 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002857/8.433, allocations: 1.306 MB / 3.726 GB, free: 67.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/8.433, allocations: 7.594 kB / 3.726 GB, free: 67.76 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002888/8.433, allocations: 55.39 kB / 3.726 GB, free: 67.75 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006949/8.434, allocations: 98.16 kB / 3.726 GB, free: 67.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001619/8.435, allocations: 0.7245 MB / 3.727 GB, free: 67.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007113/8.436, allocations: 65.17 kB / 3.727 GB, free: 67.21 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.106e-05/8.436, allocations: 21.5 kB / 3.727 GB, free: 67.21 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/8.436, allocations: 3.5 kB / 3.727 GB, free: 67.21 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001866/8.438, allocations: 418.9 kB / 3.728 GB, free: 67.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/8.438, allocations: 7.562 kB / 3.728 GB, free: 67.21 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/8.438, allocations: 7.188 kB / 3.728 GB, free: 67.21 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007832/8.439, allocations: 113.3 kB / 3.728 GB, free: 67.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/8.439, allocations: 7.047 kB / 3.728 GB, free: 67.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006959/8.44, allocations: 66.17 kB / 3.728 GB, free: 67.19 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.573e-05/8.44, allocations: 27.19 kB / 3.728 GB, free: 67.19 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 {2 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002065/8.44, allocations: 37.61 kB / 3.728 GB, free: 67.16 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009214/8.441, allocations: 202.9 kB / 3.728 GB, free: 67.14 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003535/8.444, allocations: 1.676 MB / 3.73 GB, free: 67.01 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-05/8.445, allocations: 21 kB / 3.73 GB, free: 67.01 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/8.445, allocations: 0 / 3.73 GB, free: 67.01 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.318e-06/8.445, allocations: 3.844 kB / 3.73 GB, free: 67.01 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003993/8.449, allocations: 2.271 MB / 3.732 GB, free: 66.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-05/8.449, allocations: 7.344 kB / 3.732 GB, free: 66.64 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004278/8.449, allocations: 46.8 kB / 3.732 GB, free: 66.64 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000914/8.45, allocations: 0.516 MB / 3.733 GB, free: 66.59 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.664e-05/8.45, allocations: 3.281 kB / 3.733 GB, free: 66.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001562/8.452, allocations: 1.088 MB / 3.734 GB, free: 66.05 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/8.452, allocations: 0 / 3.734 GB, free: 66.05 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003205/8.455, allocations: 1.459 MB / 3.735 GB, free: 65.79 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000365/8.455, allocations: 190.4 kB / 3.735 GB, free: 65.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/8.455, allocations: 3.531 kB / 3.735 GB, free: 65.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006123/8.456, allocations: 38.45 kB / 3.735 GB, free: 65.65 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/8.456, allocations: 30.55 kB / 3.735 GB, free: 65.65 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.495e-05/8.456, allocations: 14.84 kB / 3.735 GB, free: 65.65 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0003571/8.457, allocations: 229 kB / 3.736 GB, free: 65.57 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005951/8.463, allocations: 1.201 MB / 3.737 GB, free: 65.56 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.01119/8.474, allocations: 1.777 MB / 3.738 GB, free: 65.36 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002073/8.476, allocations: 0.8891 MB / 3.739 GB, free: 65.34 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/8.476, allocations: 7.094 kB / 3.739 GB, free: 65.34 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0009892/8.477, allocations: 0.6158 MB / 3.74 GB, free: 65.33 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001838/8.479, allocations: 169 kB / 3.74 GB, free: 65.32 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002549/8.481, allocations: 1.087 MB / 3.741 GB, free: 65.05 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000684/8.482, allocations: 0.9735 MB / 3.742 GB, free: 64.33 MB / 0.5105 GB Notification: Performance of SimCode: time 1.192e-06/8.482, allocations: 0 / 3.742 GB, free: 64.33 MB / 0.5105 GB Notification: Performance of Templates: time 0.06011/8.542, allocations: 30.62 MB / 3.772 GB, free: 61.22 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches