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.00135/0.00135, allocations: 109.6 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.00153/0.00153, 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.345/1.345, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001778/0.001778, allocations: 47.94 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2545, allocations: 49.43 MB / 400.7 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005329/0.2599, allocations: 4.829 MB / 405.5 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002156/0.262, allocations: 1.355 MB / 406.9 MB, free: 2.824 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000244/0.2623, allocations: 8 kB / 406.9 MB, free: 2.816 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003544/0.2626, allocations: 150.7 kB / 407.1 MB, free: 2.668 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006023/0.2633, allocations: 357.3 kB / 407.4 MB, free: 2.316 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004211/0.2637, allocations: 211.6 kB / 407.6 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001102/0.2648, allocations: 1.021 MB / 408.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004689/0.2653, allocations: 291.2 kB / 408.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005227/0.2658, allocations: 414.5 kB / 409.3 MB, free: 384 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005305/0.2664, allocations: 442.2 kB / 409.8 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001357/0.2665, allocations: 91.94 kB / 409.8 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001391/0.2667, allocations: 92 kB / 409.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001561/0.2668, allocations: 199.3 kB / 410.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004138/0.2673, allocations: 481.8 kB / 410.6 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009625/0.2682, allocations: 1.074 MB / 411.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2682, allocations: 0 / 411.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.2683, allocations: 4 kB / 411.7 MB, free: 14.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.2683, allocations: 0 / 411.7 MB, free: 14.01 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.002213/0.2705, allocations: 1.209 MB / 412.9 MB, free: 12.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.2705, allocations: 16.02 kB / 412.9 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000173/0.2707, allocations: 99.91 kB / 413 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007526/0.2715, allocations: 0.5159 MB / 413.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001475/0.2716, allocations: 101.3 kB / 413.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.441e-05/0.2717, allocations: 48.38 kB / 413.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001284/0.273, allocations: 0.8004 MB / 414.5 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.2731, allocations: 0 / 414.5 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.352e-05/0.2731, allocations: 31.98 kB / 414.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.516e-05/0.2732, allocations: 15.98 kB / 414.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001214/0.2744, allocations: 0.4997 MB / 415 MB, free: 10.46 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.003199/0.2776, allocations: 2.146 MB / 417.2 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001268/0.2789, allocations: 0.5266 MB / 417.7 MB, free: 7.629 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006286/0.2795, allocations: 262.4 kB / 417.9 MB, free: 7.371 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.609e-05/0.2796, allocations: 16.88 kB / 418 MB, free: 7.355 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007996/0.2804, allocations: 323 kB / 418.3 MB, free: 7.031 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 4.057e-06/0.2804, allocations: 3.984 kB / 418.3 MB, free: 7.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.005132/0.2855, allocations: 1.493 MB / 419.8 MB, free: 5.484 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004118/0.286, allocations: 0.8272 MB / 420.6 MB, free: 4.457 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007308/0.2867, allocations: 0.59 MB / 421.2 MB, free: 3.859 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.082e-05/0.2868, allocations: 45.7 kB / 421.2 MB, free: 3.809 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000254/0.287, allocations: 332.8 kB / 421.6 MB, free: 3.477 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001643/0.2872, allocations: 193.2 kB / 421.7 MB, free: 3.285 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002138/0.2874, allocations: 126.2 kB / 421.9 MB, free: 3.156 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.2876, allocations: 382.8 kB / 422.2 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006352/0.2882, allocations: 209 kB / 422.4 MB, free: 2.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009132/0.2892, allocations: 0.5169 MB / 423 MB, free: 1.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001195/0.2904, allocations: 0.5615 MB / 423.5 MB, free: 1.328 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.2904, allocations: 0 / 423.5 MB, free: 1.328 MB / 334.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002242/0.2926, allocations: 0.9051 MB / 424.4 MB, free: 404 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.94e-05/0.2927, allocations: 59.41 kB / 424.5 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.2927, allocations: 4 kB / 424.5 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007408/0.2935, allocations: 225.5 kB / 424.7 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006682/0.2941, allocations: 119.9 kB / 424.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006633/0.3008, allocations: 4.59 MB / 429.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008278/0.3016, allocations: 87.39 kB / 429.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.832e-05/0.3017, allocations: 23.98 kB / 429.5 MB, free: 11 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.0003448/0.302, allocations: 213.8 kB / 429.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.3022, allocations: 79.16 kB / 429.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001437/0.3023, allocations: 70.86 kB / 429.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.014e-06/0.3023, allocations: 7.938 kB / 429.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.3023, allocations: 3.984 kB / 429.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002204/0.3045, allocations: 1.054 MB / 430.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002794/0.3074, allocations: 1.532 MB / 432.5 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.3074, allocations: 0 / 432.5 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006219/0.308, allocations: 107.8 kB / 432.6 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005496/0.3086, allocations: 173.5 kB / 432.7 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.454e-05/0.3086, allocations: 12 kB / 432.8 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005133/0.3137, allocations: 3.928 MB / 436.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3138, allocations: 0 / 436.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002325/0.3161, allocations: 1.02 MB / 437.7 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002905/0.3164, allocations: 224.1 kB / 437.9 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.3165, allocations: 12 kB / 437.9 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006375/0.3172, allocations: 43.95 kB / 438 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.3173, allocations: 52.48 kB / 438 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.232e-05/0.3173, allocations: 16 kB / 438 MB, free: 1.941 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004894/0.3178, allocations: 419.2 kB / 438.5 MB, free: 1.535 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3178, allocations: 7.938 kB / 438.5 MB, free: 1.527 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007624/0.3186, allocations: 259.6 kB / 438.7 MB, free: 1.273 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.000152/0.3188, allocations: 119.8 kB / 438.8 MB, free: 1.148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00199/0.3208, allocations: 1.019 MB / 439.9 MB, free: 80 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3208, allocations: 0 / 439.9 MB, free: 80 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009684/0.3218, allocations: 0.5555 MB / 440.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008607/0.3226, allocations: 215.4 kB / 440.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002395/0.325, allocations: 1.289 MB / 441.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000482/0.3255, allocations: 0.9199 MB / 442.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003316/0.3259, allocations: 89.2 kB / 442.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.326, allocations: 55.42 kB / 443 MB, free: 12.89 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.326, allocations: 0 / 443 MB, free: 12.89 MB / 366.1 MB Notification: Performance of Templates: time 0.02517/0.3512, allocations: 16.29 MB / 459.3 MB, free: 12.86 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