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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001627/0.001627, allocations: 190.9 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 222.9 MB / 242.3 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 48.64 kB / 302.1 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09827/0.09943, allocations: 49.45 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.01041/0.1099, allocations: 4.828 MB / 356.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003932/0.1139, allocations: 1.347 MB / 357.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005641/0.1145, allocations: 7.938 kB / 357.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006844/0.1152, allocations: 154.7 kB / 357.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001678/0.1169, allocations: 333.4 kB / 358.2 MB, free: 13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009509/0.1179, allocations: 219.6 kB / 358.4 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00211/0.12, allocations: 1.025 MB / 359.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000691/0.1207, allocations: 301.8 kB / 359.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008563/0.1216, allocations: 406.6 kB / 360.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001005/0.1226, allocations: 446.1 kB / 360.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000256/0.1229, allocations: 88 kB / 360.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003083/0.1233, allocations: 88 kB / 360.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002813/0.1235, allocations: 195.3 kB / 360.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008328/0.1244, allocations: 481.8 kB / 361.4 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001549/0.126, allocations: 1.067 MB / 362.4 MB, free: 8.703 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.126, allocations: 0 / 362.4 MB, free: 8.703 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.126, allocations: 4 kB / 362.4 MB, free: 8.699 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.05e-05/0.1261, allocations: 0 / 362.4 MB, free: 8.699 MB / 302.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.004031/0.1301, allocations: 1.236 MB / 363.7 MB, free: 7.395 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.751e-05/0.1302, allocations: 8.031 kB / 363.7 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003272/0.1305, allocations: 99.84 kB / 363.8 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001373/0.1319, allocations: 0.5198 MB / 364.3 MB, free: 6.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002448/0.1322, allocations: 101.3 kB / 364.4 MB, free: 6.621 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000153/0.1323, allocations: 56.31 kB / 364.4 MB, free: 6.566 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002311/0.1347, allocations: 0.7927 MB / 365.2 MB, free: 5.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.631e-05/0.1347, allocations: 4 kB / 365.2 MB, free: 5.664 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001014/0.1348, allocations: 24 kB / 365.3 MB, free: 5.641 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.351e-05/0.1349, allocations: 12 kB / 365.3 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002315/0.1372, allocations: 0.5035 MB / 365.8 MB, free: 5.125 MB / 302.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.005816/0.143, allocations: 2.142 MB / 367.9 MB, free: 2.844 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002383/0.1454, allocations: 0.5341 MB / 368.5 MB, free: 2.297 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00111/0.1466, allocations: 270.3 kB / 368.7 MB, free: 2.031 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.033e-05/0.1467, allocations: 13.64 kB / 368.7 MB, free: 2.016 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001325/0.148, allocations: 323 kB / 369 MB, free: 1.691 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 3.476e-06/0.148, allocations: 0 / 369 MB, free: 1.691 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.009252/0.1573, allocations: 1.481 MB / 370.5 MB, free: 164 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1453/0.3026, allocations: 0.8255 MB / 371.4 MB, free: 25.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009438/0.3036, allocations: 0.5882 MB / 371.9 MB, free: 24.89 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000151/0.3037, allocations: 39.38 kB / 372 MB, free: 24.86 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002171/0.304, allocations: 335.9 kB / 372.3 MB, free: 24.78 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/0.3041, allocations: 190.6 kB / 372.5 MB, free: 24.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002132/0.3043, allocations: 126.5 kB / 372.6 MB, free: 24.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.653e-05/0.3044, allocations: 378.9 kB / 373 MB, free: 24.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000586/0.305, allocations: 210 kB / 373.2 MB, free: 24.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007347/0.3058, allocations: 0.5277 MB / 373.7 MB, free: 24.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.3068, allocations: 0.557 MB / 374.3 MB, free: 23.74 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.3069, allocations: 1.094 kB / 374.3 MB, free: 23.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002132/0.309, allocations: 0.9034 MB / 375.2 MB, free: 23.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.434e-05/0.309, allocations: 64.38 kB / 375.2 MB, free: 23.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/0.3091, allocations: 4.016 kB / 375.3 MB, free: 23.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006797/0.3097, allocations: 227.4 kB / 375.5 MB, free: 23.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005983/0.3103, allocations: 113.2 kB / 375.6 MB, free: 23.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005411/0.3158, allocations: 4.596 MB / 380.2 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000749/0.3165, allocations: 81 kB / 380.3 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.972e-05/0.3166, allocations: 27.2 kB / 380.3 MB, free: 19.52 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.0002788/0.3169, allocations: 208.2 kB / 380.5 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.317, allocations: 76.27 kB / 380.6 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001329/0.3171, allocations: 85.94 kB / 380.6 MB, free: 19.26 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.3171, allocations: 6.312 kB / 380.7 MB, free: 19.26 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.3172, allocations: 3.938 kB / 380.7 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001837/0.319, allocations: 1.05 MB / 381.7 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002484/0.3215, allocations: 1.535 MB / 383.2 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.3215, allocations: 0 / 383.2 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006024/0.3221, allocations: 107.5 kB / 383.3 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005175/0.3226, allocations: 172.6 kB / 383.5 MB, free: 17.65 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.809e-05/0.3227, allocations: 18.12 kB / 383.5 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004302/0.327, allocations: 3.92 MB / 387.5 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.327, allocations: 1.156 kB / 387.5 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002301/0.3293, allocations: 1.026 MB / 388.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003712/0.3297, allocations: 214 kB / 388.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001621/0.3299, allocations: 27.2 kB / 388.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006246/0.3305, allocations: 42.17 kB / 388.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.3307, allocations: 49.22 kB / 388.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.791e-05/0.3307, allocations: 15.69 kB / 388.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006014/0.3313, allocations: 419.7 kB / 389.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3314, allocations: 3.938 kB / 389.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009352/0.3323, allocations: 255.8 kB / 389.5 MB, free: 13.32 MB / 302.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.0001788/0.3325, allocations: 125 kB / 389.6 MB, free: 13.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002128/0.3346, allocations: 1.019 MB / 390.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.3346, allocations: 2.25 kB / 390.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009769/0.3356, allocations: 0.5467 MB / 391.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009857/0.3366, allocations: 211.6 kB / 391.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002821/0.3395, allocations: 1.294 MB / 392.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004087/0.3399, allocations: 0.9166 MB / 393.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004127/0.3403, allocations: 89.11 kB / 393.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001484/0.3405, allocations: 51.91 kB / 393.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3405, allocations: 0 / 393.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of Templates: time 0.0229/0.3634, allocations: 16.16 MB / 409.9 MB, free: 14.12 MB / 318.1 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 -s gbode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches