Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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|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_3.2.3_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|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_3.2.3_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.001402/0.001402, allocations: 100.8 kB / 16.4 MB, free: 6.5 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.001263/0.001263, allocations: 192.2 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.568/1.568, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2078/0.2078, allocations: 43.52 MB / 314.1 MB, free: 456 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 59.91 kB / 441.8 MB, free: 5.633 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1225, allocations: 57.79 MB / 499.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW): time 0.003354/0.1259, allocations: 1.791 MB / 0.4897 GB, free: 9.961 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002248/0.1282, allocations: 1.376 MB / 0.491 GB, free: 8.574 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.067e-05/0.1283, allocations: 4 kB / 0.491 GB, free: 8.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002165/0.1286, allocations: 43.75 kB / 0.4911 GB, free: 8.527 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001785/0.1288, allocations: 55.55 kB / 0.4911 GB, free: 8.473 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005917/0.1294, allocations: 247 kB / 0.4913 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001364/0.1295, allocations: 103.5 kB / 0.4914 GB, free: 8.129 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4e-05/0.1296, allocations: 9.109 kB / 0.4914 GB, free: 8.121 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.1297, allocations: 51.7 kB / 0.4915 GB, free: 8.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.397e-05/0.1298, allocations: 43.78 kB / 0.4915 GB, free: 8.027 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.679e-05/0.1298, allocations: 4 kB / 0.4915 GB, free: 8.023 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007613/0.1306, allocations: 0.5068 MB / 0.492 GB, free: 7.516 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.486e-05/0.1306, allocations: 11.92 kB / 0.492 GB, free: 7.504 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.754e-05/0.1307, allocations: 47.67 kB / 0.4921 GB, free: 7.457 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005639/0.1312, allocations: 354.9 kB / 0.4924 GB, free: 7.109 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.1313, allocations: 0 / 0.4924 GB, free: 7.109 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.1313, allocations: 0 / 0.4924 GB, free: 7.109 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.1313, allocations: 3.938 kB / 0.4924 GB, free: 7.105 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.0006614/0.1319, allocations: 446.5 kB / 0.4929 GB, free: 6.621 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.132, allocations: 11.89 kB / 0.4929 GB, free: 6.609 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.632e-05/0.132, allocations: 16.89 kB / 0.4929 GB, free: 6.594 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001149/0.1322, allocations: 180.2 kB / 0.4931 GB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.1322, allocations: 8.375 kB / 0.4931 GB, free: 6.371 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.599e-05/0.1322, allocations: 20.06 kB / 0.4931 GB, free: 6.352 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003081/0.1325, allocations: 142 kB / 0.4932 GB, free: 6.207 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.1326, allocations: 3.984 kB / 0.4932 GB, free: 6.203 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.1326, allocations: 4 kB / 0.4932 GB, free: 6.199 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.1326, allocations: 4 kB / 0.4932 GB, free: 6.195 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003751/0.133, allocations: 135.9 kB / 0.4934 GB, free: 6.062 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008385/0.1338, allocations: 0.5105 MB / 0.4939 GB, free: 5.484 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002664/0.1341, allocations: 106.5 kB / 0.494 GB, free: 5.371 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000135/0.1343, allocations: 52.83 kB / 0.494 GB, free: 5.316 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.1343, allocations: 0 / 0.494 GB, free: 5.316 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.273e-05/0.1343, allocations: 38.55 kB / 0.4941 GB, free: 5.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 9.61e-07/0.1343, allocations: 4 kB / 0.4941 GB, free: 5.266 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004703/0.1348, allocations: 157.5 kB / 0.4942 GB, free: 5.105 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.1349, allocations: 63.34 kB / 0.4943 GB, free: 5.031 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.932e-05/0.1349, allocations: 109.8 kB / 0.4944 GB, free: 4.914 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.916e-05/0.135, allocations: 29.7 kB / 0.4944 GB, free: 4.879 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.206e-05/0.1351, allocations: 115.8 kB / 0.4945 GB, free: 4.762 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.063e-05/0.1351, allocations: 39.67 kB / 0.4945 GB, free: 4.723 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.678e-05/0.1352, allocations: 37.66 kB / 0.4946 GB, free: 4.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1353, allocations: 318.8 kB / 0.4949 GB, free: 4.359 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.1354, allocations: 39.97 kB / 0.4949 GB, free: 4.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001463/0.1356, allocations: 83.64 kB / 0.495 GB, free: 4.223 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002801/0.1359, allocations: 137.4 kB / 0.4951 GB, free: 4.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.1359, allocations: 0 / 0.4951 GB, free: 4.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003903/0.1363, allocations: 169.5 kB / 0.4953 GB, free: 3.898 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.1363, allocations: 8 kB / 0.4953 GB, free: 3.891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.1363, allocations: 0 / 0.4953 GB, free: 3.891 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.1363, allocations: 4 kB / 0.4953 GB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00022/0.1366, allocations: 43.97 kB / 0.4954 GB, free: 3.844 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003931/0.137, allocations: 0.5976 MB / 0.4959 GB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001079/0.1371, allocations: 16 kB / 0.496 GB, free: 3.207 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.699e-05/0.1371, allocations: 16 kB / 0.496 GB, free: 3.191 MB / 382.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 9.748e-05/0.1372, allocations: 122 kB / 0.4961 GB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.38e-05/0.1373, allocations: 7.953 kB / 0.4961 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004302/0.1377, allocations: 169.8 kB / 0.4963 GB, free: 2.875 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.239e-06/0.1377, allocations: 4 kB / 0.4963 GB, free: 2.871 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.1377, allocations: 3.938 kB / 0.4963 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.1377, allocations: 0 / 0.4963 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000269/0.138, allocations: 209.6 kB / 0.4965 GB, free: 2.613 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.138, allocations: 0 / 0.4965 GB, free: 2.613 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002024/0.1382, allocations: 47.95 kB / 0.4965 GB, free: 2.566 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1382, allocations: 0 / 0.4965 GB, free: 2.566 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.1383, allocations: 0 / 0.4965 GB, free: 2.566 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003068/0.1386, allocations: 0.6053 MB / 0.4971 GB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.1386, allocations: 0 / 0.4971 GB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004769/0.1391, allocations: 291.5 kB / 0.4974 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.07e-05/0.1392, allocations: 97 kB / 0.4975 GB, free: 1.523 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.43e-05/0.1392, allocations: 11.98 kB / 0.4975 GB, free: 1.512 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/0.1393, allocations: 7.938 kB / 0.4975 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.432e-05/0.1394, allocations: 11.98 kB / 0.4975 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.005e-05/0.1394, allocations: 4 kB / 0.4975 GB, free: 1.488 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.581e-05/0.1394, allocations: 95.2 kB / 0.4976 GB, free: 1.395 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1394, allocations: 0 / 0.4976 GB, free: 1.395 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003565/0.1398, allocations: 75.67 kB / 0.4977 GB, free: 1.32 MB / 382.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.0003267/0.1401, allocations: 167 kB / 0.4978 GB, free: 1.148 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004086/0.1405, allocations: 123.9 kB / 0.4979 GB, free: 1.027 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1406, allocations: 0 / 0.4979 GB, free: 1.027 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001984/0.1408, allocations: 71.91 kB / 0.498 GB, free: 0.957 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003118/0.1411, allocations: 14.8 kB / 0.498 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006935/0.1418, allocations: 319.3 kB / 0.4983 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.1421, allocations: 0.7041 MB / 0.499 GB, free: 15.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.921e-05/0.1422, allocations: 16.78 kB / 0.499 GB, free: 15.86 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.607e-05/0.1422, allocations: 23.42 kB / 0.4991 GB, free: 15.84 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1422, allocations: 3.938 kB / 0.4991 GB, free: 15.83 MB / 398.1 MB Notification: Performance of Templates: time 0.005577/0.1478, allocations: 2.256 MB / 0.5013 GB, free: 13.59 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/Dissipation/Verifications/PressureLoss/Orifice/dp_suddenChange_DPMFLOW/dp_suddenChange_DPMFLOW.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches