Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.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) 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(Modelica.Media.Examples.SimpleLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater") translateModel(Modelica.Media.Examples.SimpleLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 110 kB / 17.16 MB, free: 6.082 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.001454/0.001455, allocations: 194.9 kB / 18.08 MB, free: 5.285 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.488/1.488, allocations: 222.9 MB / 241.8 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.001211, allocations: 47.11 kB / 300.6 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1255, allocations: 49.44 MB / 350 MB, free: 4.879 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.00698/0.1325, allocations: 4.502 MB / 354.5 MB, free: 348 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002409/0.1349, allocations: 1.822 MB / 356.4 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.1351, allocations: 0 / 356.4 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002966/0.1354, allocations: 35.81 kB / 356.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000378/0.1358, allocations: 115.4 kB / 356.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006546/0.1365, allocations: 231.7 kB / 356.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003737/0.1369, allocations: 366.8 kB / 357.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.231e-05/0.1369, allocations: 13.12 kB / 357.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002441/0.1372, allocations: 115.5 kB / 357.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.1373, allocations: 87.67 kB / 357.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.031e-05/0.1374, allocations: 4 kB / 357.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002638/0.1376, allocations: 99.86 kB / 357.4 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.617e-05/0.1377, allocations: 39.88 kB / 357.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.1378, allocations: 79.59 kB / 357.5 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002539/0.1381, allocations: 148 kB / 357.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1381, allocations: 0 / 357.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.1381, allocations: 0 / 357.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.1381, allocations: 0 / 357.7 MB, free: 13.21 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001019/0.1392, allocations: 499.3 kB / 358.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.536e-05/0.1392, allocations: 11.97 kB / 358.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000183/0.1394, allocations: 16.84 kB / 358.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002283/0.1396, allocations: 204.1 kB / 358.4 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.1397, allocations: 12.66 kB / 358.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.601e-05/0.1397, allocations: 20.31 kB / 358.4 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004448/0.1402, allocations: 225.6 kB / 358.6 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.1402, allocations: 3.938 kB / 358.6 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.912e-05/0.1402, allocations: 8 kB / 358.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.697e-06/0.1402, allocations: 4 kB / 358.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003582/0.1406, allocations: 151.8 kB / 358.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001373/0.142, allocations: 0.9362 MB / 359.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000401/0.1424, allocations: 158.8 kB / 359.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001404/0.1426, allocations: 48.83 kB / 359.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006616/0.1432, allocations: 0.5148 MB / 360.5 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/0.1433, allocations: 30.56 kB / 360.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.493e-06/0.1433, allocations: 0 / 360.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.002738/0.146, allocations: 0.7623 MB / 361.2 MB, free: 9.309 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.1461, allocations: 59.41 kB / 361.3 MB, free: 9.238 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000156/0.1462, allocations: 151.9 kB / 361.5 MB, free: 9.082 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.023e-05/0.1463, allocations: 25.7 kB / 361.5 MB, free: 9.051 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.1464, allocations: 147.8 kB / 361.6 MB, free: 8.902 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.689e-05/0.1465, allocations: 70.95 kB / 361.7 MB, free: 8.832 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.1466, allocations: 65.59 kB / 361.8 MB, free: 8.762 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1467, allocations: 322.8 kB / 362.1 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002634/0.147, allocations: 91.88 kB / 362.2 MB, free: 8.348 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003479/0.1474, allocations: 190 kB / 362.3 MB, free: 8.113 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006161/0.148, allocations: 299.1 kB / 362.6 MB, free: 7.773 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.148, allocations: 0 / 362.6 MB, free: 7.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007924/0.1488, allocations: 321 kB / 363 MB, free: 7.453 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.1488, allocations: 8 kB / 363 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.1489, allocations: 4.469 kB / 363 MB, free: 7.441 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.192e-05/0.1489, allocations: 4 kB / 363 MB, free: 7.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004099/0.1493, allocations: 79.89 kB / 363 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.728e-05/0.1493, allocations: 15.92 kB / 363.1 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002396/0.1496, allocations: 12 kB / 363.1 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.851e-05/0.1496, allocations: 19.98 kB / 363.1 MB, free: 7.312 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001469/0.1498, allocations: 137.7 kB / 363.2 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.073e-05/0.1498, allocations: 19.81 kB / 363.2 MB, free: 7.148 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006983/0.1506, allocations: 245.4 kB / 363.5 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.1506, allocations: 0 / 363.5 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.1506, allocations: 4 kB / 363.5 MB, free: 6.902 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.1506, allocations: 3.938 kB / 363.5 MB, free: 6.898 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/0.152, allocations: 0.5953 MB / 364.1 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.152, allocations: 0 / 364.1 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003027/0.1523, allocations: 47.97 kB / 364.1 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.86e-06/0.1523, allocations: 0 / 364.1 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.716e-05/0.1524, allocations: 11.98 kB / 364.2 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.113e-06/0.1524, allocations: 11.88 kB / 364.2 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1524, allocations: 0 / 364.2 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009041/0.1533, allocations: 408.3 kB / 364.6 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.027e-05/0.1534, allocations: 92.94 kB / 364.7 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.033e-05/0.1534, allocations: 7.938 kB / 364.7 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002519/0.1537, allocations: 15.98 kB / 364.7 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.753e-05/0.1537, allocations: 15.92 kB / 364.7 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.587e-05/0.1537, allocations: 11.98 kB / 364.7 MB, free: 5.578 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.725e-05/0.1538, allocations: 106.1 kB / 364.8 MB, free: 5.477 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1538, allocations: 4.062 kB / 364.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004073/0.1543, allocations: 64 kB / 364.9 MB, free: 5.41 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (medium.T) * 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 (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003559/0.1546, allocations: 135.1 kB / 365 MB, free: 5.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006604/0.1553, allocations: 219.6 kB / 365.2 MB, free: 5.055 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.1553, allocations: 3.938 kB / 365.2 MB, free: 5.051 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002485/0.1556, allocations: 101 kB / 365.3 MB, free: 4.953 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004159/0.156, allocations: 35.2 kB / 365.4 MB, free: 4.922 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.1573, allocations: 0.5457 MB / 365.9 MB, free: 4.328 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.1576, allocations: 0.7129 MB / 366.6 MB, free: 3.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.1577, allocations: 27.42 kB / 366.6 MB, free: 3.562 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1577, allocations: 0 / 366.6 MB, free: 3.562 MB / 302.1 MB Notification: Performance of Templates: time 0.005781/0.1635, allocations: 2.63 MB / 369.3 MB, free: 0.9297 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.sim & ./Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SimpleLiquidWater/SimpleLiquidWater.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches