Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_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.002215/0.002215, allocations: 181.7 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.038/2.038, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.00107/0.00107, allocations: 82.7 kB / 267.5 MB, free: 14.05 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.2683/0.2683, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.939e-05/2.948e-05, allocations: 4 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1121, allocations: 58.85 MB / 484.1 MB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.092/1.205, allocations: 289 MB / 0.755 GB, free: 133.7 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002852/1.205, allocations: 85.23 kB / 0.7551 GB, free: 133.7 MB / 0.4948 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 .... [/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.3623/1.567, allocations: 117.4 MB / 0.8697 GB, free: 23.88 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.313e-06/1.567, allocations: 0 / 0.8697 GB, free: 23.88 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.923e-05/1.567, allocations: 19.98 kB / 0.8697 GB, free: 23.86 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.001664/1.569, allocations: 0.8584 MB / 0.8705 GB, free: 22.95 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/1.569, allocations: 12.03 kB / 0.8705 GB, free: 22.94 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000418/1.57, allocations: 79.36 kB / 0.8706 GB, free: 22.86 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/1.571, allocations: 0.5249 MB / 0.8711 GB, free: 22.3 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.798e-05/1.571, allocations: 37 kB / 0.8712 GB, free: 22.26 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.162e-05/1.571, allocations: 40 kB / 0.8712 GB, free: 22.22 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001233/1.572, allocations: 0.6512 MB / 0.8718 GB, free: 21.51 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.235e-05/1.572, allocations: 4 kB / 0.8718 GB, free: 21.51 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.409e-05/1.572, allocations: 16 kB / 0.8719 GB, free: 21.49 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.397e-05/1.572, allocations: 19.94 kB / 0.8719 GB, free: 21.47 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001038/1.573, allocations: 0.5075 MB / 0.8724 GB, free: 20.96 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004161/1.578, allocations: 3.088 MB / 0.8754 GB, free: 17.7 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005149/1.578, allocations: 222.6 kB / 0.8756 GB, free: 17.46 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003024/1.579, allocations: 133.1 kB / 0.8757 GB, free: 17.33 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002616/1.579, allocations: 340.4 kB / 0.876 GB, free: 16.93 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004822/1.579, allocations: 270.8 kB / 0.8763 GB, free: 16.62 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=28): time 2.986e-06/1.579, allocations: 0 / 0.8763 GB, free: 16.62 MB / 0.4948 GB Notification: Performance of matching and sorting (n=28): time 0.001019/1.58, allocations: 405.5 kB / 0.8767 GB, free: 16.22 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.319e-05/1.58, allocations: 290.9 kB / 0.877 GB, free: 15.87 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007128/1.581, allocations: 492.8 kB / 0.8774 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 5.145e-05/1.581, allocations: 33.7 kB / 0.8775 GB, free: 15.34 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002177/1.581, allocations: 361.5 kB / 0.8778 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 8.777e-05/1.582, allocations: 98.72 kB / 0.8779 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.989e-05/1.582, allocations: 8 kB / 0.8779 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.523e-05/1.582, allocations: 330.8 kB / 0.8782 GB, free: 14.55 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003529/1.582, allocations: 141.1 kB / 0.8784 GB, free: 14.41 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005062/1.583, allocations: 373 kB / 0.8787 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004484/1.583, allocations: 221.5 kB / 0.8789 GB, free: 13.72 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/1.583, allocations: 3.938 kB / 0.8789 GB, free: 13.72 MB / 0.4948 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001321/1.584, allocations: 0.5763 MB / 0.8795 GB, free: 13.13 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004182/1.585, allocations: 2.123 MB / 0.8816 GB, free: 10.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/1.585, allocations: 4 kB / 0.8816 GB, free: 10.83 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.027e-05/1.585, allocations: 12 kB / 0.8816 GB, free: 10.82 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001905/1.587, allocations: 175.7 kB / 0.8818 GB, free: 10.65 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004689/1.587, allocations: 0.6094 MB / 0.8824 GB, free: 10.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008791/1.588, allocations: 87.31 kB / 0.8824 GB, free: 9.93 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.278e-05/1.588, allocations: 39.91 kB / 0.8825 GB, free: 9.891 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.869e-06/1.588, allocations: 4 kB / 0.8825 GB, free: 9.887 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001189/1.59, allocations: 0.5216 MB / 0.883 GB, free: 9.359 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/1.59, allocations: 4 kB / 0.883 GB, free: 9.355 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/1.59, allocations: 12 kB / 0.883 GB, free: 9.344 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006505/1.59, allocations: 111.8 kB / 0.8831 GB, free: 9.234 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/1.59, allocations: 12.67 kB / 0.8831 GB, free: 9.223 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005389/1.591, allocations: 55.67 kB / 0.8832 GB, free: 9.168 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.644e-05/1.591, allocations: 31.98 kB / 0.8832 GB, free: 9.137 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 () * 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.0001975/1.591, allocations: 170.5 kB / 0.8834 GB, free: 8.957 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/1.591, allocations: 63.2 kB / 0.8834 GB, free: 8.895 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00186/1.593, allocations: 0.7514 MB / 0.8842 GB, free: 8.129 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-05/1.593, allocations: 7.984 kB / 0.8842 GB, free: 8.121 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/1.593, allocations: 0 / 0.8842 GB, free: 8.121 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/1.593, allocations: 4 kB / 0.8842 GB, free: 8.117 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007423/1.594, allocations: 0.5208 MB / 0.8847 GB, free: 7.547 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/1.594, allocations: 0 / 0.8847 GB, free: 7.547 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00096/1.595, allocations: 119.8 kB / 0.8848 GB, free: 7.43 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-06/1.595, allocations: 3.953 kB / 0.8848 GB, free: 7.426 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.83e-05/1.595, allocations: 15.98 kB / 0.8848 GB, free: 7.41 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002722/1.595, allocations: 0.5937 MB / 0.8854 GB, free: 6.793 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/1.595, allocations: 0 / 0.8854 GB, free: 6.793 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001019/1.596, allocations: 0.5327 MB / 0.8859 GB, free: 6.234 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003315/1.597, allocations: 208.1 kB / 0.8861 GB, free: 6.012 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001435/1.597, allocations: 8 kB / 0.8861 GB, free: 6.004 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005662/1.597, allocations: 31.97 kB / 0.8862 GB, free: 5.973 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.375e-05/1.597, allocations: 20.3 kB / 0.8862 GB, free: 5.953 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.594e-05/1.598, allocations: 27.97 kB / 0.8862 GB, free: 5.926 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0006052/1.598, allocations: 411 kB / 0.8866 GB, free: 5.52 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.91e-07/1.598, allocations: 0 / 0.8866 GB, free: 5.52 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001677/1.6, allocations: 467.4 kB / 0.887 GB, free: 5.062 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) * 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.001065/1.601, allocations: 474.7 kB / 0.8875 GB, free: 4.598 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003069/1.604, allocations: 0.8832 MB / 0.8884 GB, free: 3.691 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/1.604, allocations: 0 / 0.8884 GB, free: 3.691 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001326/1.605, allocations: 364.1 kB / 0.8887 GB, free: 3.324 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002087/1.607, allocations: 266.7 kB / 0.889 GB, free: 3.066 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002028/1.61, allocations: 0.748 MB / 0.8897 GB, free: 2.285 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/1.61, allocations: 0.9077 MB / 0.8906 GB, free: 1.348 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002697/1.61, allocations: 71.41 kB / 0.8906 GB, free: 1.277 MB / 0.4948 GB Notification: Performance of SimCode: time 8.91e-07/1.61, allocations: 3.938 kB / 0.8906 GB, free: 1.273 MB / 0.4948 GB Notification: Performance of Templates: time 0.3551/1.965, allocations: 14.86 MB / 0.9052 GB, free: 122.8 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches