Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.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.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_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_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00187/0.00187, allocations: 182.9 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.821/1.821, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001065/0.001064, allocations: 94.8 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2319/0.2319, allocations: 43.56 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003302/0.0003302, allocations: 8 kB / 431.4 MB, free: 19.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.1491, allocations: 58.86 MB / 490.2 MB, free: 8.672 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.101/8.25, allocations: 2.76 GB / 3.239 GB, free: 81.48 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003402/8.25, allocations: 88.39 kB / 3.239 GB, free: 81.43 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 .... Notification: Performance of FrontEnd - DAE generated: time 1.62/9.87, allocations: 413.2 MB / 3.643 GB, free: 62.8 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.244e-06/9.87, allocations: 0 / 3.643 GB, free: 62.8 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.263e-05/9.87, allocations: 13.69 kB / 3.643 GB, free: 62.8 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.006854/9.877, allocations: 1.576 MB / 3.644 GB, free: 61.83 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/9.877, allocations: 10.66 kB / 3.644 GB, free: 61.83 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002044/9.879, allocations: 244.7 kB / 3.644 GB, free: 61.79 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/9.88, allocations: 424.1 kB / 3.645 GB, free: 61.48 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.873e-05/9.88, allocations: 36.38 kB / 3.645 GB, free: 61.46 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.371e-05/9.88, allocations: 36.16 kB / 3.645 GB, free: 61.45 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002513/9.883, allocations: 0.7004 MB / 3.646 GB, free: 61.1 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.324e-05/9.883, allocations: 0 / 3.646 GB, free: 61.1 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.941e-05/9.883, allocations: 15.84 kB / 3.646 GB, free: 61.09 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.584e-05/9.883, allocations: 11.62 kB / 3.646 GB, free: 61.09 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002018/9.885, allocations: 0.5904 MB / 3.646 GB, free: 60.94 MB / 0.5105 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004314/9.889, allocations: 3.241 MB / 3.649 GB, free: 58.27 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001603/9.891, allocations: 433.3 kB / 3.65 GB, free: 58.15 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1168/10.01, allocations: 55.54 MB / 3.704 GB, free: 15.44 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.331e-05/10.01, allocations: 38.56 kB / 3.704 GB, free: 15.39 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=27): time 2.855e-06/10.01, allocations: 0 / 3.704 GB, free: 15.39 MB / 0.5105 GB Notification: Performance of matching and sorting (n=27): time 0.00317/10.01, allocations: 0.89 MB / 3.705 GB, free: 14.64 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.375e-05/10.01, allocations: 106.8 kB / 3.705 GB, free: 14.51 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005139/10.01, allocations: 341.3 kB / 3.705 GB, free: 14.21 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.039e-05/10.01, allocations: 33.7 kB / 3.705 GB, free: 14.17 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/10.01, allocations: 257.7 kB / 3.706 GB, free: 13.93 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/10.01, allocations: 94.03 kB / 3.706 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.298e-05/10.01, allocations: 16 kB / 3.706 GB, free: 13.84 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001081/10.01, allocations: 354 kB / 3.706 GB, free: 13.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003571/10.01, allocations: 130.9 kB / 3.706 GB, free: 13.39 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003991/10.01, allocations: 303.1 kB / 3.706 GB, free: 13.05 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003829/10.01, allocations: 170.9 kB / 3.707 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.173e-06/10.01, allocations: 4 kB / 3.707 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001069/10.01, allocations: 0.509 MB / 3.707 GB, free: 12.43 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005273/10.02, allocations: 2.006 MB / 3.709 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.729e-05/10.02, allocations: 4 kB / 3.709 GB, free: 10.26 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002613/10.02, allocations: 340.1 kB / 3.709 GB, free: 10.02 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003637/10.02, allocations: 99.06 kB / 3.709 GB, free: 9.938 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004358/10.02, allocations: 0.5909 MB / 3.71 GB, free: 9.332 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000546/10.02, allocations: 79.14 kB / 3.71 GB, free: 9.262 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.506e-05/10.02, allocations: 27.78 kB / 3.71 GB, free: 9.238 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/10.02, allocations: 4 kB / 3.71 GB, free: 9.234 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008289/10.02, allocations: 423.1 kB / 3.711 GB, free: 8.867 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/10.02, allocations: 4.188 kB / 3.711 GB, free: 8.863 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.045e-05/10.02, allocations: 8.531 kB / 3.711 GB, free: 8.855 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003696/10.02, allocations: 123.2 kB / 3.711 GB, free: 8.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/10.02, allocations: 7.609 kB / 3.711 GB, free: 8.746 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004773/10.02, allocations: 70.77 kB / 3.711 GB, free: 8.684 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.032e-05/10.02, allocations: 20 kB / 3.711 GB, free: 8.664 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 (boundary_fixed.medium.phase,massFlowRate1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Number of clocked 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.0002999/10.02, allocations: 256.4 kB / 3.711 GB, free: 8.406 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.025e-05/10.02, allocations: 43.53 kB / 3.711 GB, free: 8.363 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001984/10.02, allocations: 1.901 MB / 3.713 GB, free: 6.66 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.33e-05/10.02, allocations: 27.25 kB / 3.713 GB, free: 6.645 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/10.02, allocations: 3.75 kB / 3.713 GB, free: 6.645 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/10.02, allocations: 3.938 kB / 3.713 GB, free: 6.641 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008918/10.02, allocations: 0.9571 MB / 3.714 GB, free: 5.785 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/10.02, allocations: 0 / 3.714 GB, free: 5.785 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002894/10.02, allocations: 81.8 kB / 3.714 GB, free: 5.723 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001329/10.03, allocations: 0.6433 MB / 3.715 GB, free: 5.184 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.588e-05/10.03, allocations: 11.61 kB / 3.715 GB, free: 5.176 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006358/10.03, allocations: 0.9916 MB / 3.716 GB, free: 4.203 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/10.03, allocations: 0 / 3.716 GB, free: 4.203 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001291/10.03, allocations: 1.29 MB / 3.717 GB, free: 3.008 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002765/10.03, allocations: 257.1 kB / 3.717 GB, free: 2.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.302e-05/10.03, allocations: 11.95 kB / 3.717 GB, free: 2.758 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003193/10.03, allocations: 39.34 kB / 3.717 GB, free: 2.727 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.626e-05/10.03, allocations: 30.88 kB / 3.717 GB, free: 2.707 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.623e-05/10.03, allocations: 15.8 kB / 3.717 GB, free: 2.695 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0003716/10.03, allocations: 377 kB / 3.718 GB, free: 2.375 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.1e-07/10.03, allocations: 0 / 3.718 GB, free: 2.375 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006273/10.04, allocations: 1.202 MB / 3.719 GB, free: 1.199 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,massFlowRate1.medium.phase,boundary_fixed.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * 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: 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.01035/10.05, allocations: 1.625 MB / 3.72 GB, free: 15.93 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002774/10.05, allocations: 0.7905 MB / 3.721 GB, free: 15.23 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.448e-06/10.05, allocations: 4 kB / 3.721 GB, free: 15.23 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008943/10.05, allocations: 482.5 kB / 3.722 GB, free: 14.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00158/10.05, allocations: 224.2 kB / 3.722 GB, free: 14.64 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003269/10.05, allocations: 1.905 MB / 3.724 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006124/10.06, allocations: 0.9846 MB / 3.725 GB, free: 11.98 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0008779/10.06, allocations: 455.3 kB / 3.725 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/10.06, allocations: 47.42 kB / 3.725 GB, free: 11.59 MB / 0.5261 GB Notification: Performance of SimCode: time 1.603e-06/10.06, allocations: 0 / 3.725 GB, free: 11.59 MB / 0.5261 GB Notification: Performance of Templates: time 0.3606/10.42, allocations: 36.5 MB / 3.761 GB, free: 79.65 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches