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.001346/0.001347, allocations: 177.3 kB / 17.41 MB, free: 4.414 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.493/1.493, allocations: 205.4 MB / 223.6 MB, free: 9.035 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.0007849/0.0007851, allocations: 93.36 kB / 271.9 MB, free: 8.273 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.3432/0.3432, allocations: 43.56 MB / 363.7 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004105/0.0004105, allocations: 12 kB / 432.6 MB, free: 5.676 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1147, allocations: 58.85 MB / 491.4 MB, free: 10.74 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7465/0.8613, allocations: 289.1 MB / 0.7623 GB, free: 80.83 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002709/0.8616, allocations: 84.77 kB / 0.7624 GB, free: 80.78 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.4096/1.271, allocations: 117.1 MB / 0.8767 GB, free: 117 MB / 0.4949 GB Notification: Performance of FrontEnd: time 1.543e-06/1.271, allocations: 0 / 0.8767 GB, free: 117 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 3.998e-05/1.271, allocations: 19 kB / 0.8767 GB, free: 117 MB / 0.4949 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.001464/1.273, allocations: 0.9286 MB / 0.8776 GB, free: 116.5 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/1.273, allocations: 11.59 kB / 0.8776 GB, free: 116.5 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003072/1.273, allocations: 88.2 kB / 0.8777 GB, free: 116.4 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008301/1.274, allocations: 0.533 MB / 0.8782 GB, free: 116.2 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/1.274, allocations: 37.81 kB / 0.8783 GB, free: 116.2 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.909e-05/1.274, allocations: 48.97 kB / 0.8783 GB, free: 116.2 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008044/1.275, allocations: 0.6592 MB / 0.879 GB, free: 116 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/1.275, allocations: 9.781 kB / 0.879 GB, free: 116 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.707e-05/1.275, allocations: 25.78 kB / 0.879 GB, free: 116 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/1.275, allocations: 12.78 kB / 0.879 GB, free: 116 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006913/1.276, allocations: 0.5131 MB / 0.8795 GB, free: 116 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002791/1.279, allocations: 3.025 MB / 0.8825 GB, free: 114.1 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003359/1.279, allocations: 213.9 kB / 0.8827 GB, free: 114.1 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001895/1.279, allocations: 135.4 kB / 0.8828 GB, free: 114.1 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001961/1.279, allocations: 340.9 kB / 0.8831 GB, free: 113.7 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003253/1.28, allocations: 284.7 kB / 0.8834 GB, free: 113.6 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=28): time 2.986e-06/1.28, allocations: 0 / 0.8834 GB, free: 113.6 MB / 0.4949 GB Notification: Performance of matching and sorting (n=28): time 0.0008465/1.281, allocations: 0.5035 MB / 0.8839 GB, free: 113.5 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.756e-05/1.281, allocations: 296.4 kB / 0.8842 GB, free: 113.1 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005177/1.281, allocations: 0.5492 MB / 0.8847 GB, free: 113 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 3.524e-05/1.281, allocations: 31.67 kB / 0.8847 GB, free: 112.9 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.000171/1.281, allocations: 337.8 kB / 0.8851 GB, free: 112.8 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 7.147e-05/1.281, allocations: 102.7 kB / 0.8852 GB, free: 112.7 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/1.281, allocations: 12.44 kB / 0.8852 GB, free: 112.7 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0001158/1.282, allocations: 370.2 kB / 0.8855 GB, free: 112.4 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002164/1.282, allocations: 148.5 kB / 0.8857 GB, free: 112.4 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003143/1.282, allocations: 370.5 kB / 0.886 GB, free: 112.1 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005195/1.283, allocations: 0.5214 MB / 0.8865 GB, free: 111.9 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/1.283, allocations: 3.375 kB / 0.8865 GB, free: 111.9 MB / 0.4949 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008683/1.284, allocations: 0.6199 MB / 0.8871 GB, free: 111.8 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001215/1.284, allocations: 274.1 kB / 0.8874 GB, free: 111.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/1.284, allocations: 10 kB / 0.8874 GB, free: 111.5 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.217e-05/1.284, allocations: 6.594 kB / 0.8874 GB, free: 111.5 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001069/1.285, allocations: 173.7 kB / 0.8876 GB, free: 111.5 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003505/1.285, allocations: 0.6177 MB / 0.8882 GB, free: 110.9 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000557/1.286, allocations: 78.81 kB / 0.8883 GB, free: 110.9 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.128e-05/1.286, allocations: 36.38 kB / 0.8883 GB, free: 110.9 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/1.286, allocations: 6.062 kB / 0.8883 GB, free: 110.9 MB / 0.4949 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007634/1.287, allocations: 0.5376 MB / 0.8888 GB, free: 110.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/1.287, allocations: 5.406 kB / 0.8888 GB, free: 110.8 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.112e-06/1.287, allocations: 7.688 kB / 0.8888 GB, free: 110.8 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003256/1.287, allocations: 116.8 kB / 0.8889 GB, free: 110.8 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/1.287, allocations: 10.03 kB / 0.889 GB, free: 110.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004222/1.287, allocations: 72.06 kB / 0.889 GB, free: 110.8 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.835e-05/1.287, allocations: 29.84 kB / 0.8891 GB, free: 110.8 MB / 0.4949 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.0003507/1.288, allocations: 302 kB / 0.8893 GB, free: 110.6 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.944e-05/1.288, allocations: 65.72 kB / 0.8894 GB, free: 110.6 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001149/1.289, allocations: 0.7469 MB / 0.8901 GB, free: 110.5 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/1.289, allocations: 3.938 kB / 0.8901 GB, free: 110.5 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/1.289, allocations: 4.688 kB / 0.8901 GB, free: 110.5 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/1.289, allocations: 6.406 kB / 0.8901 GB, free: 110.5 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005838/1.29, allocations: 0.5226 MB / 0.8907 GB, free: 110.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/1.29, allocations: 0 / 0.8907 GB, free: 110.2 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005519/1.29, allocations: 119.5 kB / 0.8908 GB, free: 110.2 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/1.29, allocations: 1.5 kB / 0.8908 GB, free: 110.2 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.83e-05/1.29, allocations: 14.94 kB / 0.8908 GB, free: 110.2 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002189/1.291, allocations: 0.5962 MB / 0.8914 GB, free: 109.7 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/1.291, allocations: 0 / 0.8914 GB, free: 109.7 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006441/1.291, allocations: 0.5316 MB / 0.8919 GB, free: 109.5 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000236/1.291, allocations: 217.8 kB / 0.8921 GB, free: 109.4 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.109e-05/1.292, allocations: 13.72 kB / 0.8921 GB, free: 109.4 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002985/1.292, allocations: 22.77 kB / 0.8921 GB, free: 109.4 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.097e-05/1.292, allocations: 29.41 kB / 0.8922 GB, free: 109.4 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.722e-05/1.292, allocations: 16.86 kB / 0.8922 GB, free: 109.4 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.0004136/1.292, allocations: 408.3 kB / 0.8926 GB, free: 109.3 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.5e-07/1.292, allocations: 0 / 0.8926 GB, free: 109.3 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.001413/1.294, allocations: 468.2 kB / 0.893 GB, free: 109.2 MB / 0.4949 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.0009028/1.295, allocations: 480.5 kB / 0.8935 GB, free: 109.1 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.002009/1.297, allocations: 0.8987 MB / 0.8943 GB, free: 108.9 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/1.297, allocations: 3.156 kB / 0.8943 GB, free: 108.9 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.0008008/1.298, allocations: 363 kB / 0.8947 GB, free: 108.9 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001263/1.299, allocations: 279 kB / 0.895 GB, free: 108.9 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001829/1.301, allocations: 1.311 MB / 0.8962 GB, free: 108.2 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/1.301, allocations: 0.8966 MB / 0.8971 GB, free: 107.5 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001868/1.301, allocations: 74.81 kB / 0.8972 GB, free: 107.5 MB / 0.4949 GB Notification: Performance of SimCode: time 8.32e-07/1.301, allocations: 0 / 0.8972 GB, free: 107.5 MB / 0.4949 GB Notification: Performance of Templates: time 0.02282/1.324, allocations: 14.85 MB / 0.9117 GB, free: 106.5 MB / 0.4949 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