Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.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.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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.0009248/0.0009249, allocations: 187.6 kB / 7.8 MB, free: 2.453 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.003/1.003, allocations: 205.2 MB / 213.4 MB, free: 13.84 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.000843/0.000843, allocations: 95.41 kB / 261.4 MB, free: 13.53 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.1535/0.1535, allocations: 43.5 MB / 352.9 MB, free: 1.938 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.761e-06/5.801e-06, allocations: 0 / 417.7 MB, free: 40.53 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2209/0.2209, allocations: 58.83 MB / 476.6 MB, free: 5.227 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.662/3.883, allocations: 2.761 GB / 3.226 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001788/3.883, allocations: 84.33 kB / 3.226 GB, free: 110.5 MB / 0.5105 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 .... [/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.626/5.509, allocations: 0.6614 GB / 3.888 GB, free: 36.45 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.82e-05/5.509, allocations: 28.59 kB / 3.888 GB, free: 36.45 MB / 0.5105 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.007283/5.516, allocations: 2.213 MB / 3.89 GB, free: 35.14 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/5.516, allocations: 8 kB / 3.89 GB, free: 35.14 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005/5.521, allocations: 0.6802 MB / 3.891 GB, free: 35.05 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001235/5.523, allocations: 0.6728 MB / 3.891 GB, free: 34.62 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.044e-05/5.523, allocations: 32.44 kB / 3.891 GB, free: 34.62 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.939e-05/5.523, allocations: 42 kB / 3.891 GB, free: 34.62 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001237/5.524, allocations: 0.7418 MB / 3.892 GB, free: 34.36 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/5.525, allocations: 0.9331 MB / 3.893 GB, free: 33.82 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/5.525, allocations: 10.97 kB / 3.893 GB, free: 33.82 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.539e-05/5.525, allocations: 3.188 kB / 3.893 GB, free: 33.82 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.063e-05/5.525, allocations: 19.5 kB / 3.893 GB, free: 33.82 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.346/5.871, allocations: 102.4 MB / 3.993 GB, free: 68.21 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009274/5.872, allocations: 0.5181 MB / 3.994 GB, free: 68.16 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002806/5.873, allocations: 227.4 kB / 3.994 GB, free: 68.14 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05407/5.927, allocations: 32.29 MB / 4.025 GB, free: 47.44 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.776e-05/5.927, allocations: 43.28 kB / 4.025 GB, free: 47.4 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=46): time 2.194e-06/5.927, allocations: 0 / 4.025 GB, free: 47.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=46): time 0.003944/5.931, allocations: 1.136 MB / 4.026 GB, free: 47.35 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/5.931, allocations: 195.5 kB / 4.027 GB, free: 47.12 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005138/5.931, allocations: 469.9 kB / 4.027 GB, free: 47.02 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.542e-05/5.931, allocations: 28.98 kB / 4.027 GB, free: 46.98 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00018/5.932, allocations: 379 kB / 4.027 GB, free: 46.79 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/5.932, allocations: 158.8 kB / 4.028 GB, free: 46.71 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.672e-05/5.932, allocations: 0 / 4.028 GB, free: 46.71 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.77e-05/5.932, allocations: 371.5 kB / 4.028 GB, free: 46.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003295/5.932, allocations: 233.9 kB / 4.028 GB, free: 46.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004154/5.933, allocations: 493.1 kB / 4.029 GB, free: 46.09 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002121/5.935, allocations: 0.545 MB / 4.029 GB, free: 46.08 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.159e-06/5.935, allocations: 3.969 kB / 4.029 GB, free: 46.08 MB / 0.5261 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.00438/5.939, allocations: 1.533 MB / 4.031 GB, free: 45.98 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004684/5.94, allocations: 2.961 MB / 4.034 GB, free: 42.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/5.94, allocations: 7.188 kB / 4.034 GB, free: 42.88 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002998/5.94, allocations: 91.17 kB / 4.034 GB, free: 42.87 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006875/5.941, allocations: 214.1 kB / 4.034 GB, free: 42.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001556/5.942, allocations: 1.361 MB / 4.035 GB, free: 41.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009596/5.943, allocations: 154.2 kB / 4.035 GB, free: 41.79 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.139e-05/5.943, allocations: 46.72 kB / 4.035 GB, free: 41.79 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 5.821e-06/5.943, allocations: 2.844 kB / 4.035 GB, free: 41.79 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002025/5.945, allocations: 0.7942 MB / 4.036 GB, free: 41.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/5.945, allocations: 7.969 kB / 4.036 GB, free: 41.77 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.758e-06/5.945, allocations: 13.47 kB / 4.036 GB, free: 41.77 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007541/5.946, allocations: 239 kB / 4.036 GB, free: 41.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/5.946, allocations: 19.36 kB / 4.036 GB, free: 41.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006415/5.947, allocations: 117.8 kB / 4.037 GB, free: 41.74 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.663e-05/5.947, allocations: 48.14 kB / 4.037 GB, free: 41.74 MB / 0.5261 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.0001626/5.947, allocations: 128.8 kB / 4.037 GB, free: 41.64 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001031/5.948, allocations: 396.4 kB / 4.037 GB, free: 41.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003897/5.952, allocations: 2.944 MB / 4.04 GB, free: 41.36 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-05/5.952, allocations: 24.7 kB / 4.04 GB, free: 41.36 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/5.952, allocations: 8.891 kB / 4.04 GB, free: 41.36 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/5.952, allocations: 6.938 kB / 4.04 GB, free: 41.36 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004025/5.956, allocations: 3.847 MB / 4.044 GB, free: 40.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/5.956, allocations: 3.625 kB / 4.044 GB, free: 40.79 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003873/5.956, allocations: 101.2 kB / 4.044 GB, free: 40.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000619/5.957, allocations: 0.6063 MB / 4.044 GB, free: 40.75 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.711e-05/5.957, allocations: 11.48 kB / 4.044 GB, free: 40.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001319/5.958, allocations: 1.673 MB / 4.046 GB, free: 39.71 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/5.958, allocations: 0.9688 kB / 4.046 GB, free: 39.71 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003251/5.962, allocations: 2.45 MB / 4.049 GB, free: 39.23 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004089/5.962, allocations: 324.5 kB / 4.049 GB, free: 39.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/5.962, allocations: 3.531 kB / 4.049 GB, free: 39.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006002/5.963, allocations: 63.52 kB / 4.049 GB, free: 39.07 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/5.963, allocations: 58.14 kB / 4.049 GB, free: 39.07 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.533e-05/5.963, allocations: 24.08 kB / 4.049 GB, free: 39.07 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0004624/5.964, allocations: 453.2 kB / 4.049 GB, free: 38.97 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004869/5.968, allocations: 1.308 MB / 4.051 GB, free: 38.95 MB / 0.5261 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.005788/5.974, allocations: 2 MB / 4.053 GB, free: 38.66 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002188/5.976, allocations: 1.567 MB / 4.054 GB, free: 38.64 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/5.976, allocations: 0 / 4.054 GB, free: 38.64 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009148/5.977, allocations: 1.058 MB / 4.055 GB, free: 38.63 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001532/5.979, allocations: 284.2 kB / 4.055 GB, free: 38.61 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002538/5.981, allocations: 1.873 MB / 4.057 GB, free: 38.19 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000637/5.982, allocations: 1.224 MB / 4.058 GB, free: 37.46 MB / 0.5261 GB Notification: Performance of SimCode: time 5.92e-07/5.982, allocations: 0 / 4.058 GB, free: 37.46 MB / 0.5261 GB Notification: Performance of Templates: time 0.05381/6.036, allocations: 44.21 MB / 4.102 GB, free: 34.53 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Sensors/TestDensity/TestDensity.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches