Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009212/0.0009213, allocations: 169 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 221.5 MB / 230.7 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008434/0.0008434, allocations: 111 kB / 281.6 MB, free: 5.305 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1876/0.1876, allocations: 44.15 MB / 376.5 MB, free: 3.027 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.701e-05/1.696e-05, allocations: 4 kB / 444.6 MB, free: 15.22 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1217, allocations: 61.91 MB / 0.4947 GB, free: 1.246 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9225/1.044, allocations: 289.5 MB / 0.7774 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003514/1.045, allocations: 76.7 kB / 0.7775 GB, free: 100.2 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.5166/1.561, allocations: 118.6 MB / 0.8933 GB, free: 132.4 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.916e-06/1.561, allocations: 0 / 0.8933 GB, free: 132.4 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.748e-05/1.561, allocations: 15.11 kB / 0.8933 GB, free: 132.4 MB / 0.5105 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.001626/1.563, allocations: 0.8609 MB / 0.8942 GB, free: 132 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/1.563, allocations: 12.83 kB / 0.8942 GB, free: 132 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000355/1.564, allocations: 79.78 kB / 0.8943 GB, free: 132 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/1.565, allocations: 0.5288 MB / 0.8948 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.938e-05/1.565, allocations: 14.56 kB / 0.8948 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.652e-05/1.565, allocations: 27.91 kB / 0.8948 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009344/1.566, allocations: 480.6 kB / 0.8953 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009189/1.567, allocations: 0.5902 MB / 0.8959 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.801e-05/1.567, allocations: 2.812 kB / 0.8959 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.446e-05/1.567, allocations: 3.375 kB / 0.8959 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.115e-05/1.567, allocations: 11.22 kB / 0.8959 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003822/1.57, allocations: 2.975 MB / 0.8988 GB, free: 129.7 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004446/1.571, allocations: 196.4 kB / 0.899 GB, free: 129.7 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002358/1.571, allocations: 130.3 kB / 0.8991 GB, free: 129.7 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003084/1.572, allocations: 341.1 kB / 0.8994 GB, free: 129.3 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004651/1.572, allocations: 271.8 kB / 0.8997 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=28): time 3.497e-06/1.572, allocations: 0 / 0.8997 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=28): time 0.003253/1.575, allocations: 0.6508 MB / 0.9003 GB, free: 129.1 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.803e-05/1.575, allocations: 290.6 kB / 0.9006 GB, free: 128.8 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004721/1.576, allocations: 386.5 kB / 0.901 GB, free: 128.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.566e-05/1.576, allocations: 26.83 kB / 0.901 GB, free: 128.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002288/1.576, allocations: 347.9 kB / 0.9013 GB, free: 128.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 7.966e-05/1.576, allocations: 92.09 kB / 0.9014 GB, free: 128.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.332e-05/1.576, allocations: 2.844 kB / 0.9014 GB, free: 128.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001264/1.576, allocations: 359.7 kB / 0.9017 GB, free: 128.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000213/1.577, allocations: 133.4 kB / 0.9019 GB, free: 128.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003752/1.577, allocations: 352.4 kB / 0.9022 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002577/1.58, allocations: 0.489 MB / 0.9027 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.807e-06/1.58, allocations: 5.797 kB / 0.9027 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00319/1.583, allocations: 0.8251 MB / 0.9035 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004376/1.583, allocations: 2.124 MB / 0.9056 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/1.583, allocations: 5.969 kB / 0.9056 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.819e-05/1.583, allocations: 8.984 kB / 0.9056 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/1.584, allocations: 178.5 kB / 0.9058 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008677/1.585, allocations: 0.6706 MB / 0.9064 GB, free: 125 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006215/1.586, allocations: 55.89 kB / 0.9065 GB, free: 125 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.425e-05/1.586, allocations: 35.03 kB / 0.9065 GB, free: 125 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/1.586, allocations: 7.281 kB / 0.9065 GB, free: 125 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002204/1.588, allocations: 0.6364 MB / 0.9071 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/1.588, allocations: 5.375 kB / 0.9071 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/1.588, allocations: 9 kB / 0.9071 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003882/1.589, allocations: 112.6 kB / 0.9072 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.771e-05/1.589, allocations: 14.41 kB / 0.9073 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004759/1.589, allocations: 45.67 kB / 0.9073 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.685e-05/1.589, allocations: 32.61 kB / 0.9073 GB, free: 124.9 MB / 0.5105 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.0002322/1.59, allocations: 166.2 kB / 0.9075 GB, free: 124.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001172/1.59, allocations: 52.23 kB / 0.9075 GB, free: 124.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002156/1.592, allocations: 0.8149 MB / 0.9083 GB, free: 124.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/1.592, allocations: 5.484 kB / 0.9083 GB, free: 124.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.832e-06/1.592, allocations: 3.047 kB / 0.9083 GB, free: 124.7 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/1.592, allocations: 2.109 kB / 0.9084 GB, free: 124.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007299/1.593, allocations: 462.4 kB / 0.9088 GB, free: 124.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/1.593, allocations: 0 / 0.9088 GB, free: 124.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005972/1.593, allocations: 121.2 kB / 0.9089 GB, free: 124.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/1.593, allocations: 1.375 kB / 0.9089 GB, free: 124.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.138e-05/1.593, allocations: 9.141 kB / 0.9089 GB, free: 124.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003551/1.594, allocations: 0.6157 MB / 0.9095 GB, free: 124 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/1.594, allocations: 3.875 kB / 0.9095 GB, free: 124 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/1.595, allocations: 0.5875 MB / 0.9101 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003036/1.596, allocations: 205.6 kB / 0.9103 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.016e-05/1.596, allocations: 8.328 kB / 0.9103 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002921/1.596, allocations: 20.05 kB / 0.9103 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.178e-05/1.596, allocations: 29.52 kB / 0.9103 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.005e-05/1.596, allocations: 18.62 kB / 0.9104 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.000478/1.597, allocations: 306.5 kB / 0.9107 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.71e-07/1.597, allocations: 0 / 0.9107 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002009/1.599, allocations: 460.3 kB / 0.9111 GB, free: 123.6 MB / 0.5105 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.001131/1.6, allocations: 463.3 kB / 0.9115 GB, free: 123.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002549/1.602, allocations: 0.8471 MB / 0.9124 GB, free: 123.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/1.602, allocations: 0.9062 kB / 0.9124 GB, free: 123.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0009616/1.603, allocations: 354.8 kB / 0.9127 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001122/1.604, allocations: 200 kB / 0.9129 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/1.606, allocations: 0.6962 MB / 0.9136 GB, free: 123 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000431/1.607, allocations: 0.9013 MB / 0.9145 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0007804/1.607, allocations: 203.2 kB / 0.9146 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000149/1.607, allocations: 58.92 kB / 0.9147 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of SimCode: time 1.333e-06/1.607, allocations: 1.188 kB / 0.9147 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of Templates: time 0.02968/1.637, allocations: 13.16 MB / 0.9276 GB, free: 121.7 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestSimpleGenericOrifice/TestSimpleGenericOrifice.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches