Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.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.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_cpp_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_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002482/0.002482, allocations: 172.4 kB / 8.146 MB, free: 2.219 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.721/1.721, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001298/0.001298, allocations: 91.78 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.2622/0.2622, allocations: 43.5 MB / 353.2 MB, free: 2.027 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.777e-06/8.746e-06, allocations: 4 kB / 417.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2781, allocations: 58.84 MB / 476.6 MB, free: 5.074 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.775/6.053, allocations: 2.761 GB / 3.226 GB, free: 23.01 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/6.053, allocations: 87.89 kB / 3.226 GB, free: 22.96 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 .... [/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 3.181/9.234, allocations: 0.6614 GB / 3.888 GB, free: 46.1 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.156e-05/9.234, allocations: 29.19 kB / 3.888 GB, free: 46.1 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.009247/9.244, allocations: 2.203 MB / 3.89 GB, free: 45.09 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/9.244, allocations: 7.281 kB / 3.89 GB, free: 45.09 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008376/9.252, allocations: 0.6866 MB / 3.891 GB, free: 45.04 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002212/9.254, allocations: 0.6756 MB / 3.891 GB, free: 44.77 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.709e-05/9.254, allocations: 35.48 kB / 3.891 GB, free: 44.77 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001407/9.255, allocations: 42.38 kB / 3.891 GB, free: 44.77 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002223/9.257, allocations: 0.7432 MB / 3.892 GB, free: 44.76 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002119/9.259, allocations: 0.9279 MB / 3.893 GB, free: 44.46 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.402e-05/9.259, allocations: 9.938 kB / 3.893 GB, free: 44.46 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001338/9.259, allocations: 0 / 3.893 GB, free: 44.46 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.249e-05/9.259, allocations: 25.02 kB / 3.893 GB, free: 44.46 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3687/9.628, allocations: 102.4 MB / 3.993 GB, free: 27.17 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001753/9.63, allocations: 0.5114 MB / 3.994 GB, free: 27.12 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005853/9.63, allocations: 224.7 kB / 3.994 GB, free: 27.11 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1317/9.762, allocations: 32.3 MB / 4.025 GB, free: 18.61 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.648e-05/9.762, allocations: 40.81 kB / 4.025 GB, free: 18.57 MB / 0.573 GB Notification: Performance of pre-optimization done (n=46): time 2.595e-06/9.762, allocations: 0 / 4.025 GB, free: 18.57 MB / 0.573 GB Notification: Performance of matching and sorting (n=46): time 0.006243/9.768, allocations: 1.135 MB / 4.026 GB, free: 17.93 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/9.768, allocations: 192.5 kB / 4.027 GB, free: 17.71 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008453/9.769, allocations: 475.7 kB / 4.027 GB, free: 17.38 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 7.709e-05/9.769, allocations: 28.89 kB / 4.027 GB, free: 17.35 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002005/9.77, allocations: 409.8 kB / 4.027 GB, free: 17.01 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001456/9.77, allocations: 159 kB / 4.028 GB, free: 16.88 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.394e-05/9.77, allocations: 0 / 4.028 GB, free: 16.88 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001366/9.77, allocations: 339 kB / 4.028 GB, free: 16.56 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006273/9.771, allocations: 234.6 kB / 4.028 GB, free: 16.44 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007662/9.771, allocations: 0.4904 MB / 4.029 GB, free: 15.97 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003711/9.775, allocations: 0.5355 MB / 4.029 GB, free: 15.7 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/9.775, allocations: 8 kB / 4.029 GB, free: 15.7 MB / 0.573 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.00723/9.782, allocations: 1.497 MB / 4.031 GB, free: 14.88 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001047/9.783, allocations: 2.956 MB / 4.034 GB, free: 11.75 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.832e-05/9.784, allocations: 9.422 kB / 4.034 GB, free: 11.75 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004278/9.784, allocations: 92.67 kB / 4.034 GB, free: 11.68 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001443/9.785, allocations: 204.2 kB / 4.034 GB, free: 11.53 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002887/9.788, allocations: 1.368 MB / 4.035 GB, free: 10.29 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001256/9.79, allocations: 111.2 kB / 4.035 GB, free: 10.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/9.79, allocations: 51.58 kB / 4.035 GB, free: 10.16 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 7.654e-06/9.79, allocations: 4 kB / 4.035 GB, free: 10.16 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003603/9.793, allocations: 0.7934 MB / 4.036 GB, free: 9.719 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/9.793, allocations: 8.062 kB / 4.036 GB, free: 9.711 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/9.793, allocations: 23.42 kB / 4.036 GB, free: 9.691 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00156/9.795, allocations: 232.5 kB / 4.036 GB, free: 9.52 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.366e-05/9.795, allocations: 16.59 kB / 4.036 GB, free: 9.508 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/9.796, allocations: 110.5 kB / 4.036 GB, free: 9.418 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/9.796, allocations: 47.67 kB / 4.037 GB, free: 9.387 MB / 0.573 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 {2 2,2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002477/9.797, allocations: 63.98 kB / 4.037 GB, free: 9.336 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001636/9.798, allocations: 403.4 kB / 4.037 GB, free: 9.121 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006723/9.805, allocations: 2.948 MB / 4.04 GB, free: 7.406 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.77e-05/9.805, allocations: 30.03 kB / 4.04 GB, free: 7.398 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.473e-06/9.805, allocations: 0 / 4.04 GB, free: 7.398 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/9.805, allocations: 7.797 kB / 4.04 GB, free: 7.395 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006954/9.812, allocations: 3.871 MB / 4.044 GB, free: 5.219 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/9.812, allocations: 9.875 kB / 4.044 GB, free: 5.211 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007981/9.813, allocations: 92.97 kB / 4.044 GB, free: 5.137 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00105/9.814, allocations: 0.6085 MB / 4.044 GB, free: 4.672 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.232e-05/9.814, allocations: 8 kB / 4.044 GB, free: 4.664 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002344/9.816, allocations: 1.674 MB / 4.046 GB, free: 3.262 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/9.816, allocations: 0 / 4.046 GB, free: 3.262 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005948/9.822, allocations: 2.455 MB / 4.048 GB, free: 1.668 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006642/9.823, allocations: 325.4 kB / 4.049 GB, free: 1.441 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000201/9.823, allocations: 0 / 4.049 GB, free: 1.441 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001144/9.824, allocations: 78.27 kB / 4.049 GB, free: 1.379 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001862/9.825, allocations: 61.98 kB / 4.049 GB, free: 1.352 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.312e-05/9.825, allocations: 22.25 kB / 4.049 GB, free: 1.336 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.0008509/9.825, allocations: 452.4 kB / 4.049 GB, free: 1.047 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.2211/10.05, allocations: 1.348 MB / 4.051 GB, free: 151.6 MB / 0.573 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.01104/10.06, allocations: 1.996 MB / 4.053 GB, free: 151.5 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.003672/10.06, allocations: 1.55 MB / 4.054 GB, free: 151.5 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 6.603e-06/10.06, allocations: 0 / 4.054 GB, free: 151.5 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001627/10.06, allocations: 1.053 MB / 4.055 GB, free: 151.5 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002763/10.07, allocations: 296.3 kB / 4.055 GB, free: 151.5 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004179/10.07, allocations: 1.894 MB / 4.057 GB, free: 151 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001093/10.07, allocations: 1.223 MB / 4.058 GB, free: 150.3 MB / 0.573 GB Notification: Performance of SimCode: time 1.232e-06/10.07, allocations: 3.969 kB / 4.058 GB, free: 150.3 MB / 0.573 GB Notification: Performance of Templates: time 0.07635/10.15, allocations: 42.4 MB / 4.1 GB, free: 148.9 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches