Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.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.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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009678/0.0009679, allocations: 180.5 kB / 14.15 MB, free: 1.176 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.315/1.315, allocations: 221.3 MB / 236 MB, free: 2.984 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.0009239/0.000924, allocations: 99.67 kB / 287 MB, free: 244 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2045/0.2045, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.043e-05/3.045e-05, allocations: 4.203 kB / 451.8 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1229, allocations: 61.91 MB / 0.5017 GB, free: 11.45 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8552/0.9782, allocations: 290.2 MB / 0.7851 GB, free: 118.2 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000304/0.9786, allocations: 81.58 kB / 0.7852 GB, free: 118.1 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 .... [/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 0.2321/1.211, allocations: 119.7 MB / 0.9021 GB, free: 2.148 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.978e-06/1.211, allocations: 0 / 0.9021 GB, free: 2.148 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.413e-05/1.211, allocations: 19.94 kB / 0.9021 GB, free: 2.129 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: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.002682/1.214, allocations: 0.8586 MB / 0.9029 GB, free: 1.219 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.89e-05/1.214, allocations: 12.03 kB / 0.9029 GB, free: 1.207 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006665/1.214, allocations: 83.09 kB / 0.903 GB, free: 1.125 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0015/1.216, allocations: 0.5171 MB / 0.9035 GB, free: 0.5703 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.192e-05/1.216, allocations: 37 kB / 0.9036 GB, free: 0.5312 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/1.216, allocations: 47.94 kB / 0.9036 GB, free: 496 kB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001394/1.217, allocations: 0.6435 MB / 0.9042 GB, free: 15.78 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.24e-05/1.218, allocations: 7.938 kB / 0.9042 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001051/1.218, allocations: 20 kB / 0.9043 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.638e-05/1.218, allocations: 12 kB / 0.9043 GB, free: 15.74 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001113/1.219, allocations: 0.5191 MB / 0.9048 GB, free: 15.22 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005325/1.224, allocations: 3.077 MB / 0.9078 GB, free: 11.96 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004908/1.225, allocations: 210.8 kB / 0.908 GB, free: 11.74 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002488/1.225, allocations: 129.1 kB / 0.9081 GB, free: 11.61 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003598/1.225, allocations: 344.4 kB / 0.9084 GB, free: 11.2 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005165/1.226, allocations: 286.7 kB / 0.9087 GB, free: 10.89 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 4.298e-06/1.226, allocations: 0 / 0.9087 GB, free: 10.89 MB / 0.5261 GB Notification: Performance of matching and sorting (n=28): time 0.001086/1.227, allocations: 402.8 kB / 0.9091 GB, free: 10.48 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001955/1.227, allocations: 286.7 kB / 0.9094 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007955/1.228, allocations: 488.8 kB / 0.9098 GB, free: 9.648 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.11e-05/1.228, allocations: 33.7 kB / 0.9099 GB, free: 9.609 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003142/1.228, allocations: 339.1 kB / 0.9102 GB, free: 9.273 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/1.228, allocations: 86.75 kB / 0.9103 GB, free: 9.188 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.899e-05/1.229, allocations: 12 kB / 0.9103 GB, free: 9.176 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001942/1.229, allocations: 366.8 kB / 0.9106 GB, free: 8.809 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000291/1.229, allocations: 141.1 kB / 0.9108 GB, free: 8.672 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000467/1.23, allocations: 369 kB / 0.9111 GB, free: 8.211 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003699/1.23, allocations: 228 kB / 0.9113 GB, free: 7.984 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.178e-05/1.23, allocations: 7.938 kB / 0.9113 GB, free: 7.977 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001113/1.231, allocations: 0.6033 MB / 0.9119 GB, free: 7.359 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000901/1.232, allocations: 2.128 MB / 0.914 GB, free: 5.062 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.586e-05/1.232, allocations: 7.953 kB / 0.914 GB, free: 5.055 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.555e-05/1.232, allocations: 8 kB / 0.914 GB, free: 5.047 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/1.233, allocations: 179.7 kB / 0.9142 GB, free: 4.871 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000475/1.234, allocations: 0.6094 MB / 0.9148 GB, free: 4.238 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000671/1.234, allocations: 83.36 kB / 0.9149 GB, free: 4.156 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000107/1.234, allocations: 27.98 kB / 0.9149 GB, free: 4.129 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/1.235, allocations: 4 kB / 0.9149 GB, free: 4.125 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000883/1.235, allocations: 0.5363 MB / 0.9154 GB, free: 3.582 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/1.235, allocations: 4 kB / 0.9154 GB, free: 3.578 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/1.235, allocations: 8 kB / 0.9154 GB, free: 3.57 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00037/1.236, allocations: 115.8 kB / 0.9155 GB, free: 3.457 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.602e-05/1.236, allocations: 19.88 kB / 0.9156 GB, free: 3.438 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005135/1.236, allocations: 63.73 kB / 0.9156 GB, free: 3.375 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.517e-05/1.236, allocations: 31.98 kB / 0.9157 GB, free: 3.344 MB / 0.5261 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 () * 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.0002073/1.237, allocations: 174.5 kB / 0.9158 GB, free: 3.16 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001202/1.237, allocations: 63.33 kB / 0.9159 GB, free: 3.098 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001332/1.238, allocations: 0.7552 MB / 0.9166 GB, free: 2.324 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/1.238, allocations: 4 kB / 0.9166 GB, free: 2.32 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/1.238, allocations: 7.953 kB / 0.9166 GB, free: 2.312 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/1.238, allocations: 3.984 kB / 0.9166 GB, free: 2.309 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007308/1.239, allocations: 0.5132 MB / 0.9171 GB, free: 1.746 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/1.239, allocations: 0 / 0.9171 GB, free: 1.746 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006162/1.24, allocations: 119.8 kB / 0.9173 GB, free: 1.629 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.027e-05/1.24, allocations: 4 kB / 0.9173 GB, free: 1.625 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.375e-05/1.24, allocations: 12 kB / 0.9173 GB, free: 1.613 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003255/1.24, allocations: 0.5976 MB / 0.9179 GB, free: 0.9922 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.24, allocations: 0 / 0.9179 GB, free: 0.9922 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007725/1.241, allocations: 0.5247 MB / 0.9184 GB, free: 452 kB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003363/1.241, allocations: 212.2 kB / 0.9186 GB, free: 220 kB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/1.241, allocations: 23.95 kB / 0.9186 GB, free: 196 kB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003528/1.242, allocations: 27.88 kB / 0.9186 GB, free: 168 kB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.183e-05/1.242, allocations: 32.28 kB / 0.9186 GB, free: 136 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.022e-05/1.242, allocations: 19.98 kB / 0.9187 GB, free: 116 kB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.2987/1.54, allocations: 395.5 kB / 0.919 GB, free: 140.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.31e-07/1.54, allocations: 2.438 kB / 0.919 GB, free: 140.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00241/1.543, allocations: 457.3 kB / 0.9195 GB, free: 140.3 MB / 0.5261 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) * 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.001163/1.544, allocations: 453 kB / 0.9199 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002499/1.547, allocations: 0.9002 MB / 0.9208 GB, free: 140.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/1.547, allocations: 1.406 kB / 0.9208 GB, free: 140.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009385/1.548, allocations: 359.9 kB / 0.9211 GB, free: 140 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001451/1.549, allocations: 269.2 kB / 0.9214 GB, free: 140 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001907/1.551, allocations: 0.7339 MB / 0.9221 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000546/1.551, allocations: 0.9052 MB / 0.923 GB, free: 139.1 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0009396/1.552, allocations: 232.1 kB / 0.9232 GB, free: 139.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000159/1.553, allocations: 61.89 kB / 0.9233 GB, free: 139.1 MB / 0.5261 GB Notification: Performance of SimCode: time 1.553e-06/1.553, allocations: 0 / 0.9233 GB, free: 139.1 MB / 0.5261 GB Notification: Performance of Templates: time 0.03416/1.587, allocations: 16.03 MB / 0.9389 GB, free: 138.6 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestSimpleGenericOrifice/TestSimpleGenericOrifice.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches