Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|frac_A1toA2|A_1|A_2|C_1|C_2|eta|rho|input_mdot|input_dp|M_FLOW|DP|d_hyd|velocity|Re|DP_plot|zeta_TOT|input_DP.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW") translateModel(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|frac_A1toA2|A_1|A_2|C_1|C_2|eta|rho|input_mdot|input_dp|M_FLOW|DP|d_hyd|velocity|Re|DP_plot|zeta_TOT|input_DP.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 113.4 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001462/0.001461, allocations: 188.1 kB / 18.71 MB, free: 4.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2376/0.2376, allocations: 44.19 MB / 336.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 59.91 kB / 470.6 MB, free: 13.13 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4162/0.4176, allocations: 60.83 MB / 0.5189 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW): time 0.004202/0.4219, allocations: 1.793 MB / 0.5207 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002427/0.4243, allocations: 1.344 MB / 0.522 GB, free: 1.453 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.865e-05/0.4245, allocations: 1.062 kB / 0.522 GB, free: 1.453 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002387/0.4247, allocations: 37.41 kB / 0.522 GB, free: 1.438 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001833/0.425, allocations: 53.16 kB / 0.5221 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000631/0.4256, allocations: 246.8 kB / 0.5223 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001969/0.4258, allocations: 106.6 kB / 0.5224 GB, free: 1.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.811e-05/0.4259, allocations: 15 kB / 0.5224 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001839/0.4261, allocations: 40.53 kB / 0.5225 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001277/0.4262, allocations: 54.5 kB / 0.5225 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.214e-05/0.4262, allocations: 4.375 kB / 0.5225 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001046/0.4273, allocations: 0.496 MB / 0.523 GB, free: 1.027 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.049e-05/0.4273, allocations: 22.08 kB / 0.523 GB, free: 1.012 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.107e-05/0.4274, allocations: 42.67 kB / 0.5231 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008198/0.4283, allocations: 356.3 kB / 0.5234 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.606e-06/0.4283, allocations: 0 / 0.5234 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.586e-06/0.4283, allocations: 0 / 0.5234 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.4283, allocations: 1.156 kB / 0.5234 GB, free: 0.8633 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006166/0.4289, allocations: 436 kB / 0.5238 GB, free: 460 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.429, allocations: 17.09 kB / 0.5238 GB, free: 452 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.496e-05/0.429, allocations: 11.84 kB / 0.5239 GB, free: 448 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001326/0.4292, allocations: 176.7 kB / 0.524 GB, free: 236 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.846e-05/0.4292, allocations: 8.656 kB / 0.524 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.051e-05/0.4292, allocations: 16.98 kB / 0.5241 GB, free: 224 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003454/0.4296, allocations: 135.8 kB / 0.5242 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.4296, allocations: 0 / 0.5242 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.805e-05/0.4296, allocations: 4.703 kB / 0.5242 GB, free: 156 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.4297, allocations: 3.75 kB / 0.5242 GB, free: 156 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003257/0.43, allocations: 141.3 kB / 0.5243 GB, free: 112 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009959/0.431, allocations: 0.512 MB / 0.5248 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000274/0.4313, allocations: 104.8 kB / 0.5249 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001362/0.4314, allocations: 50.86 kB / 0.525 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.4315, allocations: 1.281 kB / 0.525 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.789e-05/0.4315, allocations: 36.52 kB / 0.525 GB, free: 15.54 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 2.555e-06/0.4315, allocations: 0 / 0.525 GB, free: 15.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004971/0.432, allocations: 168.4 kB / 0.5252 GB, free: 15.47 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.839e-05/0.4321, allocations: 53.58 kB / 0.5252 GB, free: 15.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/0.4322, allocations: 114.7 kB / 0.5253 GB, free: 15.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.4322, allocations: 31.08 kB / 0.5254 GB, free: 15.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.744e-05/0.4323, allocations: 112.5 kB / 0.5255 GB, free: 15.16 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.127e-05/0.4323, allocations: 35.97 kB / 0.5255 GB, free: 15.13 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.779e-05/0.4324, allocations: 36.38 kB / 0.5255 GB, free: 15.11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.4325, allocations: 322.5 kB / 0.5258 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/0.4326, allocations: 38.53 kB / 0.5259 GB, free: 14.78 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.4328, allocations: 83.88 kB / 0.526 GB, free: 14.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002634/0.433, allocations: 130.8 kB / 0.5261 GB, free: 14.63 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.4331, allocations: 1.375 kB / 0.5261 GB, free: 14.63 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000347/0.4334, allocations: 159.9 kB / 0.5262 GB, free: 14.55 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.4334, allocations: 5.5 kB / 0.5262 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.4334, allocations: 1.891 kB / 0.5262 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.4335, allocations: 2.75 kB / 0.5262 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002162/0.4337, allocations: 48.95 kB / 0.5263 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000369/0.4341, allocations: 0.5903 MB / 0.5269 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.4342, allocations: 17.45 kB / 0.5269 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.832e-05/0.4342, allocations: 10.17 kB / 0.5269 GB, free: 13.94 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001102/0.4343, allocations: 118.5 kB / 0.527 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.407e-05/0.4344, allocations: 7.938 kB / 0.527 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004311/0.4348, allocations: 176.1 kB / 0.5272 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.4348, allocations: 1 kB / 0.5272 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.4348, allocations: 7.922 kB / 0.5272 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.4348, allocations: 1.125 kB / 0.5272 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002704/0.4351, allocations: 221.8 kB / 0.5274 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.4351, allocations: 0 / 0.5274 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001975/0.4353, allocations: 46.44 kB / 0.5275 GB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.4353, allocations: 5.344 kB / 0.5275 GB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.4354, allocations: 1.312 kB / 0.5275 GB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002943/0.4357, allocations: 0.587 MB / 0.528 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4357, allocations: 5.438 kB / 0.528 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004885/0.4362, allocations: 295.7 kB / 0.5283 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.777e-05/0.4362, allocations: 97.44 kB / 0.5284 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.201e-05/0.4363, allocations: 5.062 kB / 0.5284 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.4364, allocations: 7.547 kB / 0.5284 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.014e-05/0.4364, allocations: 14.05 kB / 0.5284 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.4365, allocations: 3.906 kB / 0.5284 GB, free: 12.51 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.319e-05/0.4365, allocations: 90.73 kB / 0.5285 GB, free: 12.43 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4365, allocations: 0 / 0.5285 GB, free: 12.43 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000415/0.4369, allocations: 75.94 kB / 0.5286 GB, free: 12.4 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (frac_A1toA2) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000334/0.4373, allocations: 176.7 kB / 0.5288 GB, free: 12.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004253/0.4377, allocations: 126.9 kB / 0.5289 GB, free: 12.22 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4377, allocations: 5.281 kB / 0.5289 GB, free: 12.21 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002046/0.4379, allocations: 75.11 kB / 0.529 GB, free: 12.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002788/0.4382, allocations: 12.06 kB / 0.529 GB, free: 12.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007444/0.439, allocations: 302 kB / 0.5293 GB, free: 11.97 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003136/0.4393, allocations: 0.7021 MB / 0.53 GB, free: 11.26 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.559e-05/0.4394, allocations: 16.8 kB / 0.53 GB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.308e-05/0.4395, allocations: 19.69 kB / 0.53 GB, free: 11.24 MB / 398.1 MB Notification: Performance of SimCode: time 4.018e-06/0.4395, allocations: 0 / 0.53 GB, free: 11.24 MB / 398.1 MB Notification: Performance of Templates: time 0.00601/0.4455, allocations: 2.312 MB / 0.5322 GB, free: 10.07 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/Dissipation/Verifications/PressureLoss/Orifice/dp_suddenChange_DPMFLOW/dp_suddenChange_DPMFLOW.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches