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.001163/0.001163, allocations: 183.6 kB / 18.09 MB, free: 3.633 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.365/1.365, allocations: 223.3 MB / 242.1 MB, free: 9.961 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.0008961/0.000896, allocations: 98.53 kB / 293.3 MB, free: 10.55 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.3986/0.3986, allocations: 44.14 MB / 388.5 MB, free: 38.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004405/0.0004405, allocations: 12 kB / 461.1 MB, free: 1.305 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3871/0.3876, allocations: 61.87 MB / 0.5107 GB, free: 37.76 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5883/0.9759, allocations: 290.3 MB / 0.7942 GB, free: 38.59 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002925/0.9763, allocations: 91.88 kB / 0.7943 GB, free: 38.55 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.536/1.512, allocations: 119.4 MB / 0.9109 GB, free: 142.4 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.194e-06/1.512, allocations: 3.172 kB / 0.911 GB, free: 142.4 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.274e-05/1.512, allocations: 17.62 kB / 0.911 GB, free: 142.4 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.001698/1.514, allocations: 0.9321 MB / 0.9119 GB, free: 141.8 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/1.514, allocations: 9.5 kB / 0.9119 GB, free: 141.8 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003064/1.515, allocations: 81.83 kB / 0.912 GB, free: 141.7 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009362/1.515, allocations: 0.5343 MB / 0.9125 GB, free: 141.5 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.106e-05/1.516, allocations: 34.56 kB / 0.9125 GB, free: 141.5 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.894e-05/1.516, allocations: 48.69 kB / 0.9126 GB, free: 141.5 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/1.517, allocations: 0.6563 MB / 0.9132 GB, free: 141.3 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/1.517, allocations: 4.406 kB / 0.9132 GB, free: 141.3 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.657e-05/1.517, allocations: 25.88 kB / 0.9132 GB, free: 141.3 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.787e-05/1.517, allocations: 14.06 kB / 0.9133 GB, free: 141.3 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009037/1.518, allocations: 0.5198 MB / 0.9138 GB, free: 141.3 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003541/1.521, allocations: 3.03 MB / 0.9167 GB, free: 139.4 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003967/1.522, allocations: 209.9 kB / 0.9169 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002198/1.522, allocations: 135.7 kB / 0.917 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002301/1.522, allocations: 339.6 kB / 0.9174 GB, free: 139 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004312/1.523, allocations: 282.7 kB / 0.9176 GB, free: 138.8 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 2.946e-06/1.523, allocations: 2.953 kB / 0.9176 GB, free: 138.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=28): time 0.00112/1.524, allocations: 0.5115 MB / 0.9181 GB, free: 138.7 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/1.524, allocations: 293.5 kB / 0.9184 GB, free: 138.4 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008393/1.525, allocations: 0.5454 MB / 0.919 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.928e-05/1.525, allocations: 33.3 kB / 0.919 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003059/1.525, allocations: 337.6 kB / 0.9193 GB, free: 138 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/1.525, allocations: 92.61 kB / 0.9194 GB, free: 138 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.809e-05/1.525, allocations: 11.66 kB / 0.9194 GB, free: 138 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001769/1.525, allocations: 370.5 kB / 0.9198 GB, free: 137.7 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002885/1.526, allocations: 145.3 kB / 0.9199 GB, free: 137.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004635/1.526, allocations: 375 kB / 0.9203 GB, free: 137.4 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006957/1.527, allocations: 0.5231 MB / 0.9208 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/1.527, allocations: 1.25 kB / 0.9208 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001039/1.528, allocations: 0.6174 MB / 0.9214 GB, free: 137.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001473/1.528, allocations: 277 kB / 0.9216 GB, free: 136.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.906e-05/1.528, allocations: 5.406 kB / 0.9216 GB, free: 136.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.815e-05/1.528, allocations: 11.05 kB / 0.9217 GB, free: 136.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001167/1.529, allocations: 176.5 kB / 0.9218 GB, free: 136.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004535/1.53, allocations: 0.624 MB / 0.9224 GB, free: 136.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000654/1.531, allocations: 78.75 kB / 0.9225 GB, free: 136.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.188e-05/1.531, allocations: 32.22 kB / 0.9225 GB, free: 136.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/1.531, allocations: 4.953 kB / 0.9225 GB, free: 136.1 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009624/1.532, allocations: 0.5441 MB / 0.9231 GB, free: 136.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/1.532, allocations: 5.5 kB / 0.9231 GB, free: 136.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/1.532, allocations: 7.656 kB / 0.9231 GB, free: 136.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003644/1.532, allocations: 116.9 kB / 0.9232 GB, free: 136.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.455e-05/1.532, allocations: 15.91 kB / 0.9232 GB, free: 136.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004733/1.533, allocations: 65.28 kB / 0.9233 GB, free: 136.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.794e-05/1.533, allocations: 33.47 kB / 0.9233 GB, free: 136.1 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.0004824/1.533, allocations: 306.1 kB / 0.9236 GB, free: 135.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000118/1.533, allocations: 64.05 kB / 0.9237 GB, free: 135.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001486/1.535, allocations: 0.7462 MB / 0.9244 GB, free: 135.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.387e-05/1.535, allocations: 7.828 kB / 0.9244 GB, free: 135.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/1.535, allocations: 3.938 kB / 0.9244 GB, free: 135.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/1.535, allocations: 3.438 kB / 0.9244 GB, free: 135.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008491/1.536, allocations: 0.5238 MB / 0.9249 GB, free: 135.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/1.536, allocations: 0 / 0.9249 GB, free: 135.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006272/1.536, allocations: 125.1 kB / 0.925 GB, free: 135.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/1.536, allocations: 1.641 kB / 0.925 GB, free: 135.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.221e-05/1.536, allocations: 12.66 kB / 0.925 GB, free: 135.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002619/1.537, allocations: 0.5925 MB / 0.9256 GB, free: 134.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/1.537, allocations: 1.094 kB / 0.9256 GB, free: 134.9 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008558/1.537, allocations: 0.535 MB / 0.9261 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002989/1.538, allocations: 208.3 kB / 0.9263 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.12e-05/1.538, allocations: 9.25 kB / 0.9264 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003049/1.538, allocations: 29.33 kB / 0.9264 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.069e-05/1.538, allocations: 27 kB / 0.9264 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.688e-05/1.538, allocations: 18.19 kB / 0.9264 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0005958/1.539, allocations: 411.3 kB / 0.9268 GB, free: 134.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.5e-07/1.539, allocations: 1.859 kB / 0.9268 GB, free: 134.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001966/1.541, allocations: 464.7 kB / 0.9273 GB, free: 134.4 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.001033/1.542, allocations: 469.4 kB / 0.9277 GB, free: 134.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002286/1.544, allocations: 0.8948 MB / 0.9286 GB, free: 134.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.473e-06/1.544, allocations: 8.062 kB / 0.9286 GB, free: 134.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.000873/1.545, allocations: 365.2 kB / 0.9289 GB, free: 134 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001299/1.546, allocations: 280 kB / 0.9292 GB, free: 134 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002157/1.549, allocations: 1.265 MB / 0.9304 GB, free: 133.4 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004126/1.549, allocations: 0.8975 MB / 0.9313 GB, free: 132.7 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0007935/1.55, allocations: 198.6 kB / 0.9315 GB, free: 132.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001567/1.55, allocations: 71.44 kB / 0.9316 GB, free: 132.7 MB / 0.5261 GB Notification: Performance of SimCode: time 5.31e-07/1.55, allocations: 0 / 0.9316 GB, free: 132.7 MB / 0.5261 GB Notification: Performance of Templates: time 0.02526/1.575, allocations: 15.32 MB / 0.9465 GB, free: 131.6 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/jenkins1/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