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.001191/0.001191, allocations: 177.6 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 223.2 MB / 241 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008431/0.0008431, allocations: 94.88 kB / 292.1 MB, free: 10.92 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.4307/0.4307, allocations: 44.21 MB / 387.5 MB, free: 38.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003574/0.0003575, allocations: 8 kB / 459.9 MB, free: 1.527 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4099/0.4102, allocations: 61.9 MB / 0.5096 GB, free: 37.99 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6803/1.091, allocations: 290.3 MB / 0.793 GB, free: 38.62 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002353/1.091, allocations: 95.17 kB / 0.7931 GB, free: 38.57 MB / 490.7 MB [/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.5535/1.644, allocations: 120.2 MB / 0.9105 GB, free: 142.6 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.934e-06/1.644, allocations: 0 / 0.9105 GB, free: 142.6 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.26e-05/1.645, allocations: 13.28 kB / 0.9105 GB, free: 142.6 MB / 0.5261 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.001991/1.647, allocations: 0.9326 MB / 0.9114 GB, free: 142 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/1.647, allocations: 8.875 kB / 0.9114 GB, free: 142 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000364/1.647, allocations: 82.31 kB / 0.9115 GB, free: 142 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001126/1.648, allocations: 0.5266 MB / 0.912 GB, free: 141.7 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.284e-05/1.648, allocations: 37.44 kB / 0.912 GB, free: 141.7 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.35e-05/1.648, allocations: 47.14 kB / 0.9121 GB, free: 141.7 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001424/1.65, allocations: 0.6553 MB / 0.9127 GB, free: 141.6 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.232e-05/1.65, allocations: 1.375 kB / 0.9127 GB, free: 141.6 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.226e-05/1.65, allocations: 23.3 kB / 0.9127 GB, free: 141.6 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.821e-05/1.65, allocations: 12.38 kB / 0.9127 GB, free: 141.6 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001159/1.651, allocations: 0.5202 MB / 0.9132 GB, free: 141.6 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005117/1.656, allocations: 3.084 MB / 0.9163 GB, free: 139.6 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00055/1.657, allocations: 207.2 kB / 0.9164 GB, free: 139.6 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003821/1.657, allocations: 347.5 kB / 0.9168 GB, free: 139.2 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006586/1.658, allocations: 276.6 kB / 0.917 GB, free: 139.1 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 5.039e-06/1.658, allocations: 5.75 kB / 0.9171 GB, free: 139.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=28): time 0.001593/1.659, allocations: 0.592 MB / 0.9176 GB, free: 138.9 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001766/1.66, allocations: 293.1 kB / 0.9179 GB, free: 138.6 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009833/1.661, allocations: 489.4 kB / 0.9184 GB, free: 138.4 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.88e-05/1.661, allocations: 34.53 kB / 0.9184 GB, free: 138.4 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003506/1.661, allocations: 338.9 kB / 0.9187 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000134/1.661, allocations: 93.56 kB / 0.9188 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.957e-05/1.661, allocations: 8.531 kB / 0.9188 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001896/1.661, allocations: 370.7 kB / 0.9192 GB, free: 137.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003125/1.662, allocations: 144.6 kB / 0.9193 GB, free: 137.9 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004838/1.662, allocations: 374.8 kB / 0.9197 GB, free: 137.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003701/1.663, allocations: 217.1 kB / 0.9199 GB, free: 137.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/1.663, allocations: 1.469 kB / 0.9199 GB, free: 137.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001215/1.664, allocations: 0.6185 MB / 0.9205 GB, free: 137.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007097/1.665, allocations: 2.125 MB / 0.9226 GB, free: 135.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.694e-05/1.665, allocations: 4.562 kB / 0.9226 GB, free: 135.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.658e-05/1.665, allocations: 9.281 kB / 0.9226 GB, free: 135.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/1.666, allocations: 175 kB / 0.9227 GB, free: 135.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004787/1.666, allocations: 0.627 MB / 0.9234 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000672/1.667, allocations: 76.34 kB / 0.9234 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.693e-05/1.667, allocations: 32.27 kB / 0.9235 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/1.667, allocations: 6.312 kB / 0.9235 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009848/1.668, allocations: 0.5331 MB / 0.924 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/1.668, allocations: 8.031 kB / 0.924 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/1.668, allocations: 15.5 kB / 0.924 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003966/1.669, allocations: 109.1 kB / 0.9241 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/1.669, allocations: 12.55 kB / 0.9241 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004638/1.669, allocations: 70.42 kB / 0.9242 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.105e-05/1.669, allocations: 28.66 kB / 0.9242 GB, free: 134.6 MB / 0.5261 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.0003995/1.67, allocations: 308.2 kB / 0.9245 GB, free: 134.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/1.67, allocations: 64.3 kB / 0.9246 GB, free: 134.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001437/1.671, allocations: 0.7497 MB / 0.9253 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.439e-05/1.671, allocations: 8.422 kB / 0.9253 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/1.671, allocations: 1.469 kB / 0.9253 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/1.671, allocations: 3.875 kB / 0.9253 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006727/1.672, allocations: 0.5314 MB / 0.9258 GB, free: 134 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/1.672, allocations: 0 / 0.9258 GB, free: 134 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005978/1.673, allocations: 115.4 kB / 0.9259 GB, free: 134 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/1.673, allocations: 1.406 kB / 0.926 GB, free: 134 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.958e-05/1.673, allocations: 12.91 kB / 0.926 GB, free: 134 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002276/1.673, allocations: 0.5972 MB / 0.9265 GB, free: 133.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/1.673, allocations: 1.094 kB / 0.9265 GB, free: 133.4 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007596/1.674, allocations: 0.5307 MB / 0.9271 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002979/1.674, allocations: 216.2 kB / 0.9273 GB, free: 133.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/1.674, allocations: 12.19 kB / 0.9273 GB, free: 133.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000317/1.674, allocations: 27.89 kB / 0.9273 GB, free: 133.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.558e-05/1.675, allocations: 28.83 kB / 0.9273 GB, free: 133.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.693e-05/1.675, allocations: 19.97 kB / 0.9274 GB, free: 133.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0005848/1.675, allocations: 409.7 kB / 0.9277 GB, free: 133 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.5e-07/1.675, allocations: 0 / 0.9277 GB, free: 133 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002059/1.677, allocations: 465 kB / 0.9282 GB, free: 132.9 MB / 0.5261 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.001414/1.679, allocations: 477 kB / 0.9286 GB, free: 132.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002401/1.681, allocations: 0.8984 MB / 0.9295 GB, free: 132.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/1.681, allocations: 1.25 kB / 0.9295 GB, free: 132.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009173/1.682, allocations: 368.1 kB / 0.9299 GB, free: 132.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00123/1.683, allocations: 263.3 kB / 0.9301 GB, free: 132.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002139/1.685, allocations: 1.267 MB / 0.9314 GB, free: 131.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004052/1.686, allocations: 0.9018 MB / 0.9322 GB, free: 131.2 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0008322/1.687, allocations: 205.5 kB / 0.9324 GB, free: 131.2 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001825/1.687, allocations: 71.64 kB / 0.9325 GB, free: 131.2 MB / 0.5261 GB Notification: Performance of SimCode: time 8.31e-07/1.687, allocations: 0 / 0.9325 GB, free: 131.2 MB / 0.5261 GB Notification: Performance of Templates: time 0.02329/1.71, allocations: 14.91 MB / 0.9471 GB, free: 130.1 MB / 0.5261 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