Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001578/0.001578, allocations: 197.2 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.217/1.217, allocations: 226.6 MB / 244.3 MB, free: 8.293 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000739/0.000739, allocations: 96.95 kB / 296.4 MB, free: 6.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001888/0.0001888, allocations: 4 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1714/0.1716, allocations: 51.28 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.002927/0.1746, allocations: 4.236 MB / 411.7 MB, free: 23.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001313/0.1759, allocations: 1.303 MB / 413 MB, free: 22.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001884/0.1761, allocations: 12 kB / 413 MB, free: 22.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002079/0.1763, allocations: 103.2 kB / 413.1 MB, free: 22.19 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003991/0.1768, allocations: 297.8 kB / 413.4 MB, free: 21.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002547/0.177, allocations: 155.8 kB / 413.6 MB, free: 21.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005097/0.1775, allocations: 0.906 MB / 414.5 MB, free: 20.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002506/0.1778, allocations: 257.3 kB / 414.7 MB, free: 20.56 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002842/0.1781, allocations: 362.7 kB / 415.1 MB, free: 20.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002816/0.1784, allocations: 406.3 kB / 415.5 MB, free: 19.81 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.159e-05/0.1785, allocations: 56 kB / 415.5 MB, free: 19.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001132/0.1786, allocations: 60 kB / 415.6 MB, free: 19.7 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.147e-05/0.1787, allocations: 155.4 kB / 415.8 MB, free: 19.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001069/0.1788, allocations: 189.3 kB / 415.9 MB, free: 19.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004047/0.1792, allocations: 0.7839 MB / 416.7 MB, free: 18.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1792, allocations: 0 / 416.7 MB, free: 18.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1792, allocations: 0 / 416.7 MB, free: 18.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.1792, allocations: 0 / 416.7 MB, free: 18.57 MB / 298.7 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.001495/0.1807, allocations: 1.088 MB / 417.8 MB, free: 17.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.915e-05/0.1808, allocations: 12.02 kB / 417.8 MB, free: 17.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/0.1809, allocations: 94.97 kB / 417.9 MB, free: 17.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005017/0.1814, allocations: 0.4917 MB / 418.4 MB, free: 16.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001159/0.1815, allocations: 100.7 kB / 418.5 MB, free: 16.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.493e-05/0.1816, allocations: 55.98 kB / 418.6 MB, free: 16.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/0.1827, allocations: 0.8043 MB / 419.4 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.1827, allocations: 3.938 kB / 419.4 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.449e-05/0.1827, allocations: 28 kB / 419.4 MB, free: 15.67 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.1828, allocations: 12 kB / 419.4 MB, free: 15.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001027/0.1838, allocations: 0.527 MB / 419.9 MB, free: 15.13 MB / 298.7 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.002433/0.1862, allocations: 2.166 MB / 422.1 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.1873, allocations: 0.5577 MB / 422.7 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004968/0.1878, allocations: 278.4 kB / 422.9 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.914e-05/0.1879, allocations: 16.62 kB / 422.9 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006336/0.1885, allocations: 339 kB / 423.3 MB, free: 11.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=56): time 2.514e-06/0.1885, allocations: 0 / 423.3 MB, free: 11.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.004465/0.193, allocations: 1.583 MB / 424.9 MB, free: 9.988 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/0.1932, allocations: 0.8272 MB / 425.7 MB, free: 8.965 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004898/0.1937, allocations: 0.5823 MB / 426.3 MB, free: 8.371 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.318e-05/0.1937, allocations: 41.7 kB / 426.3 MB, free: 8.324 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.1939, allocations: 344.7 kB / 426.6 MB, free: 7.984 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.877e-05/0.194, allocations: 189.2 kB / 426.8 MB, free: 7.797 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.912e-05/0.194, allocations: 8 kB / 426.8 MB, free: 7.789 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.93e-05/0.1941, allocations: 386.7 kB / 427.2 MB, free: 7.402 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004832/0.1946, allocations: 225 kB / 427.4 MB, free: 7.184 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006223/0.1952, allocations: 0.5325 MB / 428 MB, free: 6.527 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005206/0.1958, allocations: 325.3 kB / 428.3 MB, free: 6.195 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.1958, allocations: 0 / 428.3 MB, free: 6.195 MB / 298.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001518/0.1973, allocations: 0.8624 MB / 429.1 MB, free: 5.312 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.18e-05/0.1973, allocations: 67.39 kB / 429.2 MB, free: 5.234 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.1973, allocations: 0 / 429.2 MB, free: 5.234 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006019/0.198, allocations: 226.7 kB / 429.4 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005648/0.1985, allocations: 123.8 kB / 429.6 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00494/0.2035, allocations: 4.306 MB / 433.9 MB, free: 320 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006766/0.2042, allocations: 83.48 kB / 433.9 MB, free: 236 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.064e-05/0.2042, allocations: 31.94 kB / 434 MB, free: 204 kB / 298.7 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 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,oneWayValve.backward) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {9 3,1 11} Notification: Performance of prepare postOptimizeDAE: time 0.0002713/0.2045, allocations: 212.7 kB / 434.2 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.726e-05/0.2046, allocations: 75.16 kB / 434.3 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000117/0.2047, allocations: 78.86 kB / 434.3 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.2047, allocations: 4 kB / 434.3 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.2047, allocations: 0 / 434.3 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001997/0.2067, allocations: 1.105 MB / 435.4 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002507/0.2093, allocations: 1.568 MB / 437 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.2093, allocations: 0 / 437 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000579/0.2099, allocations: 111.9 kB / 437.1 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005354/0.2104, allocations: 189.5 kB / 437.3 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.1e-05/0.2105, allocations: 12 kB / 437.3 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004737/0.2152, allocations: 3.658 MB / 441 MB, free: 8.723 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.2152, allocations: 0 / 441 MB, free: 8.723 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002856/0.2181, allocations: 1.078 MB / 442.1 MB, free: 7.621 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000328/0.2185, allocations: 212 kB / 442.3 MB, free: 7.395 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001088/0.2186, allocations: 20 kB / 442.3 MB, free: 7.375 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007233/0.2193, allocations: 47.95 kB / 442.3 MB, free: 7.328 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.2195, allocations: 60.52 kB / 442.4 MB, free: 7.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.475e-05/0.2195, allocations: 16 kB / 442.4 MB, free: 7.254 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000528/0.22, allocations: 415.1 kB / 442.8 MB, free: 6.855 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2201, allocations: 0 / 442.8 MB, free: 6.855 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008265/0.2209, allocations: 251.7 kB / 443.1 MB, free: 6.609 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 3,1 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001689/0.2211, allocations: 115.7 kB / 443.2 MB, free: 6.488 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002302/0.2234, allocations: 1.058 MB / 444.2 MB, free: 5.379 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.2234, allocations: 4 kB / 444.2 MB, free: 5.375 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008795/0.2243, allocations: 0.5517 MB / 444.8 MB, free: 4.801 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000816/0.2251, allocations: 204.6 kB / 445 MB, free: 4.602 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002271/0.2274, allocations: 1.59 MB / 446.6 MB, free: 2.98 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004126/0.2278, allocations: 0.9238 MB / 447.5 MB, free: 2.031 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.228, allocations: 59.42 kB / 447.5 MB, free: 1.973 MB / 314.7 MB Notification: Performance of SimCode: time 3.2e-07/0.228, allocations: 0 / 447.5 MB, free: 1.973 MB / 314.7 MB Notification: Performance of Templates: time 0.0165/0.2445, allocations: 16.04 MB / 463.6 MB, free: 2.035 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches