Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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) 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(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 98.88 kB / 17.58 MB, free: 5.418 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.001182/0.001182, allocations: 191.9 kB / 18.51 MB, free: 4.5 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.427/1.427, allocations: 205.1 MB / 224.4 MB, free: 12.29 MB / 190.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.001249/0.001249, allocations: 59.86 kB / 280.6 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09807/0.09933, allocations: 46.63 MB / 327.3 MB, free: 4.488 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006798/0.1062, allocations: 4.834 MB / 332.1 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003157/0.1094, allocations: 1.391 MB / 333.5 MB, free: 14.22 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008159/0.1102, allocations: 11.94 kB / 333.5 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000778/0.1111, allocations: 154.7 kB / 333.7 MB, free: 14.05 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001484/0.1126, allocations: 341.3 kB / 334 MB, free: 13.72 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007179/0.1133, allocations: 215.6 kB / 334.2 MB, free: 13.51 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001576/0.1149, allocations: 1.035 MB / 335.2 MB, free: 12.47 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005322/0.1155, allocations: 285.9 kB / 335.5 MB, free: 12.18 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008174/0.1163, allocations: 410.6 kB / 335.9 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008815/0.1172, allocations: 450.1 kB / 336.4 MB, free: 11.33 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002803/0.1175, allocations: 88 kB / 336.4 MB, free: 11.25 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003408/0.1178, allocations: 92 kB / 336.5 MB, free: 11.16 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002482/0.1181, allocations: 191.3 kB / 336.7 MB, free: 10.97 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008727/0.119, allocations: 477.8 kB / 337.2 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001084/0.1201, allocations: 1.055 MB / 338.2 MB, free: 9.441 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1201, allocations: 0 / 338.2 MB, free: 9.441 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1201, allocations: 0 / 338.2 MB, free: 9.441 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.354e-05/0.1201, allocations: 4 kB / 338.2 MB, free: 9.438 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002743/0.1229, allocations: 1.22 MB / 339.5 MB, free: 8.148 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.1229, allocations: 16.03 kB / 339.5 MB, free: 8.133 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002583/0.1232, allocations: 103.8 kB / 339.6 MB, free: 8.031 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008597/0.1241, allocations: 0.4965 MB / 340.1 MB, free: 7.496 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001634/0.1243, allocations: 105.3 kB / 340.2 MB, free: 7.379 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.883e-05/0.1244, allocations: 52.38 kB / 340.2 MB, free: 7.328 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001376/0.1257, allocations: 0.8005 MB / 341 MB, free: 6.426 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.065e-05/0.1258, allocations: 3.906 kB / 341 MB, free: 6.422 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.875e-05/0.1259, allocations: 27.98 kB / 341.1 MB, free: 6.395 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.1259, allocations: 12 kB / 341.1 MB, free: 6.383 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/0.1271, allocations: 0.4997 MB / 341.6 MB, free: 5.879 MB / 286.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003256/0.1304, allocations: 2.162 MB / 343.7 MB, free: 3.582 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.1317, allocations: 0.5292 MB / 344.3 MB, free: 3.043 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005834/0.1323, allocations: 254.4 kB / 344.5 MB, free: 2.793 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.931e-05/0.1323, allocations: 17.58 kB / 344.5 MB, free: 2.777 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007785/0.1331, allocations: 327 kB / 344.9 MB, free: 2.449 MB / 286.1 MB Notification: Performance of pre-optimization done (n=56): time 4.238e-06/0.1331, allocations: 3.984 kB / 344.9 MB, free: 2.445 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.004887/0.138, allocations: 1.489 MB / 346.3 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004193/0.1384, allocations: 0.8233 MB / 347.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00074/0.1392, allocations: 0.5824 MB / 347.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.479e-05/0.1393, allocations: 49.7 kB / 347.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003878/0.1397, allocations: 332.7 kB / 348.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001922/0.1399, allocations: 189.3 kB / 348.3 MB, free: 14.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003002/0.1402, allocations: 130.2 kB / 348.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002464/0.1404, allocations: 378.8 kB / 348.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005737/0.141, allocations: 209 kB / 349 MB, free: 14.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000835/0.1419, allocations: 0.5208 MB / 349.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001148/0.143, allocations: 0.5576 MB / 350.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.143, allocations: 4 kB / 350.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002214/0.1453, allocations: 0.9012 MB / 351 MB, free: 11.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.207e-05/0.1453, allocations: 63.41 kB / 351.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.1453, allocations: 4 kB / 351.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007391/0.1461, allocations: 221.5 kB / 351.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006364/0.1467, allocations: 115.9 kB / 351.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006641/0.1534, allocations: 4.592 MB / 356 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008496/0.1543, allocations: 91.39 kB / 356.1 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.304e-05/0.1543, allocations: 23.98 kB / 356.1 MB, free: 6.426 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 (oneWayValve.backward,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(9,3), (1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0004874/0.1548, allocations: 209.8 kB / 356.3 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002084/0.1551, allocations: 79.16 kB / 356.4 MB, free: 6.133 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001915/0.1553, allocations: 74.86 kB / 356.5 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.854e-06/0.1553, allocations: 11.92 kB / 356.5 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1553, allocations: 0 / 356.5 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002084/0.1574, allocations: 1.05 MB / 357.5 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002935/0.1603, allocations: 1.529 MB / 359 MB, free: 3.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.1603, allocations: 0 / 359 MB, free: 3.285 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006019/0.1609, allocations: 111.8 kB / 359.2 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005312/0.1615, allocations: 173.5 kB / 359.3 MB, free: 3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.463e-05/0.1615, allocations: 15.98 kB / 359.3 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005046/0.1666, allocations: 3.947 MB / 363.3 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.1666, allocations: 192 / 363.3 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002415/0.169, allocations: 1.027 MB / 364.3 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004223/0.1695, allocations: 215.9 kB / 364.5 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001992/0.1697, allocations: 24.11 kB / 364.5 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000668/0.1704, allocations: 43.89 kB / 364.6 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001531/0.1705, allocations: 56.48 kB / 364.6 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.31e-05/0.1706, allocations: 20.23 kB / 364.7 MB, free: 13.34 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005589/0.1711, allocations: 419.1 kB / 365.1 MB, free: 12.93 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1711, allocations: 3.938 kB / 365.1 MB, free: 12.93 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009283/0.1721, allocations: 243.8 kB / 365.3 MB, free: 12.69 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,3), (1,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001812/0.1723, allocations: 123.1 kB / 365.4 MB, free: 12.56 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002341/0.1746, allocations: 1.046 MB / 366.5 MB, free: 11.46 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.1746, allocations: 4 kB / 366.5 MB, free: 11.46 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009687/0.1756, allocations: 0.5433 MB / 367 MB, free: 10.89 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001001/0.1766, allocations: 208.1 kB / 367.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002691/0.1793, allocations: 1.304 MB / 368.5 MB, free: 9.359 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004991/0.1798, allocations: 0.9121 MB / 369.4 MB, free: 8.422 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004094/0.1803, allocations: 89.2 kB / 369.5 MB, free: 8.336 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001282/0.1804, allocations: 63.36 kB / 369.6 MB, free: 8.273 MB / 318.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1804, allocations: 0 / 369.6 MB, free: 8.273 MB / 318.1 MB Notification: Performance of Templates: time 0.1867/0.3671, allocations: 16.14 MB / 385.7 MB, free: 51.65 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches