Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.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.TestPressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pressure1.p|pressure2.p|relativePressure.p_rel|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pressure1.p|pressure2.p|relativePressure.p_rel|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure") [: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.002347/0.002352, allocations: 171.6 kB / 8.148 MB, free: 2.129 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.735/1.735, 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.001313/0.001313, allocations: 94.16 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.2532/0.2532, allocations: 43.49 MB / 353.2 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.394e-06/7.484e-06, allocations: 0 / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.279, allocations: 58.85 MB / 476.5 MB, free: 5.09 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.474/5.753, allocations: 2.759 GB / 3.225 GB, free: 47.57 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000246/5.753, allocations: 87.64 kB / 3.225 GB, free: 47.53 MB / 0.5105 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.756/7.509, allocations: 408.7 MB / 3.624 GB, free: 60.17 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.811e-05/7.509, allocations: 12.88 kB / 3.624 GB, free: 60.16 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: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.006945/7.516, allocations: 1.527 MB / 3.625 GB, free: 59.19 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/7.516, allocations: 9.656 kB / 3.625 GB, free: 59.19 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003169/7.519, allocations: 260.5 kB / 3.626 GB, free: 59.15 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001349/7.52, allocations: 425.3 kB / 3.626 GB, free: 58.84 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.243e-05/7.52, allocations: 18.72 kB / 3.626 GB, free: 58.84 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.306e-05/7.521, allocations: 25.28 kB / 3.626 GB, free: 58.83 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001084/7.522, allocations: 350.5 kB / 3.626 GB, free: 58.71 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001115/7.523, allocations: 480.7 kB / 3.627 GB, free: 58.42 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.226e-05/7.523, allocations: 5.906 kB / 3.627 GB, free: 58.42 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.2e-05/7.523, allocations: 2.656 kB / 3.627 GB, free: 58.42 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.833e-05/7.523, allocations: 10.84 kB / 3.627 GB, free: 58.42 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1171/7.64, allocations: 35.6 MB / 3.662 GB, free: 22.26 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005144/7.641, allocations: 187.1 kB / 3.662 GB, free: 22.07 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002468/7.641, allocations: 105.2 kB / 3.662 GB, free: 21.96 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3715/8.012, allocations: 55.69 MB / 3.716 GB, free: 97.59 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.024e-05/8.013, allocations: 37.56 kB / 3.716 GB, free: 97.55 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=22): time 2.435e-06/8.013, allocations: 0 / 3.716 GB, free: 97.55 MB / 0.5105 GB Notification: Performance of matching and sorting (n=22): time 0.00328/8.016, allocations: 0.5425 MB / 3.717 GB, free: 97.52 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/8.016, allocations: 106.6 kB / 3.717 GB, free: 97.39 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004689/8.016, allocations: 293.6 kB / 3.717 GB, free: 97.29 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.852e-05/8.016, allocations: 25.7 kB / 3.717 GB, free: 97.26 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/8.017, allocations: 295.2 kB / 3.718 GB, free: 97.07 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 7.034e-05/8.017, allocations: 75.52 kB / 3.718 GB, free: 97.04 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.993e-05/8.017, allocations: 0 / 3.718 GB, free: 97.04 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.536e-05/8.017, allocations: 324.1 kB / 3.718 GB, free: 96.72 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002867/8.017, allocations: 105.4 kB / 3.718 GB, free: 96.72 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003693/8.017, allocations: 272.4 kB / 3.718 GB, free: 96.53 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001763/8.019, allocations: 266.4 kB / 3.719 GB, free: 96.53 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/8.019, allocations: 3.906 kB / 3.719 GB, free: 96.52 MB / 0.5105 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00371/8.023, allocations: 0.7383 MB / 3.719 GB, free: 96.48 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003973/8.023, allocations: 2.013 MB / 3.721 GB, free: 94.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.754e-05/8.023, allocations: 5.812 kB / 3.721 GB, free: 94.39 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003378/8.024, allocations: 51.5 kB / 3.721 GB, free: 94.38 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008042/8.025, allocations: 104 kB / 3.721 GB, free: 94.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001544/8.026, allocations: 0.7134 MB / 3.722 GB, free: 93.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006741/8.027, allocations: 60.16 kB / 3.722 GB, free: 93.86 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.036e-05/8.027, allocations: 24.53 kB / 3.722 GB, free: 93.86 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.969e-06/8.027, allocations: 3.469 kB / 3.722 GB, free: 93.86 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001668/8.029, allocations: 381.1 kB / 3.723 GB, free: 93.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/8.029, allocations: 9.031 kB / 3.723 GB, free: 93.86 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/8.029, allocations: 7.375 kB / 3.723 GB, free: 93.86 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007804/8.029, allocations: 118.3 kB / 3.723 GB, free: 93.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/8.029, allocations: 20.03 kB / 3.723 GB, free: 93.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005956/8.03, allocations: 58.12 kB / 3.723 GB, free: 93.85 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.329e-05/8.03, allocations: 26.56 kB / 3.723 GB, free: 93.85 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (45): * Single equations (assignments): 44 * 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.0001505/8.03, allocations: 47.17 kB / 3.723 GB, free: 93.82 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007984/8.031, allocations: 179.4 kB / 3.723 GB, free: 93.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003027/8.034, allocations: 1.532 MB / 3.725 GB, free: 93.68 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.508e-05/8.034, allocations: 25.05 kB / 3.725 GB, free: 93.68 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/8.034, allocations: 0 / 3.725 GB, free: 93.68 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/8.034, allocations: 1.688 kB / 3.725 GB, free: 93.68 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003402/8.038, allocations: 2.098 MB / 3.727 GB, free: 93.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/8.038, allocations: 3.906 kB / 3.727 GB, free: 93.31 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003773/8.038, allocations: 52.67 kB / 3.727 GB, free: 93.31 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008647/8.039, allocations: 0.4982 MB / 3.727 GB, free: 93.27 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.203e-05/8.039, allocations: 6.5 kB / 3.727 GB, free: 93.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001447/8.04, allocations: 1.068 MB / 3.728 GB, free: 92.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.217e-06/8.041, allocations: 0 / 3.728 GB, free: 92.73 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002818/8.043, allocations: 1.357 MB / 3.73 GB, free: 92.47 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003131/8.044, allocations: 179.8 kB / 3.73 GB, free: 92.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/8.044, allocations: 6.188 kB / 3.73 GB, free: 92.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005563/8.044, allocations: 36.91 kB / 3.73 GB, free: 92.35 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.536e-05/8.044, allocations: 22.16 kB / 3.73 GB, free: 92.35 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.974e-05/8.045, allocations: 15.11 kB / 3.73 GB, free: 92.35 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0003258/8.045, allocations: 230.8 kB / 3.73 GB, free: 92.26 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005645/8.051, allocations: 1.191 MB / 3.731 GB, free: 92.25 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 (24): * Single equations (assignments): 20 * 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.01038/8.061, allocations: 1.81 MB / 3.733 GB, free: 92.13 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001907/8.063, allocations: 0.8156 MB / 3.734 GB, free: 92.12 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/8.063, allocations: 0 / 3.734 GB, free: 92.12 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0008167/8.064, allocations: 0.5524 MB / 3.734 GB, free: 92.12 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001539/8.065, allocations: 163.3 kB / 3.734 GB, free: 92.11 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002194/8.068, allocations: 1.007 MB / 3.735 GB, free: 91.85 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005625/8.068, allocations: 0.9521 MB / 3.736 GB, free: 91.14 MB / 0.5105 GB Notification: Performance of SimCode: time 1.153e-06/8.068, allocations: 0 / 3.736 GB, free: 91.14 MB / 0.5105 GB Notification: Performance of Templates: time 0.05802/8.126, allocations: 30.11 MB / 3.766 GB, free: 88.29 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Sensors/TestPressure/TestPressure.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches