Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.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.TestDensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|density2_1.d|density2_2.d|density1_1.d|density1_2.d|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|density2_1.d|density2_2.d|density1_1.d|density1_2.d|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") [: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.001104/0.001104, allocations: 174.8 kB / 8.518 MB, free: 1.828 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.349/1.349, allocations: 221.4 MB / 230.3 MB, free: 7.781 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.0009471/0.0009467, allocations: 94.17 kB / 281.2 MB, free: 5.527 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.2319/0.2319, allocations: 44.15 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.076e-06/8.095e-06, allocations: 224 / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1523/0.1523, allocations: 61.91 MB / 0.4941 GB, free: 1.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.197/5.349, allocations: 2.766 GB / 3.26 GB, free: 164.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/5.35, allocations: 81.5 kB / 3.26 GB, free: 164.8 MB / 0.5261 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 .... [/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.878/7.227, allocations: 0.6687 GB / 3.929 GB, free: 55.54 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 4.532e-05/7.228, allocations: 23.64 kB / 3.929 GB, free: 55.54 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.006032/7.234, allocations: 2.216 MB / 3.931 GB, free: 54.66 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/7.234, allocations: 6.25 kB / 3.931 GB, free: 54.66 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005135/7.239, allocations: 0.686 MB / 3.932 GB, free: 54.61 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001471/7.24, allocations: 0.6722 MB / 3.933 GB, free: 54.34 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.27e-05/7.24, allocations: 33.34 kB / 3.933 GB, free: 54.34 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.956e-05/7.24, allocations: 48.02 kB / 3.933 GB, free: 54.34 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001192/7.242, allocations: 0.739 MB / 3.933 GB, free: 54.34 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001213/7.243, allocations: 0.9303 MB / 3.934 GB, free: 54.04 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.205e-05/7.243, allocations: 3 kB / 3.934 GB, free: 54.04 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.293e-05/7.243, allocations: 6.625 kB / 3.934 GB, free: 54.04 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.815e-05/7.243, allocations: 21.16 kB / 3.934 GB, free: 54.04 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1815/7.424, allocations: 102.4 MB / 4.034 GB, free: 21.14 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008947/7.425, allocations: 0.5223 MB / 4.035 GB, free: 21.09 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002839/7.426, allocations: 215.7 kB / 4.035 GB, free: 21.07 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06223/7.488, allocations: 32.3 MB / 4.067 GB, free: 32.18 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/7.488, allocations: 39.88 kB / 4.067 GB, free: 32.14 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 2.244e-06/7.488, allocations: 4 kB / 4.067 GB, free: 32.14 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.004139/7.492, allocations: 1.135 MB / 4.068 GB, free: 32.05 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/7.492, allocations: 189.5 kB / 4.068 GB, free: 31.83 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006214/7.493, allocations: 483.4 kB / 4.068 GB, free: 31.7 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 5.189e-05/7.493, allocations: 30.83 kB / 4.068 GB, free: 31.66 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/7.493, allocations: 373.7 kB / 4.069 GB, free: 31.42 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/7.493, allocations: 158.8 kB / 4.069 GB, free: 31.32 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.785e-05/7.493, allocations: 0 / 4.069 GB, free: 31.32 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.000123/7.493, allocations: 374.7 kB / 4.069 GB, free: 31 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003601/7.494, allocations: 234.6 kB / 4.07 GB, free: 31 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004736/7.494, allocations: 490.1 kB / 4.07 GB, free: 30.69 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00228/7.497, allocations: 0.5491 MB / 4.071 GB, free: 30.68 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/7.497, allocations: 2.562 kB / 4.071 GB, free: 30.68 MB / 0.6042 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.004748/7.501, allocations: 1.526 MB / 4.072 GB, free: 30.59 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008335/7.502, allocations: 2.967 MB / 4.075 GB, free: 27.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.34e-05/7.502, allocations: 13.34 kB / 4.075 GB, free: 27.48 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003215/7.503, allocations: 88.47 kB / 4.075 GB, free: 27.46 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007099/7.503, allocations: 211.9 kB / 4.075 GB, free: 27.46 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001761/7.505, allocations: 1.365 MB / 4.077 GB, free: 26.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009607/7.506, allocations: 147 kB / 4.077 GB, free: 26.37 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.651e-05/7.506, allocations: 49.95 kB / 4.077 GB, free: 26.37 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.894e-06/7.506, allocations: 3.062 kB / 4.077 GB, free: 26.37 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002154/7.508, allocations: 0.7896 MB / 4.078 GB, free: 26.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/7.508, allocations: 6.625 kB / 4.078 GB, free: 26.36 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/7.508, allocations: 13.62 kB / 4.078 GB, free: 26.36 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007912/7.509, allocations: 239.9 kB / 4.078 GB, free: 26.35 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/7.509, allocations: 18.91 kB / 4.078 GB, free: 26.35 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007101/7.51, allocations: 115.9 kB / 4.078 GB, free: 26.31 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.704e-05/7.51, allocations: 47.73 kB / 4.078 GB, free: 26.31 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 8 (massFlowRate1.medium.phase,boundary_fixed.medium.phase,massFlowRate2.medium.phase,boundary_fixed1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,simpleGenericOrifice1.state_b.phase,simpleGenericOrifice1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001939/7.51, allocations: 125.6 kB / 4.078 GB, free: 26.2 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001126/7.511, allocations: 397.5 kB / 4.078 GB, free: 26.17 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004308/7.516, allocations: 2.95 MB / 4.081 GB, free: 25.91 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.506e-05/7.516, allocations: 29.62 kB / 4.081 GB, free: 25.91 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/7.516, allocations: 0 / 4.081 GB, free: 25.91 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/7.516, allocations: 4.5 kB / 4.081 GB, free: 25.91 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004417/7.52, allocations: 3.86 MB / 4.085 GB, free: 23.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/7.52, allocations: 0 / 4.085 GB, free: 23.84 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004105/7.521, allocations: 108.9 kB / 4.085 GB, free: 23.77 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006398/7.521, allocations: 0.6039 MB / 4.086 GB, free: 23.3 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.896e-05/7.521, allocations: 13.42 kB / 4.086 GB, free: 23.29 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001499/7.523, allocations: 1.673 MB / 4.087 GB, free: 21.89 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/7.523, allocations: 7.906 kB / 4.087 GB, free: 21.88 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003492/7.526, allocations: 2.444 MB / 4.09 GB, free: 20.3 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005415/7.527, allocations: 321.6 kB / 4.09 GB, free: 20.07 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/7.527, allocations: 11.91 kB / 4.09 GB, free: 20.06 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006408/7.528, allocations: 55.28 kB / 4.09 GB, free: 20.02 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/7.528, allocations: 52.44 kB / 4.09 GB, free: 20 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.182e-05/7.528, allocations: 31.59 kB / 4.09 GB, free: 19.98 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0005262/7.528, allocations: 458.8 kB / 4.091 GB, free: 19.69 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.005487/7.534, allocations: 1.311 MB / 4.092 GB, free: 18.46 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,massFlowRate1.medium.phase,$cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse8.phase,$cse8.region,massFlowRate2.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.006809/7.541, allocations: 2.005 MB / 4.094 GB, free: 16.94 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002346/7.543, allocations: 1.565 MB / 4.096 GB, free: 16.07 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/7.543, allocations: 4.25 kB / 4.096 GB, free: 16.06 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.001058/7.544, allocations: 1.057 MB / 4.097 GB, free: 15.59 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001632/7.546, allocations: 282.2 kB / 4.097 GB, free: 15.45 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002702/7.548, allocations: 1.872 MB / 4.099 GB, free: 14.12 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000741/7.549, allocations: 1.231 MB / 4.1 GB, free: 13.05 MB / 0.6042 GB Notification: Performance of SimCode: time 6.32e-07/7.549, allocations: 0 / 4.1 GB, free: 13.05 MB / 0.6042 GB Notification: Performance of Templates: time 0.2702/7.819, allocations: 44.36 MB / 4.143 GB, free: 161 MB / 0.6042 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestDensity/TestDensity.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches