Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 177.2 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 223.3 MB / 241.4 MB, free: 11.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007884/0.0007889, allocations: 96.58 kB / 292.6 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002869/0.000287, allocations: 8 kB / 352.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1901/0.1904, allocations: 50.39 MB / 402.7 MB, free: 32.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09136/0.2818, allocations: 83.41 MB / 486.2 MB, free: 12.95 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002019/0.2821, allocations: 78.06 kB / 486.2 MB, free: 12.88 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04021/0.3223, allocations: 15.69 MB / 0.4902 GB, free: 13.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3223, allocations: 3.938 kB / 0.4902 GB, free: 13.06 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.41e-05/0.3224, allocations: 16 kB / 0.4902 GB, free: 13.05 MB / 378.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.002012/0.3244, allocations: 1.081 MB / 0.4912 GB, free: 11.9 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.3244, allocations: 8.031 kB / 0.4912 GB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001931/0.3246, allocations: 95.91 kB / 0.4913 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007624/0.3254, allocations: 0.4955 MB / 0.4918 GB, free: 11.26 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001473/0.3256, allocations: 101.3 kB / 0.4919 GB, free: 11.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.228e-05/0.3257, allocations: 56.36 kB / 0.492 GB, free: 11.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.327, allocations: 0.8049 MB / 0.4928 GB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.258e-05/0.327, allocations: 3.938 kB / 0.4928 GB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.083e-05/0.3271, allocations: 27.98 kB / 0.4928 GB, free: 10.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.3271, allocations: 15.98 kB / 0.4928 GB, free: 10.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001235/0.3283, allocations: 0.5426 MB / 0.4933 GB, free: 9.594 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00344/0.3318, allocations: 2.044 MB / 0.4953 GB, free: 7.461 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001225/0.333, allocations: 0.5776 MB / 0.4959 GB, free: 6.875 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005963/0.3336, allocations: 290.4 kB / 0.4962 GB, free: 6.586 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.967e-05/0.3337, allocations: 13.64 kB / 0.4962 GB, free: 6.574 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000738/0.3344, allocations: 355 kB / 0.4965 GB, free: 6.219 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 2.314e-06/0.3345, allocations: 0 / 0.4965 GB, free: 6.219 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.004975/0.3394, allocations: 1.692 MB / 0.4982 GB, free: 4.477 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004105/0.3399, allocations: 0.8271 MB / 0.499 GB, free: 3.453 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008021/0.3407, allocations: 0.5823 MB / 0.4995 GB, free: 2.863 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.208e-05/0.3408, allocations: 41.7 kB / 0.4996 GB, free: 2.816 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002801/0.3411, allocations: 328.8 kB / 0.4999 GB, free: 2.488 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001856/0.3413, allocations: 201.1 kB / 0.5001 GB, free: 2.289 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.714e-05/0.3413, allocations: 8 kB / 0.5001 GB, free: 2.281 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.3415, allocations: 382.8 kB / 0.5005 GB, free: 1.898 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005812/0.3421, allocations: 237.2 kB / 0.5007 GB, free: 1.664 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008175/0.3429, allocations: 0.5412 MB / 0.5012 GB, free: 1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001226/0.3442, allocations: 0.624 MB / 0.5018 GB, free: 344 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.3442, allocations: 0 / 0.5018 GB, free: 344 kB / 378.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.1658/0.51, allocations: 0.9679 MB / 0.5028 GB, free: 95.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.993e-05/0.5101, allocations: 61.17 kB / 0.5028 GB, free: 95.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.5101, allocations: 3.953 kB / 0.5028 GB, free: 95.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000835/0.511, allocations: 227.8 kB / 0.5031 GB, free: 94.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007246/0.5117, allocations: 130.8 kB / 0.5032 GB, free: 94.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00576/0.5175, allocations: 4.248 MB / 0.5073 GB, free: 92.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006884/0.5182, allocations: 101.9 kB / 0.5074 GB, free: 92.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.974e-05/0.5183, allocations: 26.98 kB / 0.5074 GB, free: 92.41 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 () * Number of clocked 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.000351/0.5186, allocations: 212.1 kB / 0.5076 GB, free: 92.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.581e-05/0.5187, allocations: 82.28 kB / 0.5077 GB, free: 92.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001362/0.5189, allocations: 81.33 kB / 0.5078 GB, free: 92.24 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.5189, allocations: 5.406 kB / 0.5078 GB, free: 92.24 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.5189, allocations: 0 / 0.5078 GB, free: 92.24 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002029/0.5209, allocations: 1.128 MB / 0.5089 GB, free: 91.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002251/0.5232, allocations: 1.615 MB / 0.5105 GB, free: 91.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.5232, allocations: 3.375 kB / 0.5105 GB, free: 91.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005697/0.5238, allocations: 118.1 kB / 0.5106 GB, free: 91.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004618/0.5242, allocations: 179.6 kB / 0.5108 GB, free: 91.26 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.215e-05/0.5243, allocations: 10.67 kB / 0.5108 GB, free: 91.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003569/0.5279, allocations: 3.659 MB / 0.5144 GB, free: 88.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.5279, allocations: 10.06 kB / 0.5144 GB, free: 88.63 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001999/0.5299, allocations: 1.121 MB / 0.5155 GB, free: 88.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002326/0.5301, allocations: 208.5 kB / 0.5157 GB, free: 87.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.707e-05/0.5302, allocations: 15.06 kB / 0.5157 GB, free: 87.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00042/0.5307, allocations: 48.94 kB / 0.5157 GB, free: 87.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.5308, allocations: 64.33 kB / 0.5158 GB, free: 87.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.339e-05/0.5308, allocations: 14.94 kB / 0.5158 GB, free: 87.95 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003969/0.5312, allocations: 415.3 kB / 0.5162 GB, free: 87.76 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5312, allocations: 0 / 0.5162 GB, free: 87.76 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007863/0.532, allocations: 270.7 kB / 0.5165 GB, free: 87.72 MB / 378.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 (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.0001841/0.5322, allocations: 138 kB / 0.5166 GB, free: 87.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00167/0.5339, allocations: 1.071 MB / 0.5176 GB, free: 87.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.5339, allocations: 0 / 0.5176 GB, free: 87.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007704/0.5347, allocations: 0.5767 MB / 0.5182 GB, free: 86.69 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008268/0.5355, allocations: 198.7 kB / 0.5184 GB, free: 86.63 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002113/0.5377, allocations: 1.569 MB / 0.5199 GB, free: 85.78 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/0.538, allocations: 0.9261 MB / 0.5208 GB, free: 85.06 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003233/0.5383, allocations: 73.94 kB / 0.5209 GB, free: 85.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.5384, allocations: 57.31 kB / 0.5209 GB, free: 85.04 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5384, allocations: 0 / 0.5209 GB, free: 85.04 MB / 378.7 MB Notification: Performance of Templates: time 0.01843/0.5568, allocations: 14.79 MB / 0.5354 GB, free: 75.05 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches