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.001122/0.001122, allocations: 108.2 kB / 18.39 MB, free: 4.629 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.001167/0.001167, allocations: 182.9 kB / 19.33 MB, free: 3.699 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.378/1.378, allocations: 222.9 MB / 243 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.2226/0.2226, allocations: 44.18 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 67.73 kB / 409.9 MB, free: 26.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1324, allocations: 60.84 MB / 470.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW): time 0.003268/0.1357, allocations: 1.786 MB / 472.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.1377, allocations: 1.328 MB / 473.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.827e-05/0.1378, allocations: 4 kB / 473.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001888/0.138, allocations: 43.7 kB / 473.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001559/0.1382, allocations: 55.61 kB / 473.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005107/0.1387, allocations: 243 kB / 474.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001335/0.1388, allocations: 103.4 kB / 474.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.953e-05/0.1389, allocations: 12.97 kB / 474.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001372/0.139, allocations: 43.8 kB / 474.3 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.42e-05/0.1391, allocations: 59.69 kB / 474.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.772e-05/0.1392, allocations: 4 kB / 474.4 MB, free: 9.914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007052/0.1399, allocations: 0.499 MB / 474.9 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.201e-05/0.1399, allocations: 15.91 kB / 474.9 MB, free: 9.398 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.699e-05/0.14, allocations: 47.67 kB / 475 MB, free: 9.352 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004835/0.1405, allocations: 355 kB / 475.3 MB, free: 9.004 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.1405, allocations: 0 / 475.3 MB, free: 9.004 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.838e-05/0.1405, allocations: 0 / 475.3 MB, free: 9.004 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.1405, allocations: 0 / 475.3 MB, free: 9.004 MB / 350.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.0006274/0.1411, allocations: 439.2 kB / 475.7 MB, free: 8.527 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/0.1412, allocations: 8.031 kB / 475.7 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.396e-05/0.1413, allocations: 12.84 kB / 475.8 MB, free: 8.508 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001585/0.1414, allocations: 180.2 kB / 475.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.1415, allocations: 8.375 kB / 475.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.328e-05/0.1415, allocations: 16.12 kB / 476 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003196/0.1418, allocations: 137.5 kB / 476.1 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.1419, allocations: 0 / 476.1 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/0.1419, allocations: 16 kB / 476.1 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.1419, allocations: 0 / 476.1 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003355/0.1422, allocations: 135.9 kB / 476.2 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009621/0.1432, allocations: 0.5104 MB / 476.8 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002706/0.1435, allocations: 114.5 kB / 476.9 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001313/0.1436, allocations: 48.83 kB / 476.9 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.021e-05/0.1437, allocations: 3.984 kB / 476.9 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/0.1437, allocations: 38.5 kB / 477 MB, free: 7.176 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.323e-06/0.1437, allocations: 0 / 477 MB, free: 7.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004809/0.1442, allocations: 161.5 kB / 477.1 MB, free: 7.012 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.345e-05/0.1442, allocations: 55.41 kB / 477.2 MB, free: 6.945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.1444, allocations: 117.8 kB / 477.3 MB, free: 6.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.1444, allocations: 33.64 kB / 477.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.346e-05/0.1445, allocations: 107.8 kB / 477.4 MB, free: 6.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.938e-05/0.1445, allocations: 35.45 kB / 477.5 MB, free: 6.637 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.304e-05/0.1446, allocations: 37.62 kB / 477.5 MB, free: 6.594 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.1447, allocations: 322.8 kB / 477.8 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.1448, allocations: 39.91 kB / 477.8 MB, free: 6.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001442/0.145, allocations: 87.02 kB / 477.9 MB, free: 6.129 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002498/0.1452, allocations: 129 kB / 478.1 MB, free: 5.984 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.1453, allocations: 0 / 478.1 MB, free: 5.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000331/0.1456, allocations: 153.9 kB / 478.2 MB, free: 5.828 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.1456, allocations: 8 kB / 478.2 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.1456, allocations: 0 / 478.2 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/0.1457, allocations: 4 kB / 478.2 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002148/0.1459, allocations: 47.91 kB / 478.3 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003922/0.1463, allocations: 0.6016 MB / 478.9 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.1464, allocations: 7.984 kB / 478.9 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.1464, allocations: 8 kB / 478.9 MB, free: 5.129 MB / 350.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.0001031/0.1465, allocations: 121.8 kB / 479 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.285e-05/0.1466, allocations: 11.84 kB / 479 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004276/0.147, allocations: 182.2 kB / 479.2 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.147, allocations: 0 / 479.2 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.147, allocations: 7.922 kB / 479.2 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.147, allocations: 0 / 479.2 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002462/0.1473, allocations: 209.6 kB / 479.4 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1473, allocations: 0 / 479.4 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002087/0.1475, allocations: 47.97 kB / 479.4 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.1475, allocations: 0 / 479.4 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.528e-05/0.1475, allocations: 4 kB / 479.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002899/0.1478, allocations: 0.5859 MB / 480 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1478, allocations: 0 / 480 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004543/0.1483, allocations: 298.7 kB / 480.3 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.93e-05/0.1484, allocations: 100.9 kB / 480.4 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.154e-05/0.1484, allocations: 4 kB / 480.4 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.1486, allocations: 11.98 kB / 480.4 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.661e-05/0.1486, allocations: 7.984 kB / 480.5 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.159e-05/0.1486, allocations: 8 kB / 480.5 MB, free: 3.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.641e-05/0.1487, allocations: 95.33 kB / 480.6 MB, free: 3.336 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1487, allocations: 0 / 480.6 MB, free: 3.336 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003721/0.1491, allocations: 71.84 kB / 480.6 MB, free: 3.266 MB / 350.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.0003225/0.1494, allocations: 175.1 kB / 480.8 MB, free: 3.086 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003876/0.1498, allocations: 116.2 kB / 480.9 MB, free: 2.973 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1498, allocations: 0 / 480.9 MB, free: 2.973 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001949/0.15, allocations: 75.89 kB / 481 MB, free: 2.898 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003297/0.1504, allocations: 18.09 kB / 481 MB, free: 2.883 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006486/0.151, allocations: 315.6 kB / 481.3 MB, free: 2.551 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002414/0.1513, allocations: 0.704 MB / 482 MB, free: 1.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.899e-05/0.1513, allocations: 16.55 kB / 482 MB, free: 1.805 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.111e-05/0.1514, allocations: 23.42 kB / 482.1 MB, free: 1.781 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1514, allocations: 0 / 482.1 MB, free: 1.781 MB / 350.1 MB Notification: Performance of Templates: time 0.005442/0.1568, allocations: 2.248 MB / 484.3 MB, free: 15.57 MB / 366.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 -s cvode -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/jenkins1/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/jenkins1/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