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: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Orifice_dp_suddenChange_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Orifice_dp_suddenChange_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009648/0.0009648, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001402/0.001402, allocations: 192 kB / 18.56 MB, free: 4.434 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.298/1.298, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.2115/0.2115, allocations: 44.19 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 63.95 kB / 408.6 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1227, allocations: 60.83 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW): time 0.003608/0.1263, allocations: 1.794 MB / 471.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002187/0.1285, allocations: 1.328 MB / 472.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.1287, allocations: 4 kB / 472.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002421/0.129, allocations: 47.75 kB / 472.6 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001988/0.1292, allocations: 55.61 kB / 472.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006132/0.1298, allocations: 231.1 kB / 472.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001783/0.13, allocations: 111.4 kB / 472.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.046e-05/0.13, allocations: 12.98 kB / 473 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.1302, allocations: 43.78 kB / 473 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.725e-05/0.1303, allocations: 51.77 kB / 473 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.916e-05/0.1303, allocations: 4 kB / 473.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007306/0.131, allocations: 0.4951 MB / 473.5 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.541e-05/0.1311, allocations: 15.88 kB / 473.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.653e-05/0.1311, allocations: 39.73 kB / 473.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005544/0.1317, allocations: 359.3 kB / 474 MB, free: 9.656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.1317, allocations: 3.938 kB / 474 MB, free: 9.652 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1317, allocations: 0 / 474 MB, free: 9.652 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.1317, allocations: 0 / 474 MB, free: 9.652 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.0005881/0.1323, allocations: 435.2 kB / 474.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.1324, allocations: 15.95 kB / 474.4 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.223e-05/0.1325, allocations: 42.75 kB / 474.4 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.874e-05/0.1325, allocations: 16.75 kB / 474.5 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.1327, allocations: 188.2 kB / 474.6 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.1327, allocations: 12.38 kB / 474.7 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.227e-05/0.1327, allocations: 15.94 kB / 474.7 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003165/0.1331, allocations: 137.6 kB / 474.8 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.1331, allocations: 0 / 474.8 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.458e-05/0.1331, allocations: 0 / 474.8 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.1331, allocations: 4 kB / 474.8 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003271/0.1334, allocations: 139.8 kB / 474.9 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009681/0.1344, allocations: 0.5221 MB / 475.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002878/0.1347, allocations: 102.7 kB / 475.6 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001375/0.1349, allocations: 48.83 kB / 475.6 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3e-05/0.1349, allocations: 0 / 475.6 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.1349, allocations: 38.5 kB / 475.7 MB, free: 7.766 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 9.72e-07/0.135, allocations: 0 / 475.7 MB, free: 7.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005105/0.1355, allocations: 161.5 kB / 475.8 MB, free: 7.602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.024e-05/0.1355, allocations: 55.41 kB / 475.9 MB, free: 7.535 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.974e-05/0.1356, allocations: 117.8 kB / 476 MB, free: 7.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.1357, allocations: 25.7 kB / 476 MB, free: 7.379 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.379e-05/0.1357, allocations: 111.7 kB / 476.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.626e-05/0.1358, allocations: 43.39 kB / 476.2 MB, free: 7.223 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.417e-05/0.1358, allocations: 33.7 kB / 476.2 MB, free: 7.184 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.1359, allocations: 326.8 kB / 476.5 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.1361, allocations: 35.97 kB / 476.5 MB, free: 6.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001509/0.1362, allocations: 91.8 kB / 476.6 MB, free: 6.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002676/0.1365, allocations: 121 kB / 476.7 MB, free: 6.578 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.1365, allocations: 0 / 476.7 MB, free: 6.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003482/0.1369, allocations: 161.4 kB / 476.9 MB, free: 6.414 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.1369, allocations: 8 kB / 476.9 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1369, allocations: 0 / 476.9 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.1369, allocations: 4.375 kB / 476.9 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002135/0.1371, allocations: 47.91 kB / 477 MB, free: 6.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003176/0.1375, allocations: 0.5901 MB / 477.6 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001136/0.1376, allocations: 19.89 kB / 477.6 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.1376, allocations: 11.94 kB / 477.6 MB, free: 5.711 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 9.389e-05/0.1377, allocations: 125.7 kB / 477.7 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.384e-05/0.1378, allocations: 7.938 kB / 477.7 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000447/0.1382, allocations: 170 kB / 477.9 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.688e-06/0.1382, allocations: 3.984 kB / 477.9 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.1382, allocations: 3.938 kB / 477.9 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.1383, allocations: 0 / 477.9 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002656/0.1385, allocations: 209.6 kB / 478.1 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.1385, allocations: 0 / 478.1 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002104/0.1388, allocations: 51.91 kB / 478.1 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.1388, allocations: 0 / 478.1 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.1388, allocations: 8 kB / 478.2 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002953/0.1391, allocations: 0.5859 MB / 478.7 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1391, allocations: 0 / 478.7 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004959/0.1396, allocations: 302.4 kB / 479 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.634e-05/0.1397, allocations: 101 kB / 479.1 MB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/0.1397, allocations: 0 / 479.1 MB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001163/0.1399, allocations: 11.98 kB / 479.1 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.201e-05/0.1399, allocations: 7.984 kB / 479.2 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.1399, allocations: 4 kB / 479.2 MB, free: 4.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.662e-05/0.14, allocations: 95.33 kB / 479.3 MB, free: 3.926 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.14, allocations: 0 / 479.3 MB, free: 3.926 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003885/0.1404, allocations: 75.83 kB / 479.3 MB, free: 3.852 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.0009317/0.1413, allocations: 0.8918 MB / 480.2 MB, free: 2.934 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004019/0.1417, allocations: 132.7 kB / 480.3 MB, free: 2.805 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.1417, allocations: 0 / 480.3 MB, free: 2.805 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002244/0.142, allocations: 71.89 kB / 480.4 MB, free: 2.734 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.1423, allocations: 17.61 kB / 480.4 MB, free: 2.719 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002005/0.1443, allocations: 1.716 MB / 482.1 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002408/0.1446, allocations: 0.7045 MB / 482.9 MB, free: 168 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.001e-05/0.1447, allocations: 20.48 kB / 482.9 MB, free: 148 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.94e-05/0.1447, allocations: 35.42 kB / 482.9 MB, free: 112 kB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1448, allocations: 0 / 482.9 MB, free: 112 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04863/0.1934, allocations: 3.716 MB / 486.6 MB, free: 12.6 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.2, allocations: 15.75 kB / 486.6 MB, free: 12.59 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Orifice.dp_suddenChange_DPMFLOW_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Orifice_dp_suddenChange_DPMFLOW_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Orifice_dp_suddenChange_DPMFLOW.fmu > 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