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.000983/0.000983, allocations: 202.7 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.235/1.235, allocations: 226.6 MB / 244.7 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006896/0.0006897, allocations: 94.47 kB / 296.7 MB, free: 6.715 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002015/0.0002015, allocations: 4 kB / 356.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1871/0.1873, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.002951/0.1903, allocations: 4.236 MB / 412.3 MB, free: 23.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001547/0.1919, allocations: 1.305 MB / 413.6 MB, free: 22.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002143/0.1921, allocations: 8 kB / 413.6 MB, free: 22.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002295/0.1923, allocations: 99.17 kB / 413.7 MB, free: 22.06 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004524/0.1928, allocations: 301.8 kB / 414 MB, free: 21.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002829/0.1931, allocations: 167.7 kB / 414.1 MB, free: 21.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005647/0.1937, allocations: 0.9312 MB / 415.1 MB, free: 20.67 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002705/0.1939, allocations: 274.8 kB / 415.3 MB, free: 20.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003075/0.1943, allocations: 362.7 kB / 415.7 MB, free: 20.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002794/0.1945, allocations: 398.4 kB / 416.1 MB, free: 19.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.035e-05/0.1946, allocations: 60 kB / 416.2 MB, free: 19.58 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001118/0.1947, allocations: 63.94 kB / 416.2 MB, free: 19.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.417e-05/0.1948, allocations: 155.4 kB / 416.4 MB, free: 19.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000269/0.1951, allocations: 451.8 kB / 416.8 MB, free: 18.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004083/0.1955, allocations: 0.7829 MB / 417.6 MB, free: 18.13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1955, allocations: 0 / 417.6 MB, free: 18.13 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1956, allocations: 0 / 417.6 MB, free: 18.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.1956, allocations: 0 / 417.6 MB, free: 18.13 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.001512/0.1971, allocations: 1.072 MB / 418.7 MB, free: 16.99 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.1971, allocations: 8.031 kB / 418.7 MB, free: 16.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001232/0.1973, allocations: 95.91 kB / 418.8 MB, free: 16.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005154/0.1978, allocations: 0.512 MB / 419.3 MB, free: 16.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001225/0.1979, allocations: 105.3 kB / 419.4 MB, free: 16.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.766e-05/0.198, allocations: 56.31 kB / 419.4 MB, free: 16.17 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.199, allocations: 0.8084 MB / 420.2 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.199, allocations: 7.891 kB / 420.2 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.448e-05/0.1991, allocations: 24 kB / 420.3 MB, free: 15.22 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.1991, allocations: 12 kB / 420.3 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.2002, allocations: 0.527 MB / 420.8 MB, free: 14.69 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.002508/0.2027, allocations: 2.166 MB / 423 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/0.2038, allocations: 0.5565 MB / 423.5 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004952/0.2043, allocations: 282.4 kB / 423.8 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.532e-05/0.2043, allocations: 17.62 kB / 423.8 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006193/0.205, allocations: 331 kB / 424.1 MB, free: 11.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=56): time 2.435e-06/0.205, allocations: 0 / 424.1 MB, free: 11.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.00437/0.2094, allocations: 1.606 MB / 425.8 MB, free: 9.527 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001292/0.2095, allocations: 0.8233 MB / 426.6 MB, free: 8.508 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005183/0.21, allocations: 0.5823 MB / 427.2 MB, free: 7.914 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.154e-05/0.2101, allocations: 41.7 kB / 427.2 MB, free: 7.867 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001664/0.2103, allocations: 336.8 kB / 427.5 MB, free: 7.535 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.2104, allocations: 197.2 kB / 427.7 MB, free: 7.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-05/0.2104, allocations: 12 kB / 427.7 MB, free: 7.328 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.853e-05/0.2105, allocations: 370.8 kB / 428.1 MB, free: 6.957 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004904/0.211, allocations: 229 kB / 428.3 MB, free: 6.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000657/0.2116, allocations: 0.5325 MB / 428.9 MB, free: 6.078 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.2127, allocations: 0.5888 MB / 429.4 MB, free: 5.445 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.2127, allocations: 0 / 429.4 MB, free: 5.445 MB / 298.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001641/0.2143, allocations: 0.8702 MB / 430.3 MB, free: 4.551 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.525e-05/0.2144, allocations: 63.39 kB / 430.4 MB, free: 4.477 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.2144, allocations: 4 kB / 430.4 MB, free: 4.473 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000625/0.215, allocations: 221.5 kB / 430.6 MB, free: 4.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005812/0.2156, allocations: 127.8 kB / 430.7 MB, free: 4.125 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005201/0.2208, allocations: 4.285 MB / 435 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007612/0.2216, allocations: 99.42 kB / 435.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.038e-05/0.2217, allocations: 23.98 kB / 435.1 MB, free: 15.45 MB / 314.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.0003075/0.222, allocations: 201.9 kB / 435.3 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.2221, allocations: 83.06 kB / 435.4 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001287/0.2222, allocations: 74.86 kB / 435.5 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.2222, allocations: 7.938 kB / 435.5 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.2223, allocations: 7.984 kB / 435.5 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002034/0.2243, allocations: 1.105 MB / 436.6 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002615/0.2269, allocations: 1.572 MB / 438.2 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.2269, allocations: 8 kB / 438.2 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005937/0.2275, allocations: 115.8 kB / 438.3 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005397/0.2281, allocations: 173.6 kB / 438.5 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.494e-05/0.2281, allocations: 8 kB / 438.5 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004556/0.2327, allocations: 3.664 MB / 442.1 MB, free: 7.969 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2327, allocations: 0 / 442.1 MB, free: 7.969 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002266/0.235, allocations: 1.078 MB / 443.2 MB, free: 6.863 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002889/0.2353, allocations: 212.1 kB / 443.4 MB, free: 6.637 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.104e-05/0.2354, allocations: 16.28 kB / 443.4 MB, free: 6.621 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005657/0.236, allocations: 52.02 kB / 443.5 MB, free: 6.57 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.2361, allocations: 60.41 kB / 443.5 MB, free: 6.512 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-05/0.2362, allocations: 15.94 kB / 443.6 MB, free: 6.496 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004875/0.2367, allocations: 419.1 kB / 444 MB, free: 6.094 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2367, allocations: 0 / 444 MB, free: 6.094 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007323/0.2374, allocations: 251.7 kB / 444.2 MB, free: 5.848 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.0001483/0.2376, allocations: 119.2 kB / 444.3 MB, free: 5.723 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001995/0.2396, allocations: 1.054 MB / 445.4 MB, free: 4.621 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.2396, allocations: 0.5 kB / 445.4 MB, free: 4.621 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009216/0.2405, allocations: 0.5628 MB / 445.9 MB, free: 4.031 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008547/0.2414, allocations: 194.9 kB / 446.1 MB, free: 3.84 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002349/0.2437, allocations: 1.589 MB / 447.7 MB, free: 2.223 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004204/0.2442, allocations: 0.9198 MB / 448.6 MB, free: 1.277 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001618/0.2443, allocations: 59.42 kB / 448.7 MB, free: 1.219 MB / 314.7 MB Notification: Performance of SimCode: time 3.1e-07/0.2443, allocations: 0 / 448.7 MB, free: 1.219 MB / 314.7 MB Notification: Performance of Templates: time 0.01734/0.2617, allocations: 16.03 MB / 464.7 MB, free: 1.289 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