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.001165/0.001165, allocations: 183.1 kB / 15.76 MB, free: 6.367 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.859/1.859, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001149/0.001149, allocations: 94.86 kB / 270.2 MB, free: 13.36 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.2597/0.2597, allocations: 43.56 MB / 362 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003737/0.0003737, allocations: 8 kB / 431.4 MB, free: 19.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.1537, allocations: 58.86 MB / 490.3 MB, free: 8.664 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9525/1.106, allocations: 289 MB / 0.761 GB, free: 149.4 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002892/1.107, allocations: 82.95 kB / 0.7611 GB, free: 149.3 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.2384/1.345, allocations: 117.8 MB / 0.8762 GB, free: 30.07 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.784e-06/1.345, allocations: 0 / 0.8762 GB, free: 30.07 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 7e-05/1.345, allocations: 19.98 kB / 0.8762 GB, free: 30.05 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.002572/1.348, allocations: 0.9328 MB / 0.8771 GB, free: 29.06 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/1.348, allocations: 12.03 kB / 0.8771 GB, free: 29.05 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005843/1.349, allocations: 87.14 kB / 0.8772 GB, free: 28.96 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001285/1.35, allocations: 0.5132 MB / 0.8777 GB, free: 28.41 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.205e-05/1.35, allocations: 40.94 kB / 0.8777 GB, free: 28.37 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/1.35, allocations: 40 kB / 0.8778 GB, free: 28.33 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/1.351, allocations: 0.6629 MB / 0.8784 GB, free: 27.61 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.01e-05/1.351, allocations: 3.938 kB / 0.8784 GB, free: 27.61 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.004e-05/1.351, allocations: 24 kB / 0.8784 GB, free: 27.58 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/1.351, allocations: 12 kB / 0.8785 GB, free: 27.57 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008017/1.352, allocations: 0.5152 MB / 0.879 GB, free: 27.05 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003406/1.355, allocations: 3.085 MB / 0.882 GB, free: 23.79 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000346/1.356, allocations: 218.7 kB / 0.8822 GB, free: 23.56 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002169/1.356, allocations: 336.4 kB / 0.8825 GB, free: 23.16 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003283/1.356, allocations: 286.7 kB / 0.8828 GB, free: 22.84 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=28): time 2.565e-06/1.356, allocations: 0 / 0.8828 GB, free: 22.84 MB / 0.4948 GB Notification: Performance of matching and sorting (n=28): time 0.0008609/1.357, allocations: 0.5809 MB / 0.8833 GB, free: 22.23 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.448e-05/1.357, allocations: 290.9 kB / 0.8836 GB, free: 21.88 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004463/1.358, allocations: 490.2 kB / 0.8841 GB, free: 21.39 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.589e-05/1.358, allocations: 33.7 kB / 0.8841 GB, free: 21.35 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00017/1.358, allocations: 339 kB / 0.8844 GB, free: 21.02 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 6.046e-05/1.358, allocations: 90.66 kB / 0.8845 GB, free: 20.93 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.38e-05/1.358, allocations: 12 kB / 0.8845 GB, free: 20.91 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.166e-05/1.358, allocations: 366.7 kB / 0.8849 GB, free: 20.55 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000196/1.358, allocations: 149 kB / 0.885 GB, free: 20.4 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000305/1.359, allocations: 372.9 kB / 0.8854 GB, free: 19.94 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002618/1.359, allocations: 228.2 kB / 0.8856 GB, free: 19.71 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/1.359, allocations: 3.938 kB / 0.8856 GB, free: 19.71 MB / 0.4948 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008221/1.36, allocations: 0.6151 MB / 0.8862 GB, free: 19.08 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004742/1.36, allocations: 2.131 MB / 0.8883 GB, free: 16.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/1.36, allocations: 4 kB / 0.8883 GB, free: 16.78 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.403e-05/1.36, allocations: 8 kB / 0.8883 GB, free: 16.77 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001053/1.361, allocations: 179.7 kB / 0.8885 GB, free: 16.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003644/1.362, allocations: 0.6132 MB / 0.8891 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005088/1.362, allocations: 83.39 kB / 0.8892 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.825e-05/1.362, allocations: 31.98 kB / 0.8892 GB, free: 15.84 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/1.362, allocations: 6.969 kB / 0.8892 GB, free: 15.84 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007338/1.363, allocations: 0.5322 MB / 0.8897 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/1.363, allocations: 4 kB / 0.8897 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.185e-06/1.363, allocations: 8 kB / 0.8897 GB, free: 15.29 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000331/1.364, allocations: 123.8 kB / 0.8898 GB, free: 15.17 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/1.364, allocations: 11.94 kB / 0.8899 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003715/1.364, allocations: 67.95 kB / 0.8899 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.416e-05/1.364, allocations: 31.98 kB / 0.8899 GB, free: 15.06 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.0002907/1.364, allocations: 310.6 kB / 0.8902 GB, free: 14.74 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.2e-05/1.364, allocations: 63.3 kB / 0.8903 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001132/1.365, allocations: 0.7514 MB / 0.891 GB, free: 13.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.838e-06/1.365, allocations: 4 kB / 0.891 GB, free: 13.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/1.366, allocations: 3.938 kB / 0.891 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/1.366, allocations: 3.984 kB / 0.8911 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005147/1.366, allocations: 0.5209 MB / 0.8916 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/1.366, allocations: 0 / 0.8916 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005291/1.367, allocations: 119.8 kB / 0.8917 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/1.367, allocations: 3.953 kB / 0.8917 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.95e-05/1.367, allocations: 15.98 kB / 0.8917 GB, free: 13.18 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002096/1.367, allocations: 0.586 MB / 0.8923 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/1.367, allocations: 0 / 0.8923 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006038/1.367, allocations: 0.5443 MB / 0.8928 GB, free: 12 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002663/1.368, allocations: 216 kB / 0.893 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.75e-05/1.368, allocations: 8 kB / 0.893 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002884/1.368, allocations: 27.98 kB / 0.893 GB, free: 11.74 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.808e-05/1.368, allocations: 28.28 kB / 0.8931 GB, free: 11.71 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.148e-05/1.368, allocations: 12 kB / 0.8931 GB, free: 11.7 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0003735/1.369, allocations: 415.1 kB / 0.8935 GB, free: 11.29 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.8e-07/1.369, allocations: 0 / 0.8935 GB, free: 11.29 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001314/1.37, allocations: 459.5 kB / 0.8939 GB, free: 10.84 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.0008468/1.371, allocations: 480.1 kB / 0.8944 GB, free: 10.36 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001827/1.373, allocations: 0.8913 MB / 0.8952 GB, free: 9.449 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/1.373, allocations: 0 / 0.8952 GB, free: 9.449 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0007416/1.373, allocations: 363.7 kB / 0.8956 GB, free: 9.082 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001071/1.375, allocations: 266.6 kB / 0.8958 GB, free: 8.824 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001707/1.376, allocations: 1.273 MB / 0.8971 GB, free: 7.52 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002811/1.377, allocations: 0.9115 MB / 0.898 GB, free: 6.582 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.000622/1.377, allocations: 208.6 kB / 0.8982 GB, free: 6.375 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/1.377, allocations: 67.41 kB / 0.8982 GB, free: 6.309 MB / 0.4948 GB Notification: Performance of SimCode: time 3.2e-07/1.377, allocations: 0 / 0.8982 GB, free: 6.309 MB / 0.4948 GB Notification: Performance of Templates: time 0.3092/1.686, allocations: 14.91 MB / 0.9128 GB, free: 123.8 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