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.001516/0.001516, allocations: 186.9 kB / 16.41 MB, free: 5.727 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.982/1.982, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.00112/0.00112, allocations: 96.41 kB / 270.9 MB, free: 8.391 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.4978/0.4978, allocations: 43.55 MB / 362.7 MB, free: 52.22 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004591/0.000459, allocations: 12 kB / 431.4 MB, free: 6.188 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1235, allocations: 58.85 MB / 490.2 MB, free: 11.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.05/1.173, allocations: 289 MB / 0.761 GB, free: 81.61 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002955/1.173, allocations: 86.39 kB / 0.7611 GB, free: 81.57 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.7133/1.887, allocations: 117.8 MB / 0.8761 GB, free: 117.5 MB / 0.4949 GB Notification: Performance of FrontEnd: time 2.585e-06/1.887, allocations: 0 / 0.8761 GB, free: 117.5 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 5.562e-05/1.887, allocations: 12.28 kB / 0.8762 GB, free: 117.5 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.002376/1.889, allocations: 0.9364 MB / 0.8771 GB, free: 117 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/1.889, allocations: 6.594 kB / 0.8771 GB, free: 117 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000562/1.89, allocations: 83.45 kB / 0.8772 GB, free: 116.9 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001559/1.891, allocations: 0.5223 MB / 0.8777 GB, free: 116.7 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.751e-05/1.891, allocations: 34.09 kB / 0.8777 GB, free: 116.7 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/1.892, allocations: 45.72 kB / 0.8777 GB, free: 116.7 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/1.893, allocations: 0.6663 MB / 0.8784 GB, free: 116.5 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.533e-05/1.893, allocations: 4.359 kB / 0.8784 GB, free: 116.5 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.732e-05/1.893, allocations: 31.2 kB / 0.8784 GB, free: 116.5 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.457e-05/1.893, allocations: 10.81 kB / 0.8784 GB, free: 116.5 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001151/1.894, allocations: 0.5216 MB / 0.8789 GB, free: 116.5 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004836/1.899, allocations: 3.07 MB / 0.8819 GB, free: 114.6 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005926/1.9, allocations: 214.5 kB / 0.8822 GB, free: 114.6 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000298/1.9, allocations: 339.5 kB / 0.8825 GB, free: 114.2 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005315/1.901, allocations: 278.3 kB / 0.8827 GB, free: 114.1 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=28): time 2.695e-06/1.901, allocations: 0 / 0.8827 GB, free: 114.1 MB / 0.4949 GB Notification: Performance of matching and sorting (n=28): time 0.001522/1.902, allocations: 0.5868 MB / 0.8833 GB, free: 113.9 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.331e-05/1.902, allocations: 293.9 kB / 0.8836 GB, free: 113.5 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008167/1.903, allocations: 493.5 kB / 0.8841 GB, free: 113.4 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 9.48e-05/1.903, allocations: 34.98 kB / 0.8841 GB, free: 113.4 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002378/1.904, allocations: 367.7 kB / 0.8844 GB, free: 113.2 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/1.904, allocations: 93.73 kB / 0.8845 GB, free: 113.1 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.643e-05/1.904, allocations: 10.28 kB / 0.8845 GB, free: 113.1 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 7.702e-05/1.904, allocations: 327 kB / 0.8849 GB, free: 112.8 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003933/1.904, allocations: 147.7 kB / 0.885 GB, free: 112.8 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005434/1.905, allocations: 376.5 kB / 0.8854 GB, free: 112.5 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005102/1.905, allocations: 232.3 kB / 0.8856 GB, free: 112.5 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/1.905, allocations: 3.281 kB / 0.8856 GB, free: 112.5 MB / 0.4949 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001457/1.907, allocations: 0.5686 MB / 0.8861 GB, free: 112.4 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004666/1.907, allocations: 2.128 MB / 0.8882 GB, free: 110.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/1.907, allocations: 9.594 kB / 0.8882 GB, free: 110.2 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.323e-05/1.907, allocations: 9.281 kB / 0.8882 GB, free: 110.2 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00206/1.909, allocations: 169.5 kB / 0.8884 GB, free: 110.2 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005344/1.91, allocations: 0.6217 MB / 0.889 GB, free: 109.6 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009745/1.911, allocations: 81.75 kB / 0.8891 GB, free: 109.6 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001017/1.911, allocations: 34.09 kB / 0.8891 GB, free: 109.6 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/1.911, allocations: 3.906 kB / 0.8891 GB, free: 109.6 MB / 0.4949 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001271/1.912, allocations: 0.5335 MB / 0.8896 GB, free: 109.6 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/1.912, allocations: 6.469 kB / 0.8896 GB, free: 109.6 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/1.913, allocations: 13.16 kB / 0.8897 GB, free: 109.5 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006769/1.913, allocations: 118.9 kB / 0.8898 GB, free: 109.5 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/1.913, allocations: 9.531 kB / 0.8898 GB, free: 109.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000604/1.914, allocations: 55.39 kB / 0.8898 GB, free: 109.5 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.213e-05/1.914, allocations: 26.34 kB / 0.8899 GB, free: 109.5 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.0004789/1.914, allocations: 299 kB / 0.8901 GB, free: 109.3 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001724/1.915, allocations: 66.31 kB / 0.8902 GB, free: 109.3 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001951/1.917, allocations: 0.7581 MB / 0.8909 GB, free: 109.2 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/1.917, allocations: 9.25 kB / 0.891 GB, free: 109.2 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/1.917, allocations: 0 / 0.891 GB, free: 109.2 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/1.917, allocations: 6.891 kB / 0.891 GB, free: 109.2 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009664/1.918, allocations: 0.5236 MB / 0.8915 GB, free: 109 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/1.918, allocations: 0 / 0.8915 GB, free: 109 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001041/1.919, allocations: 117.2 kB / 0.8916 GB, free: 109 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.316e-06/1.919, allocations: 0 / 0.8916 GB, free: 109 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.875e-05/1.919, allocations: 15.7 kB / 0.8916 GB, free: 109 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003268/1.919, allocations: 0.5968 MB / 0.8922 GB, free: 108.4 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/1.919, allocations: 0 / 0.8922 GB, free: 108.4 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001209/1.92, allocations: 0.5272 MB / 0.8927 GB, free: 108.2 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004346/1.921, allocations: 219.8 kB / 0.8929 GB, free: 108.1 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001935/1.921, allocations: 12.88 kB / 0.8929 GB, free: 108.1 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006014/1.922, allocations: 30.2 kB / 0.8929 GB, free: 108.1 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.265e-05/1.922, allocations: 34.22 kB / 0.893 GB, free: 108.1 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.195e-05/1.922, allocations: 13.47 kB / 0.893 GB, free: 108.1 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.0006842/1.923, allocations: 414.3 kB / 0.8934 GB, free: 108 MB / 0.4949 GB Notification: Performance of sort global known variables: time 5.31e-07/1.923, allocations: 0 / 0.8934 GB, free: 108 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.002065/1.925, allocations: 461.8 kB / 0.8938 GB, free: 107.9 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.001371/1.926, allocations: 473.2 kB / 0.8943 GB, free: 107.8 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.003487/1.93, allocations: 0.8928 MB / 0.8952 GB, free: 107.6 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/1.93, allocations: 2.906 kB / 0.8952 GB, free: 107.6 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.001491/1.931, allocations: 363.8 kB / 0.8955 GB, free: 107.6 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002244/1.933, allocations: 269.7 kB / 0.8958 GB, free: 107.6 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002747/1.936, allocations: 1.297 MB / 0.897 GB, free: 107 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004487/1.937, allocations: 0.9126 MB / 0.8979 GB, free: 106.2 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003656/1.937, allocations: 71.78 kB / 0.898 GB, free: 106.2 MB / 0.4949 GB Notification: Performance of SimCode: time 1.192e-06/1.937, allocations: 0 / 0.898 GB, free: 106.2 MB / 0.4949 GB Notification: Performance of Templates: time 0.0332/1.97, allocations: 14.9 MB / 0.9125 GB, free: 105.3 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