Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001266/0.001266, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009582/0.0009583, allocations: 90.72 kB / 292.1 MB, free: 5.938 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.073e-05/3.089e-05, allocations: 4 kB / 350.5 MB, free: 2.555 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1137, allocations: 51.48 MB / 402 MB, free: 15.03 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4118/0.5256, allocations: 84.08 MB / 486.1 MB, free: 5.391 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/0.5259, allocations: 73.72 kB / 486.2 MB, free: 5.355 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03946/0.5653, allocations: 15.71 MB / 0.4901 GB, free: 7.348 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.5654, allocations: 0.5625 kB / 0.4901 GB, free: 7.348 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.301e-05/0.5655, allocations: 16 kB / 0.4901 GB, free: 7.332 MB / 362.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.001849/0.5673, allocations: 0.9753 MB / 0.4911 GB, free: 6.305 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.545e-05/0.5674, allocations: 12.03 kB / 0.4911 GB, free: 6.293 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001903/0.5676, allocations: 102.9 kB / 0.4912 GB, free: 6.191 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007415/0.5683, allocations: 471.5 kB / 0.4916 GB, free: 5.688 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000179/0.5685, allocations: 107.2 kB / 0.4917 GB, free: 5.574 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.5686, allocations: 55.61 kB / 0.4918 GB, free: 5.523 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/0.5697, allocations: 0.738 MB / 0.4925 GB, free: 4.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/0.5698, allocations: 3.906 kB / 0.4925 GB, free: 4.676 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.968e-05/0.5698, allocations: 24 kB / 0.4925 GB, free: 4.652 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.433e-05/0.5699, allocations: 16 kB / 0.4926 GB, free: 4.637 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007871/0.5706, allocations: 435.9 kB / 0.493 GB, free: 4.211 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003522/0.5742, allocations: 2.038 MB / 0.495 GB, free: 2.082 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009825/0.5752, allocations: 0.4982 MB / 0.4955 GB, free: 1.566 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003578/0.5755, allocations: 226.5 kB / 0.4957 GB, free: 1.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.756e-05/0.5756, allocations: 13.64 kB / 0.4957 GB, free: 1.328 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005329/0.5762, allocations: 299.1 kB / 0.496 GB, free: 1.027 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 2.705e-06/0.5762, allocations: 4 kB / 0.496 GB, free: 1.023 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.001837/0.578, allocations: 0.7455 MB / 0.4967 GB, free: 268 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003978/0.5784, allocations: 0.8233 MB / 0.4975 GB, free: 15.24 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006549/0.5791, allocations: 0.5073 MB / 0.498 GB, free: 14.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.495e-05/0.5792, allocations: 49.7 kB / 0.498 GB, free: 14.67 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002603/0.5794, allocations: 320.9 kB / 0.4984 GB, free: 14.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001756/0.5796, allocations: 201.1 kB / 0.4985 GB, free: 14.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/0.5797, allocations: 16 kB / 0.4986 GB, free: 14.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.5798, allocations: 374.8 kB / 0.4989 GB, free: 13.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003133/0.5802, allocations: 181.5 kB / 0.4991 GB, free: 13.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005681/0.5807, allocations: 491.7 kB / 0.4996 GB, free: 12.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004112/0.5812, allocations: 282.4 kB / 0.4998 GB, free: 12.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.5812, allocations: 0 / 0.4998 GB, free: 12.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001858/0.583, allocations: 0.8894 MB / 0.5007 GB, free: 11.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.776e-05/0.5831, allocations: 59.41 kB / 0.5008 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.5831, allocations: 4 kB / 0.5008 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007284/0.5839, allocations: 213.6 kB / 0.501 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006679/0.5845, allocations: 127.8 kB / 0.5011 GB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005375/0.5899, allocations: 4.097 MB / 0.5051 GB, free: 7.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007774/0.5907, allocations: 97.94 kB / 0.5052 GB, free: 6.926 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.084e-05/0.5908, allocations: 23.98 kB / 0.5052 GB, free: 6.902 MB / 378.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * 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.0002041/0.591, allocations: 155.3 kB / 0.5054 GB, free: 6.746 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.5911, allocations: 79.06 kB / 0.5054 GB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002219/0.5913, allocations: 86.84 kB / 0.5055 GB, free: 6.578 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.5914, allocations: 8 kB / 0.5055 GB, free: 6.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.5914, allocations: 0 / 0.5055 GB, free: 6.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00162/0.593, allocations: 1.004 MB / 0.5065 GB, free: 5.449 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002415/0.5954, allocations: 1.495 MB / 0.508 GB, free: 3.883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.5954, allocations: 3.938 kB / 0.508 GB, free: 3.879 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006599/0.5961, allocations: 127.8 kB / 0.5081 GB, free: 3.754 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004492/0.5966, allocations: 150.6 kB / 0.5082 GB, free: 3.602 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.501e-05/0.5966, allocations: 12 kB / 0.5082 GB, free: 3.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004061/0.6007, allocations: 3.512 MB / 0.5117 GB, free: 15.81 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.6007, allocations: 8.094 kB / 0.5117 GB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001713/0.6024, allocations: 0.9335 MB / 0.5126 GB, free: 14.84 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003663/0.6028, allocations: 212.1 kB / 0.5128 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.447e-05/0.6029, allocations: 20 kB / 0.5128 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004508/0.6034, allocations: 51.98 kB / 0.5129 GB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/0.6036, allocations: 56.47 kB / 0.5129 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.766e-05/0.6036, allocations: 19.98 kB / 0.5129 GB, free: 14.47 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005655/0.6042, allocations: 407.2 kB / 0.5133 GB, free: 14.08 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6042, allocations: 1.406 kB / 0.5133 GB, free: 14.08 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008536/0.605, allocations: 267.7 kB / 0.5136 GB, free: 13.82 MB / 394.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 40 * 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.0002586/0.6053, allocations: 136 kB / 0.5137 GB, free: 13.67 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001569/0.6069, allocations: 0.9335 MB / 0.5146 GB, free: 12.69 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.6069, allocations: 0 / 0.5146 GB, free: 12.69 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006958/0.6076, allocations: 0.5123 MB / 0.5151 GB, free: 12.15 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007835/0.6084, allocations: 192.5 kB / 0.5153 GB, free: 11.97 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001777/0.6102, allocations: 0.8395 MB / 0.5161 GB, free: 11.12 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005074/0.6107, allocations: 0.9434 MB / 0.517 GB, free: 10.15 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003741/0.6111, allocations: 73.2 kB / 0.5171 GB, free: 10.08 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001511/0.6113, allocations: 59.42 kB / 0.5172 GB, free: 10.02 MB / 394.7 MB Notification: Performance of SimCode: time 1.042e-06/0.6113, allocations: 0 / 0.5172 GB, free: 10.02 MB / 394.7 MB Notification: Performance of Templates: time 0.02557/0.6368, allocations: 14.49 MB / 0.5313 GB, free: 11.84 MB / 410.7 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches