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.001665/0.001665, allocations: 106.4 kB / 17.15 MB, free: 6.305 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.001835/0.001835, allocations: 198 kB / 18.07 MB, free: 5.41 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.457/1.457, allocations: 205.1 MB / 223.9 MB, free: 12.38 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.001186/0.001186, allocations: 43.94 kB / 280 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1142, allocations: 46.63 MB / 326.6 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005485/0.1197, allocations: 4.848 MB / 331.4 MB, free: 16 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002995/0.1227, allocations: 1.391 MB / 332.8 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003138/0.1231, allocations: 4 kB / 332.8 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004208/0.1235, allocations: 119.2 kB / 333 MB, free: 14.49 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007771/0.1243, allocations: 313.8 kB / 333.3 MB, free: 14.18 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005282/0.1249, allocations: 187.8 kB / 333.4 MB, free: 14 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009175/0.1258, allocations: 0.9877 MB / 334.4 MB, free: 13.01 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003634/0.1262, allocations: 261.9 kB / 334.7 MB, free: 12.73 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004191/0.1266, allocations: 378.6 kB / 335.1 MB, free: 12.36 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003842/0.127, allocations: 430.1 kB / 335.5 MB, free: 11.94 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001113/0.1271, allocations: 64 kB / 335.5 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001382/0.1273, allocations: 64 kB / 335.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001589/0.1274, allocations: 175.3 kB / 335.8 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003954/0.1278, allocations: 445.8 kB / 336.2 MB, free: 11.21 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008225/0.1286, allocations: 1.036 MB / 337.2 MB, free: 10.17 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1287, allocations: 4 kB / 337.2 MB, free: 10.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1287, allocations: 0 / 337.2 MB, free: 10.16 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.1287, allocations: 0 / 337.2 MB, free: 10.16 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.002226/0.1309, allocations: 1.224 MB / 338.5 MB, free: 8.875 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.131, allocations: 8.031 kB / 338.5 MB, free: 8.867 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001821/0.1312, allocations: 107.8 kB / 338.6 MB, free: 8.762 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007884/0.132, allocations: 0.5004 MB / 339.1 MB, free: 8.219 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000184/0.1322, allocations: 101.3 kB / 339.2 MB, free: 8.105 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.1323, allocations: 56.36 kB / 339.2 MB, free: 8.051 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/0.1339, allocations: 0.7966 MB / 340 MB, free: 7.148 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.944e-05/0.134, allocations: 3.906 kB / 340 MB, free: 7.145 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.184e-05/0.1341, allocations: 32 kB / 340.1 MB, free: 7.113 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.186e-05/0.1341, allocations: 16 kB / 340.1 MB, free: 7.098 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001268/0.1354, allocations: 0.5034 MB / 340.6 MB, free: 6.598 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.003622/0.139, allocations: 2.15 MB / 342.7 MB, free: 4.309 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/0.1403, allocations: 0.533 MB / 343.3 MB, free: 3.766 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005663/0.1408, allocations: 262.4 kB / 343.5 MB, free: 3.508 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.941e-05/0.1409, allocations: 17.64 kB / 343.5 MB, free: 3.492 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007943/0.1417, allocations: 319 kB / 343.9 MB, free: 3.168 MB / 286.1 MB Notification: Performance of pre-optimization done (n=56): time 2.775e-06/0.1417, allocations: 4 kB / 343.9 MB, free: 3.164 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.005035/0.1468, allocations: 1.489 MB / 345.4 MB, free: 1.625 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003934/0.1472, allocations: 0.8233 MB / 346.2 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006896/0.1479, allocations: 0.5863 MB / 346.8 MB, free: 8 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.508e-05/0.148, allocations: 41.7 kB / 346.8 MB, free: 15.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002749/0.1482, allocations: 336.7 kB / 347.1 MB, free: 15.63 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001642/0.1484, allocations: 185.3 kB / 347.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002073/0.1486, allocations: 134.2 kB / 347.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002154/0.1489, allocations: 378.8 kB / 347.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005713/0.1494, allocations: 209 kB / 348 MB, free: 14.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007839/0.1502, allocations: 0.513 MB / 348.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001206/0.1515, allocations: 0.5731 MB / 349.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.1515, allocations: 0 / 349.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002345/0.1538, allocations: 0.9012 MB / 350 MB, free: 12.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.393e-05/0.1539, allocations: 59.39 kB / 350.1 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.1539, allocations: 4 kB / 350.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007935/0.1547, allocations: 229.5 kB / 350.3 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006375/0.1554, allocations: 119.8 kB / 350.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006386/0.1618, allocations: 4.19 MB / 354.6 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009188/0.1627, allocations: 79.48 kB / 354.7 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.262e-05/0.1628, allocations: 23.98 kB / 354.7 MB, free: 7.562 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.0003919/0.1632, allocations: 221.9 kB / 354.9 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000113/0.1633, allocations: 79.16 kB / 355 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001388/0.1634, allocations: 82.91 kB / 355.1 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.1635, allocations: 7.938 kB / 355.1 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.1635, allocations: 0 / 355.1 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002152/0.1656, allocations: 1.046 MB / 356.1 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002642/0.1683, allocations: 1.541 MB / 357.7 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.1683, allocations: 0 / 357.7 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006059/0.1689, allocations: 103.9 kB / 357.8 MB, free: 4.297 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005491/0.1695, allocations: 169.6 kB / 357.9 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.706e-05/0.1695, allocations: 15.94 kB / 357.9 MB, free: 4.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00454/0.1741, allocations: 3.603 MB / 361.6 MB, free: 240 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1741, allocations: 4.125 kB / 361.6 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002304/0.1764, allocations: 1.027 MB / 362.6 MB, free: 15.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003334/0.1767, allocations: 219.9 kB / 362.8 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.1769, allocations: 16 kB / 362.8 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005833/0.1774, allocations: 52.02 kB / 362.9 MB, free: 14.88 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.1776, allocations: 48.48 kB / 362.9 MB, free: 14.83 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.566e-05/0.1776, allocations: 19.98 kB / 362.9 MB, free: 14.81 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004604/0.1781, allocations: 415.1 kB / 363.3 MB, free: 14.41 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1781, allocations: 0 / 363.3 MB, free: 14.41 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008046/0.1789, allocations: 247.8 kB / 363.6 MB, free: 14.17 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.0001903/0.1791, allocations: 123.1 kB / 363.7 MB, free: 14.04 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002146/0.1813, allocations: 1.007 MB / 364.7 MB, free: 12.98 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.1813, allocations: 0 / 364.7 MB, free: 12.98 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009952/0.1823, allocations: 0.5438 MB / 365.3 MB, free: 12.41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009492/0.1833, allocations: 203.2 kB / 365.4 MB, free: 12.21 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002686/0.186, allocations: 1.549 MB / 367 MB, free: 10.65 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000467/0.1864, allocations: 0.916 MB / 367.9 MB, free: 9.707 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003742/0.1868, allocations: 89.2 kB / 368 MB, free: 9.621 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001268/0.187, allocations: 59.42 kB / 368.1 MB, free: 9.562 MB / 318.1 MB Notification: Performance of SimCode: time 1.302e-06/0.187, allocations: 0 / 368.1 MB, free: 9.562 MB / 318.1 MB Notification: Performance of Templates: time 0.1962/0.3832, allocations: 15.02 MB / 383.1 MB, free: 50.92 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","../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches