Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.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.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_4.0.0_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_4.0.0_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 172.8 kB / 8.517 MB, free: 1.844 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.267/1.267, allocations: 221.4 MB / 230.3 MB, free: 7.641 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.001362/0.001363, allocations: 90.41 kB / 281.2 MB, free: 5.441 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.18/0.18, allocations: 44.15 MB / 376.1 MB, free: 3.207 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.804e-06/7.835e-06, allocations: 0 / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1215, allocations: 61.91 MB / 0.4941 GB, free: 1.598 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.842/5.964, allocations: 2.765 GB / 3.259 GB, free: 9.352 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/5.964, allocations: 83.95 kB / 3.259 GB, free: 9.27 MB / 0.5105 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 .... Notification: Performance of FrontEnd: time 1.293/7.257, allocations: 413.1 MB / 3.662 GB, free: 13.73 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.807e-05/7.257, allocations: 12 kB / 3.662 GB, free: 13.72 MB / 0.5261 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.00538/7.262, allocations: 1.538 MB / 3.664 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/7.262, allocations: 8.031 kB / 3.664 GB, free: 12.13 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001967/7.264, allocations: 259.2 kB / 3.664 GB, free: 11.88 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007321/7.265, allocations: 419.2 kB / 3.664 GB, free: 11.44 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.229e-05/7.265, allocations: 20 kB / 3.664 GB, free: 11.42 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.653e-05/7.265, allocations: 24 kB / 3.664 GB, free: 11.39 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00066/7.266, allocations: 353.4 kB / 3.665 GB, free: 11.05 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000722/7.266, allocations: 486.7 kB / 3.665 GB, free: 10.51 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/7.266, allocations: 3.938 kB / 3.665 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.145e-05/7.267, allocations: 0 / 3.665 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.921e-05/7.267, allocations: 15.98 kB / 3.665 GB, free: 10.49 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2764/7.543, allocations: 35.6 MB / 3.7 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003345/7.543, allocations: 193.4 kB / 3.7 GB, free: 104 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001595/7.543, allocations: 97.92 kB / 3.7 GB, free: 104 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1082/7.652, allocations: 55.7 MB / 3.755 GB, free: 69.35 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/7.652, allocations: 40.97 kB / 3.755 GB, free: 69.31 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=22): time 2.224e-06/7.652, allocations: 0 / 3.755 GB, free: 69.31 MB / 0.5261 GB Notification: Performance of matching and sorting (n=22): time 0.002348/7.654, allocations: 0.5373 MB / 3.755 GB, free: 69.27 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.782e-05/7.654, allocations: 112.2 kB / 3.755 GB, free: 69.14 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003937/7.655, allocations: 292.4 kB / 3.756 GB, free: 69.05 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.526e-05/7.655, allocations: 31.25 kB / 3.756 GB, free: 69.02 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/7.655, allocations: 250.4 kB / 3.756 GB, free: 68.87 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.715e-05/7.655, allocations: 74.19 kB / 3.756 GB, free: 68.83 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.902e-05/7.655, allocations: 0 / 3.756 GB, free: 68.83 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.633e-05/7.655, allocations: 346.7 kB / 3.756 GB, free: 68.52 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000165/7.655, allocations: 102.1 kB / 3.756 GB, free: 68.52 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002224/7.655, allocations: 269.3 kB / 3.757 GB, free: 68.32 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00111/7.656, allocations: 269.2 kB / 3.757 GB, free: 68.31 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/7.656, allocations: 0 / 3.757 GB, free: 68.31 MB / 0.5261 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.002424/7.659, allocations: 0.753 MB / 3.758 GB, free: 68.25 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004007/7.659, allocations: 2.006 MB / 3.76 GB, free: 66.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/7.659, allocations: 4.656 kB / 3.76 GB, free: 66.14 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002434/7.66, allocations: 59.47 kB / 3.76 GB, free: 66.14 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003834/7.66, allocations: 113.9 kB / 3.76 GB, free: 66.13 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009806/7.661, allocations: 0.7086 MB / 3.761 GB, free: 65.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005529/7.662, allocations: 77.69 kB / 3.761 GB, free: 65.59 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.551e-05/7.662, allocations: 29.47 kB / 3.761 GB, free: 65.59 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.536e-06/7.662, allocations: 3.938 kB / 3.761 GB, free: 65.59 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001021/7.663, allocations: 382.5 kB / 3.761 GB, free: 65.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/7.663, allocations: 5.703 kB / 3.761 GB, free: 65.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.285e-06/7.663, allocations: 8.625 kB / 3.761 GB, free: 65.59 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004048/7.663, allocations: 121.9 kB / 3.761 GB, free: 65.58 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/7.663, allocations: 11.39 kB / 3.761 GB, free: 65.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004068/7.663, allocations: 60.52 kB / 3.761 GB, free: 65.57 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.537e-05/7.664, allocations: 24.83 kB / 3.761 GB, free: 65.57 MB / 0.5261 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 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001218/7.664, allocations: 122.6 kB / 3.761 GB, free: 65.46 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005178/7.664, allocations: 185.2 kB / 3.761 GB, free: 65.44 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001912/7.666, allocations: 1.532 MB / 3.763 GB, free: 65.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.799e-05/7.666, allocations: 21.25 kB / 3.763 GB, free: 65.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/7.666, allocations: 0 / 3.763 GB, free: 65.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/7.666, allocations: 3.75 kB / 3.763 GB, free: 65.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002201/7.668, allocations: 2.082 MB / 3.765 GB, free: 64.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/7.668, allocations: 2.625 kB / 3.765 GB, free: 64.95 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001981/7.669, allocations: 52.61 kB / 3.765 GB, free: 64.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005475/7.669, allocations: 0.5048 MB / 3.766 GB, free: 64.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/7.669, allocations: 10.09 kB / 3.766 GB, free: 64.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009402/7.67, allocations: 1.059 MB / 3.767 GB, free: 64.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/7.67, allocations: 3.938 kB / 3.767 GB, free: 64.36 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001805/7.672, allocations: 1.372 MB / 3.768 GB, free: 64.09 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002232/7.672, allocations: 179.6 kB / 3.768 GB, free: 63.97 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.033e-05/7.672, allocations: 3.906 kB / 3.768 GB, free: 63.97 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003285/7.673, allocations: 32.09 kB / 3.768 GB, free: 63.96 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.891e-05/7.673, allocations: 28.75 kB / 3.768 GB, free: 63.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.584e-05/7.673, allocations: 7.25 kB / 3.768 GB, free: 63.96 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0002118/7.673, allocations: 226.8 kB / 3.768 GB, free: 63.88 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005637/7.679, allocations: 1.198 MB / 3.77 GB, free: 63.86 MB / 0.5261 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.009386/7.688, allocations: 1.818 MB / 3.771 GB, free: 63.65 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001425/7.689, allocations: 0.8155 MB / 3.772 GB, free: 63.64 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/7.689, allocations: 0 / 3.772 GB, free: 63.64 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0005817/7.69, allocations: 0.5538 MB / 3.773 GB, free: 63.63 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009804/7.691, allocations: 153.5 kB / 3.773 GB, free: 63.62 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001698/7.693, allocations: 0.982 MB / 3.774 GB, free: 63.38 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004847/7.693, allocations: 0.9567 MB / 3.775 GB, free: 62.67 MB / 0.5261 GB Notification: Performance of SimCode: time 8.12e-07/7.693, allocations: 3.875 kB / 3.775 GB, free: 62.67 MB / 0.5261 GB Notification: Performance of Templates: time 0.05027/7.744, allocations: 35.85 MB / 3.81 GB, free: 60.46 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestPressure/TestPressure.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches