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.001478/0.001478, allocations: 183.1 kB / 13.19 MB, free: 2.129 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.319/1.319, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.000829/0.0008291, allocations: 92.41 kB / 267.1 MB, free: 9.281 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.3262/0.3262, allocations: 43.46 MB / 358.6 MB, free: 52.32 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.761e-05/2.777e-05, allocations: 0 / 425.3 MB, free: 8.887 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1128, allocations: 58.85 MB / 484.2 MB, free: 13.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7256/0.8385, allocations: 289 MB / 0.755 GB, free: 87.69 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002038/0.8388, allocations: 85.23 kB / 0.7551 GB, free: 87.64 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.441/1.28, allocations: 117.4 MB / 0.8697 GB, free: 113.7 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.453e-06/1.28, allocations: 0 / 0.8697 GB, free: 113.7 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.716e-05/1.28, allocations: 18.23 kB / 0.8697 GB, free: 113.7 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.001287/1.281, allocations: 0.8688 MB / 0.8705 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/1.281, allocations: 13.23 kB / 0.8706 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002927/1.282, allocations: 81.31 kB / 0.8706 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008028/1.282, allocations: 0.5187 MB / 0.8711 GB, free: 112.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.993e-05/1.282, allocations: 36.56 kB / 0.8712 GB, free: 112.9 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.732e-05/1.282, allocations: 45.03 kB / 0.8712 GB, free: 112.9 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008705/1.283, allocations: 0.6477 MB / 0.8719 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/1.283, allocations: 3.781 kB / 0.8719 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.495e-05/1.283, allocations: 25.95 kB / 0.8719 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/1.283, allocations: 12.62 kB / 0.8719 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006615/1.284, allocations: 0.509 MB / 0.8724 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002574/1.287, allocations: 3.078 MB / 0.8754 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000296/1.287, allocations: 203.8 kB / 0.8756 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001681/1.287, allocations: 139.5 kB / 0.8757 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001719/1.287, allocations: 341.1 kB / 0.876 GB, free: 110.4 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003077/1.288, allocations: 288 kB / 0.8763 GB, free: 110.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=28): time 1.904e-06/1.288, allocations: 0 / 0.8763 GB, free: 110.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=28): time 0.000621/1.288, allocations: 396.6 kB / 0.8767 GB, free: 110.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.774e-05/1.288, allocations: 296.1 kB / 0.877 GB, free: 109.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000423/1.289, allocations: 484.8 kB / 0.8774 GB, free: 109.7 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.176e-05/1.289, allocations: 34.36 kB / 0.8775 GB, free: 109.7 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001538/1.289, allocations: 342 kB / 0.8778 GB, free: 109.6 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 5.705e-05/1.289, allocations: 91.44 kB / 0.8779 GB, free: 109.5 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.269e-05/1.289, allocations: 9.25 kB / 0.8779 GB, free: 109.5 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.403e-05/1.289, allocations: 365.4 kB / 0.8783 GB, free: 109.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/1.289, allocations: 149.6 kB / 0.8784 GB, free: 109.2 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002892/1.29, allocations: 366.7 kB / 0.8787 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002624/1.29, allocations: 223 kB / 0.879 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/1.29, allocations: 2.938 kB / 0.879 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008071/1.291, allocations: 0.5979 MB / 0.8795 GB, free: 108.8 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003451/1.291, allocations: 2.13 MB / 0.8816 GB, free: 106.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/1.291, allocations: 3.312 kB / 0.8816 GB, free: 106.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/1.291, allocations: 9.531 kB / 0.8816 GB, free: 106.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/1.292, allocations: 172.1 kB / 0.8818 GB, free: 106.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003214/1.293, allocations: 0.6229 MB / 0.8824 GB, free: 106 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000467/1.293, allocations: 76.39 kB / 0.8825 GB, free: 106 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.879e-05/1.293, allocations: 34.36 kB / 0.8825 GB, free: 106 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.596e-06/1.293, allocations: 4.125 kB / 0.8825 GB, free: 106 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007007/1.294, allocations: 0.5365 MB / 0.883 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/1.294, allocations: 8.219 kB / 0.883 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.206e-06/1.294, allocations: 9.344 kB / 0.8831 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003124/1.294, allocations: 113.1 kB / 0.8832 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/1.294, allocations: 15.02 kB / 0.8832 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004162/1.295, allocations: 66.47 kB / 0.8832 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.936e-05/1.295, allocations: 35.31 kB / 0.8833 GB, free: 105.9 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.0001551/1.295, allocations: 176.2 kB / 0.8834 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.015e-05/1.295, allocations: 63.12 kB / 0.8835 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001089/1.296, allocations: 0.7466 MB / 0.8842 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/1.296, allocations: 6.656 kB / 0.8842 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/1.296, allocations: 0 / 0.8842 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/1.296, allocations: 2.875 kB / 0.8842 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005159/1.297, allocations: 0.5204 MB / 0.8848 GB, free: 105.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/1.297, allocations: 0 / 0.8848 GB, free: 105.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005208/1.297, allocations: 116.4 kB / 0.8849 GB, free: 105.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/1.297, allocations: 6.703 kB / 0.8849 GB, free: 105.4 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.532e-05/1.297, allocations: 10.5 kB / 0.8849 GB, free: 105.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001929/1.297, allocations: 0.5926 MB / 0.8855 GB, free: 104.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/1.297, allocations: 7.203 kB / 0.8855 GB, free: 104.8 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005891/1.298, allocations: 0.5236 MB / 0.886 GB, free: 104.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002075/1.298, allocations: 216 kB / 0.8862 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.093e-05/1.298, allocations: 17.62 kB / 0.8862 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003272/1.299, allocations: 28.42 kB / 0.8862 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.083e-05/1.299, allocations: 30.27 kB / 0.8863 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.263e-05/1.299, allocations: 18.91 kB / 0.8863 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0003558/1.299, allocations: 402 kB / 0.8867 GB, free: 104.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.81e-07/1.299, allocations: 0 / 0.8867 GB, free: 104.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001144/1.3, allocations: 472.9 kB / 0.8871 GB, free: 104.4 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.0007411/1.301, allocations: 462.5 kB / 0.8875 GB, free: 104.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00178/1.303, allocations: 0.8992 MB / 0.8884 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/1.303, allocations: 0 / 0.8884 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0007331/1.304, allocations: 368 kB / 0.8888 GB, free: 104 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001045/1.305, allocations: 257.7 kB / 0.889 GB, free: 104 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001187/1.306, allocations: 0.7313 MB / 0.8897 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002656/1.306, allocations: 0.9098 MB / 0.8906 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0006912/1.307, allocations: 228 kB / 0.8908 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/1.307, allocations: 63.25 kB / 0.8909 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of SimCode: time 4.31e-07/1.307, allocations: 0 / 0.8909 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of Templates: time 0.02318/1.33, allocations: 16.03 MB / 0.9066 GB, free: 102.2 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/jenkins/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