Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.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.Fittings.TestSimpleGenericOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|p_table.a|p_table.b|p_table.last|p_table.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|p_table.a|p_table.b|p_table.last|p_table.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001583/0.001583, allocations: 175.9 kB / 16.77 MB, free: 5.02 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.638/1.638, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0007925/0.0007925, allocations: 87.41 kB / 271.3 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3946/0.3946, allocations: 43.57 MB / 363.1 MB, free: 52.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003721/0.0003722, allocations: 16 kB / 432.6 MB, free: 5.184 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1207, allocations: 58.85 MB / 491.5 MB, free: 10.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7957/0.9165, allocations: 289.1 MB / 0.7623 GB, free: 80.34 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003545/0.9169, allocations: 88.08 kB / 0.7624 GB, free: 80.3 MB / 490.7 MB [/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 .... [/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 0.5179/1.435, allocations: 117.1 MB / 0.8767 GB, free: 117 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.743e-06/1.435, allocations: 0 / 0.8767 GB, free: 117 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 7.019e-05/1.435, allocations: 11.72 kB / 0.8767 GB, free: 117 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.002335/1.437, allocations: 0.9326 MB / 0.8777 GB, free: 116.4 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/1.437, allocations: 9.75 kB / 0.8777 GB, free: 116.4 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005299/1.438, allocations: 80.89 kB / 0.8777 GB, free: 116.4 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001262/1.439, allocations: 0.548 MB / 0.8783 GB, free: 116.2 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.176e-05/1.439, allocations: 34.56 kB / 0.8783 GB, free: 116.2 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/1.439, allocations: 43.75 kB / 0.8783 GB, free: 116.2 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001177/1.441, allocations: 0.6623 MB / 0.879 GB, free: 116 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.762e-05/1.441, allocations: 6.594 kB / 0.879 GB, free: 116 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.342e-05/1.441, allocations: 23.69 kB / 0.879 GB, free: 116 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/1.441, allocations: 12.69 kB / 0.879 GB, free: 116 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007881/1.442, allocations: 0.515 MB / 0.8795 GB, free: 116 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003531/1.445, allocations: 3.035 MB / 0.8825 GB, free: 114.1 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003594/1.445, allocations: 213.7 kB / 0.8827 GB, free: 114 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002992/1.446, allocations: 137.7 kB / 0.8828 GB, free: 114 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002974/1.446, allocations: 344 kB / 0.8832 GB, free: 113.7 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00052/1.447, allocations: 273 kB / 0.8834 GB, free: 113.5 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=28): time 3.347e-06/1.447, allocations: 0 / 0.8834 GB, free: 113.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=28): time 0.001708/1.448, allocations: 0.5125 MB / 0.8839 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001608/1.449, allocations: 289.7 kB / 0.8842 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009813/1.45, allocations: 0.5458 MB / 0.8847 GB, free: 113 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 6.415e-05/1.45, allocations: 30.08 kB / 0.8848 GB, free: 112.9 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003421/1.45, allocations: 347.1 kB / 0.8851 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001317/1.45, allocations: 87.95 kB / 0.8852 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.91e-05/1.45, allocations: 9.906 kB / 0.8852 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000173/1.45, allocations: 376.1 kB / 0.8855 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003794/1.451, allocations: 139.2 kB / 0.8857 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000526/1.451, allocations: 381.5 kB / 0.886 GB, free: 112.1 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008988/1.452, allocations: 0.52 MB / 0.8866 GB, free: 111.9 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/1.452, allocations: 3.094 kB / 0.8866 GB, free: 111.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001535/1.454, allocations: 0.6192 MB / 0.8872 GB, free: 111.8 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001961/1.454, allocations: 275.3 kB / 0.8874 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.674e-05/1.454, allocations: 5.281 kB / 0.8874 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.599e-05/1.454, allocations: 13.05 kB / 0.8874 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001539/1.456, allocations: 169 kB / 0.8876 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004877/1.456, allocations: 0.6215 MB / 0.8882 GB, free: 110.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008844/1.457, allocations: 79.12 kB / 0.8883 GB, free: 110.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/1.457, allocations: 30.34 kB / 0.8883 GB, free: 110.9 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/1.457, allocations: 2.688 kB / 0.8883 GB, free: 110.9 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00117/1.458, allocations: 0.5413 MB / 0.8888 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/1.458, allocations: 9.219 kB / 0.8889 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.015e-05/1.458, allocations: 9.5 kB / 0.8889 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005115/1.459, allocations: 112.5 kB / 0.889 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.91e-05/1.459, allocations: 13.11 kB / 0.889 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008085/1.46, allocations: 69.95 kB / 0.889 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.651e-05/1.46, allocations: 30.97 kB / 0.8891 GB, free: 110.8 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005063/1.46, allocations: 309.7 kB / 0.8894 GB, free: 110.6 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000153/1.461, allocations: 67.73 kB / 0.8894 GB, free: 110.5 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001571/1.462, allocations: 0.7469 MB / 0.8902 GB, free: 110.4 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/1.462, allocations: 6.828 kB / 0.8902 GB, free: 110.4 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/1.462, allocations: 3.938 kB / 0.8902 GB, free: 110.4 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/1.462, allocations: 2.156 kB / 0.8902 GB, free: 110.4 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008792/1.463, allocations: 0.5243 MB / 0.8907 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/1.463, allocations: 2.625 kB / 0.8907 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008675/1.464, allocations: 116.7 kB / 0.8908 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.134e-05/1.464, allocations: 6.219 kB / 0.8908 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.623e-05/1.464, allocations: 13.61 kB / 0.8908 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003145/1.464, allocations: 0.5924 MB / 0.8914 GB, free: 109.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/1.465, allocations: 0 / 0.8914 GB, free: 109.6 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001139/1.466, allocations: 0.535 MB / 0.8919 GB, free: 109.5 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004263/1.466, allocations: 209.7 kB / 0.8921 GB, free: 109.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002074/1.466, allocations: 17.34 kB / 0.8921 GB, free: 109.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006024/1.467, allocations: 24.72 kB / 0.8922 GB, free: 109.4 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/1.467, allocations: 26.62 kB / 0.8922 GB, free: 109.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.51e-05/1.467, allocations: 20.02 kB / 0.8922 GB, free: 109.4 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0004936/1.468, allocations: 411.5 kB / 0.8926 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.8e-07/1.468, allocations: 0 / 0.8926 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002203/1.47, allocations: 461.3 kB / 0.893 GB, free: 109.2 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00162/1.471, allocations: 474.4 kB / 0.8935 GB, free: 109 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002888/1.474, allocations: 0.9012 MB / 0.8944 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/1.474, allocations: 0 / 0.8944 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001112/1.476, allocations: 364.9 kB / 0.8947 GB, free: 108.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002057/1.478, allocations: 275.6 kB / 0.895 GB, free: 108.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002966/1.481, allocations: 1.272 MB / 0.8962 GB, free: 108.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006376/1.481, allocations: 0.9005 MB / 0.8971 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001292/1.483, allocations: 199.5 kB / 0.8973 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002558/1.483, allocations: 67.61 kB / 0.8974 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of SimCode: time 1.212e-06/1.483, allocations: 0 / 0.8974 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of Templates: time 0.04371/1.527, allocations: 15.31 MB / 0.9123 GB, free: 106.5 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Fittings/TestSimpleGenericOrifice/TestSimpleGenericOrifice.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches