Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001892/0.001892, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002242/0.002242, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.322/2.322, allocations: 227.4 MB / 246.9 MB, free: 9.059 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3836/0.3836, allocations: 46.11 MB / 344.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002251/0.002252, allocations: 77.88 kB / 417.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1841/0.1864, allocations: 62.45 MB / 480 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW): time 0.004178/0.1907, allocations: 1.866 MB / 481.8 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00246/0.1932, allocations: 1.418 MB / 483.2 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.509e-05/0.1932, allocations: 8 kB / 483.3 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002696/0.1935, allocations: 31.81 kB / 483.3 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001825/0.1937, allocations: 47.69 kB / 483.3 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000525/0.1943, allocations: 215 kB / 483.5 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001353/0.1944, allocations: 103.5 kB / 483.6 MB, free: 2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.63e-05/0.1945, allocations: 5.125 kB / 483.6 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002156/0.1947, allocations: 47.72 kB / 483.7 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.57e-05/0.1948, allocations: 51.7 kB / 483.7 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.957e-05/0.1948, allocations: 4 kB / 483.7 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008291/0.1957, allocations: 0.5029 MB / 484.3 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.017e-05/0.1957, allocations: 15.92 kB / 484.3 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.367e-05/0.1958, allocations: 55.66 kB / 484.3 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004008/0.1962, allocations: 219.8 kB / 484.5 MB, free: 1.105 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.744e-06/0.1962, allocations: 0 / 484.5 MB, free: 1.105 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1962, allocations: 0 / 484.5 MB, free: 1.105 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.1962, allocations: 0 / 484.5 MB, free: 1.105 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.0007229/0.197, allocations: 439.2 kB / 485 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/0.197, allocations: 12.88 kB / 485 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.652e-05/0.1971, allocations: 8.844 kB / 485 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002656/0.1973, allocations: 180.1 kB / 485.2 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.178e-05/0.1974, allocations: 12.38 kB / 485.2 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.822e-05/0.1974, allocations: 24.06 kB / 485.2 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003557/0.1978, allocations: 137.6 kB / 485.3 MB, free: 224 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.1978, allocations: 3.938 kB / 485.3 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.951e-05/0.1978, allocations: 11.98 kB / 485.3 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.1979, allocations: 4 kB / 485.4 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003465/0.1982, allocations: 131.9 kB / 485.5 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001153/0.1994, allocations: 0.5144 MB / 486 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002887/0.1997, allocations: 98.59 kB / 486.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001438/0.1998, allocations: 52.77 kB / 486.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.836e-05/0.1999, allocations: 15.92 kB / 486.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.886e-05/0.1999, allocations: 30.56 kB / 486.2 MB, free: 15.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.393e-06/0.1999, allocations: 0 / 486.2 MB, free: 15.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005781/0.2005, allocations: 165.5 kB / 486.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.107e-05/0.2006, allocations: 51.41 kB / 486.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.2007, allocations: 113.8 kB / 486.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.2007, allocations: 25.7 kB / 486.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002153/0.2009, allocations: 111.8 kB / 486.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.075e-05/0.201, allocations: 43.39 kB / 486.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.419e-05/0.2011, allocations: 37.61 kB / 486.7 MB, free: 14.69 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002217/0.2013, allocations: 326.8 kB / 487 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.2014, allocations: 39.97 kB / 487.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001543/0.2016, allocations: 73.12 kB / 487.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002731/0.2019, allocations: 133.4 kB / 487.3 MB, free: 14.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.2019, allocations: 0 / 487.3 MB, free: 14.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003612/0.2022, allocations: 161.4 kB / 487.4 MB, free: 13.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.2023, allocations: 4 kB / 487.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.2023, allocations: 0 / 487.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.2023, allocations: 7.984 kB / 487.5 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002291/0.2025, allocations: 47.91 kB / 487.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004593/0.203, allocations: 0.5977 MB / 488.1 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001071/0.2031, allocations: 12.03 kB / 488.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.414e-05/0.2032, allocations: 4 kB / 488.1 MB, free: 13.22 MB / 366.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.0001167/0.2033, allocations: 125.7 kB / 488.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.335e-05/0.2033, allocations: 7.906 kB / 488.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004445/0.2038, allocations: 174.3 kB / 488.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.2038, allocations: 0 / 488.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.2038, allocations: 3.938 kB / 488.4 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.2038, allocations: 7.984 kB / 488.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003351/0.2042, allocations: 213.5 kB / 488.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2042, allocations: 0 / 488.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002048/0.2044, allocations: 39.98 kB / 488.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.2044, allocations: 4 kB / 488.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.2044, allocations: 7.984 kB / 488.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004534/0.2049, allocations: 0.5859 MB / 489.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2049, allocations: 0 / 489.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005465/0.2054, allocations: 295.4 kB / 489.6 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.101e-05/0.2055, allocations: 96.97 kB / 489.7 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.614e-05/0.2056, allocations: 4 kB / 489.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.2057, allocations: 11.92 kB / 489.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.69e-05/0.2058, allocations: 15.98 kB / 489.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.185e-06/0.2058, allocations: 0 / 489.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.291e-05/0.2058, allocations: 95.2 kB / 489.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2058, allocations: 4.062 kB / 489.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004203/0.2063, allocations: 75.84 kB / 489.9 MB, free: 11.36 MB / 366.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.0004004/0.2067, allocations: 179 kB / 490 MB, free: 11.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005482/0.2072, allocations: 127.9 kB / 490.2 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2072, allocations: 0 / 490.2 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002006/0.2075, allocations: 71.89 kB / 490.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003969/0.2079, allocations: 19.62 kB / 490.2 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007754/0.2086, allocations: 388 kB / 490.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003738/0.209, allocations: 0.7043 MB / 491.3 MB, free: 9.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.099e-05/0.2091, allocations: 15.44 kB / 491.3 MB, free: 9.805 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2091, allocations: 0 / 491.3 MB, free: 9.805 MB / 366.1 MB Notification: Performance of Templates: time 0.00549/0.2146, allocations: 2.584 MB / 493.9 MB, free: 7.227 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches