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.001356/0.001362, allocations: 110 kB / 17.06 MB, free: 6.023 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.001495/0.001495, allocations: 191 kB / 18 MB, free: 5.105 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.381/1.381, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008984/0.0008984, allocations: 35.94 kB / 351.3 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2512, allocations: 49.44 MB / 400.7 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005205/0.2564, allocations: 4.832 MB / 405.5 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002019/0.2585, allocations: 1.355 MB / 406.9 MB, free: 2.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002259/0.2587, allocations: 11.94 kB / 406.9 MB, free: 2.828 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003529/0.2591, allocations: 154.7 kB / 407.1 MB, free: 2.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006027/0.2597, allocations: 345.4 kB / 407.4 MB, free: 2.336 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004087/0.2601, allocations: 215.6 kB / 407.6 MB, free: 2.125 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008805/0.261, allocations: 1.03 MB / 408.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003676/0.2614, allocations: 291.2 kB / 408.9 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003881/0.2618, allocations: 410.6 kB / 409.3 MB, free: 396 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004366/0.2622, allocations: 454.1 kB / 409.8 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001273/0.2624, allocations: 88 kB / 409.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001274/0.2625, allocations: 88 kB / 409.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001528/0.2626, allocations: 195.3 kB / 410.1 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004042/0.2631, allocations: 481.8 kB / 410.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008727/0.2639, allocations: 1.074 MB / 411.7 MB, free: 14.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2639, allocations: 0 / 411.7 MB, free: 14.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.264, allocations: 4 kB / 411.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.264, allocations: 0 / 411.7 MB, free: 14.02 MB / 334.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.001981/0.266, allocations: 1.22 MB / 412.9 MB, free: 12.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.024e-05/0.266, allocations: 8.031 kB / 412.9 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.2662, allocations: 95.91 kB / 413 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007121/0.2669, allocations: 0.5159 MB / 413.5 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001366/0.267, allocations: 101.3 kB / 413.6 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.282e-05/0.2671, allocations: 52.38 kB / 413.7 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/0.2683, allocations: 0.7888 MB / 414.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.2684, allocations: 7.938 kB / 414.5 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.083e-05/0.2684, allocations: 28 kB / 414.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.2684, allocations: 12 kB / 414.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.2696, allocations: 0.4996 MB / 415 MB, free: 10.48 MB / 334.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.003074/0.2727, allocations: 2.15 MB / 417.2 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/0.2739, allocations: 0.5344 MB / 417.7 MB, free: 7.637 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005721/0.2745, allocations: 258.4 kB / 417.9 MB, free: 7.383 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.009e-05/0.2746, allocations: 16.92 kB / 418 MB, free: 7.367 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006788/0.2753, allocations: 327 kB / 418.3 MB, free: 7.039 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 2.124e-06/0.2753, allocations: 0 / 418.3 MB, free: 7.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.004773/0.2801, allocations: 1.485 MB / 419.8 MB, free: 5.504 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003143/0.2804, allocations: 0.8311 MB / 420.6 MB, free: 4.473 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006759/0.2811, allocations: 0.59 MB / 421.2 MB, free: 3.875 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.825e-05/0.2812, allocations: 45.7 kB / 421.2 MB, free: 3.824 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002666/0.2814, allocations: 332.8 kB / 421.6 MB, free: 3.492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.2816, allocations: 193.2 kB / 421.7 MB, free: 3.301 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002102/0.2818, allocations: 126.2 kB / 421.9 MB, free: 3.172 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.282, allocations: 378.8 kB / 422.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005572/0.2825, allocations: 213 kB / 422.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007621/0.2833, allocations: 0.5207 MB / 423 MB, free: 1.941 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001093/0.2844, allocations: 0.5615 MB / 423.5 MB, free: 1.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.2844, allocations: 7.922 kB / 423.5 MB, free: 1.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002135/0.2866, allocations: 0.8974 MB / 424.4 MB, free: 416 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.552e-05/0.2866, allocations: 63.39 kB / 424.5 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.2866, allocations: 0 / 424.5 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000684/0.2873, allocations: 225.4 kB / 424.7 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006107/0.2879, allocations: 119.8 kB / 424.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006555/0.2945, allocations: 4.586 MB / 429.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007155/0.2952, allocations: 83.39 kB / 429.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.094e-05/0.2953, allocations: 27.98 kB / 429.5 MB, free: 11.02 MB / 350.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.0003591/0.2957, allocations: 201.9 kB / 429.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.2958, allocations: 83.16 kB / 429.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001397/0.2959, allocations: 78.84 kB / 429.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.323e-06/0.2959, allocations: 11.94 kB / 429.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.296, allocations: 0 / 429.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002131/0.2981, allocations: 1.046 MB / 430.9 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002959/0.3011, allocations: 1.54 MB / 432.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.3011, allocations: 0 / 432.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005894/0.3017, allocations: 107.8 kB / 432.6 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005366/0.3022, allocations: 177.5 kB / 432.8 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.658e-05/0.3023, allocations: 11.98 kB / 432.8 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00481/0.3071, allocations: 3.924 MB / 436.7 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.3071, allocations: 160 / 436.7 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00222/0.3093, allocations: 1.02 MB / 437.7 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002908/0.3096, allocations: 216 kB / 437.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.262e-05/0.3098, allocations: 16 kB / 437.9 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000562/0.3103, allocations: 48 kB / 438 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/0.3105, allocations: 52.5 kB / 438 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.738e-05/0.3105, allocations: 19.97 kB / 438.1 MB, free: 1.953 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004899/0.311, allocations: 423 kB / 438.5 MB, free: 1.543 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.274e-06/0.311, allocations: 112 / 438.5 MB, free: 1.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007909/0.3118, allocations: 259.5 kB / 438.7 MB, free: 1.289 MB / 350.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.0001569/0.312, allocations: 123.8 kB / 438.8 MB, free: 1.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00193/0.3139, allocations: 1.019 MB / 439.9 MB, free: 92 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.3139, allocations: 4 kB / 439.9 MB, free: 88 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009952/0.3149, allocations: 0.5516 MB / 440.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00082/0.3158, allocations: 215.1 kB / 440.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002383/0.3182, allocations: 1.283 MB / 441.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005289/0.3187, allocations: 0.9121 MB / 442.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002953/0.319, allocations: 85.22 kB / 442.9 MB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.3191, allocations: 55.44 kB / 443 MB, free: 12.91 MB / 366.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3192, allocations: 0 / 443 MB, free: 12.91 MB / 366.1 MB Notification: Performance of Templates: time 0.02548/0.3446, allocations: 16.31 MB / 459.3 MB, free: 12.87 MB / 382.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins/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