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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 175.9 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008527/0.0008527, allocations: 101.3 kB / 292.2 MB, free: 10.91 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.4253/0.4253, allocations: 44.21 MB / 387.5 MB, free: 38.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003626/0.0003626, allocations: 12 kB / 459.9 MB, free: 1.5 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4628/0.4632, allocations: 61.89 MB / 0.5096 GB, free: 37.94 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.095/7.558, allocations: 2.765 GB / 3.275 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/7.558, allocations: 91.42 kB / 3.275 GB, free: 111.4 MB / 0.5261 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 - DAE generated: time 1.611/9.169, allocations: 417.6 MB / 3.683 GB, free: 58.45 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.925e-06/9.169, allocations: 0 / 3.683 GB, free: 58.45 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.093e-05/9.169, allocations: 15.03 kB / 3.683 GB, free: 58.45 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.006963/9.176, allocations: 1.582 MB / 3.685 GB, free: 57.52 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/9.176, allocations: 11.88 kB / 3.685 GB, free: 57.52 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001778/9.178, allocations: 242.8 kB / 3.685 GB, free: 57.48 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006889/9.179, allocations: 422 kB / 3.685 GB, free: 57.16 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.907e-05/9.179, allocations: 34.47 kB / 3.685 GB, free: 57.15 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.556e-05/9.179, allocations: 43 kB / 3.685 GB, free: 57.14 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/9.18, allocations: 0.6906 MB / 3.686 GB, free: 56.79 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/9.18, allocations: 0 / 3.686 GB, free: 56.79 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.647e-05/9.18, allocations: 18.47 kB / 3.686 GB, free: 56.78 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/9.18, allocations: 9.844 kB / 3.686 GB, free: 56.78 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/9.182, allocations: 0.5903 MB / 3.687 GB, free: 56.62 MB / 0.5261 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.002893/9.184, allocations: 3.242 MB / 3.69 GB, free: 53.95 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/9.186, allocations: 421.9 kB / 3.69 GB, free: 53.84 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09097/9.277, allocations: 55.57 MB / 3.744 GB, free: 33.93 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.846e-05/9.277, allocations: 30.56 kB / 3.744 GB, free: 33.89 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=27): time 4.258e-06/9.277, allocations: 0 / 3.744 GB, free: 33.89 MB / 0.5417 GB Notification: Performance of matching and sorting (n=27): time 0.003009/9.28, allocations: 0.8943 MB / 3.745 GB, free: 33.57 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.732e-05/9.28, allocations: 110.6 kB / 3.745 GB, free: 33.45 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004879/9.28, allocations: 342.6 kB / 3.746 GB, free: 33.27 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.432e-05/9.28, allocations: 37.55 kB / 3.746 GB, free: 33.23 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001609/9.281, allocations: 255.7 kB / 3.746 GB, free: 33.02 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 8.233e-05/9.281, allocations: 92.84 kB / 3.746 GB, free: 32.95 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.873e-05/9.281, allocations: 8 kB / 3.746 GB, free: 32.94 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001335/9.281, allocations: 352 kB / 3.746 GB, free: 32.61 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000321/9.281, allocations: 132.5 kB / 3.747 GB, free: 32.57 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003804/9.282, allocations: 306.8 kB / 3.747 GB, free: 32.32 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003467/9.282, allocations: 164.7 kB / 3.747 GB, free: 32.25 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/9.282, allocations: 3.969 kB / 3.747 GB, free: 32.25 MB / 0.5417 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009733/9.283, allocations: 0.5082 MB / 3.747 GB, free: 32.04 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007205/9.284, allocations: 2.01 MB / 3.749 GB, free: 29.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/9.284, allocations: 11.5 kB / 3.749 GB, free: 29.89 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002523/9.286, allocations: 332.6 kB / 3.75 GB, free: 29.86 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003479/9.287, allocations: 103.3 kB / 3.75 GB, free: 29.85 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004829/9.287, allocations: 0.5949 MB / 3.75 GB, free: 29.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005053/9.288, allocations: 75 kB / 3.751 GB, free: 29.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.906e-05/9.288, allocations: 23.66 kB / 3.751 GB, free: 29.25 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.065e-05/9.288, allocations: 11.89 kB / 3.751 GB, free: 29.24 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008168/9.288, allocations: 414.8 kB / 3.751 GB, free: 29.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/9.288, allocations: 7.688 kB / 3.751 GB, free: 29.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.167e-06/9.288, allocations: 7.438 kB / 3.751 GB, free: 29.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003692/9.289, allocations: 119.2 kB / 3.751 GB, free: 29.09 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.752e-06/9.289, allocations: 3.906 kB / 3.751 GB, free: 29.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004162/9.289, allocations: 70.38 kB / 3.751 GB, free: 29.06 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.672e-05/9.289, allocations: 28.84 kB / 3.751 GB, free: 29.05 MB / 0.5417 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.0003337/9.29, allocations: 246.6 kB / 3.751 GB, free: 28.83 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/9.29, allocations: 48.39 kB / 3.751 GB, free: 28.8 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002101/9.292, allocations: 1.898 MB / 3.753 GB, free: 27.91 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.366e-05/9.292, allocations: 33.62 kB / 3.753 GB, free: 27.9 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/9.292, allocations: 0 / 3.753 GB, free: 27.9 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/9.292, allocations: 0 / 3.753 GB, free: 27.9 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009867/9.293, allocations: 0.9571 MB / 3.754 GB, free: 27.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/9.293, allocations: 4 kB / 3.754 GB, free: 27.35 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002546/9.293, allocations: 71.92 kB / 3.754 GB, free: 27.35 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001332/9.295, allocations: 0.6379 MB / 3.755 GB, free: 27.23 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.332e-05/9.295, allocations: 8 kB / 3.755 GB, free: 27.22 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007191/9.295, allocations: 0.9937 MB / 3.756 GB, free: 26.48 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/9.295, allocations: 3.938 kB / 3.756 GB, free: 26.48 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001417/9.297, allocations: 1.295 MB / 3.757 GB, free: 25.81 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003431/9.297, allocations: 256.7 kB / 3.757 GB, free: 25.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.32e-05/9.297, allocations: 7.875 kB / 3.757 GB, free: 25.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003609/9.298, allocations: 39.38 kB / 3.758 GB, free: 25.59 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.506e-05/9.298, allocations: 28.05 kB / 3.758 GB, free: 25.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.666e-05/9.298, allocations: 16.83 kB / 3.758 GB, free: 25.58 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004243/9.298, allocations: 379.1 kB / 3.758 GB, free: 25.4 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/9.298, allocations: 0 / 3.758 GB, free: 25.4 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005718/9.304, allocations: 1.213 MB / 3.759 GB, free: 25.15 MB / 0.5417 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.009414/9.313, allocations: 1.642 MB / 3.761 GB, free: 24.73 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001975/9.315, allocations: 0.7914 MB / 3.761 GB, free: 24.46 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.214e-06/9.315, allocations: 3.906 kB / 3.761 GB, free: 24.46 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0006212/9.316, allocations: 480.3 kB / 3.762 GB, free: 24.25 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001293/9.317, allocations: 230.5 kB / 3.762 GB, free: 24.2 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002523/9.32, allocations: 1.904 MB / 3.764 GB, free: 23.08 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005885/9.32, allocations: 0.9918 MB / 3.765 GB, free: 22.23 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0007892/9.321, allocations: 454.1 kB / 3.765 GB, free: 21.96 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/9.321, allocations: 43.09 kB / 3.765 GB, free: 21.92 MB / 0.5417 GB Notification: Performance of SimCode: time 3.9e-07/9.321, allocations: 0 / 3.765 GB, free: 21.92 MB / 0.5417 GB Notification: Performance of Templates: time 0.4094/9.731, allocations: 36.53 MB / 3.801 GB, free: 76.02 MB / 0.5417 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