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.001573/0.001573, allocations: 110.9 kB / 17.74 MB, free: 5.352 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.00203/0.002031, allocations: 192.5 kB / 18.67 MB, free: 4.426 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.454/1.454, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001017/0.001017, allocations: 43.92 kB / 352 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2441/0.2452, allocations: 49.45 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005314/0.2505, allocations: 4.83 MB / 406.2 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002371/0.2529, allocations: 1.355 MB / 407.6 MB, free: 2.664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003478/0.2533, allocations: 8 kB / 407.6 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000376/0.2537, allocations: 146.7 kB / 407.7 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006477/0.2544, allocations: 341.3 kB / 408.1 MB, free: 2.176 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004335/0.2549, allocations: 223.6 kB / 408.3 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009206/0.2558, allocations: 1.023 MB / 409.3 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003774/0.2562, allocations: 297.7 kB / 409.6 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004702/0.2567, allocations: 410.5 kB / 410 MB, free: 224 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004828/0.2571, allocations: 442.3 kB / 410.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001266/0.2573, allocations: 88 kB / 410.5 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001484/0.2574, allocations: 92 kB / 410.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001515/0.2576, allocations: 199.2 kB / 410.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003954/0.258, allocations: 477.8 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009928/0.259, allocations: 1.076 MB / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.259, allocations: 0 / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.259, allocations: 4 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.466e-05/0.259, allocations: 0 / 412.4 MB, free: 13.86 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.002208/0.2613, allocations: 1.205 MB / 413.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.2613, allocations: 12.03 kB / 413.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001817/0.2615, allocations: 95.91 kB / 413.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000737/0.2622, allocations: 0.5198 MB / 414.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001382/0.2624, allocations: 105.2 kB / 414.3 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.937e-05/0.2625, allocations: 48.38 kB / 414.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.2638, allocations: 0.8044 MB / 415.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.834e-05/0.2638, allocations: 0 / 415.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.237e-05/0.2639, allocations: 24 kB / 415.2 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.2639, allocations: 12 kB / 415.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001163/0.2651, allocations: 0.5036 MB / 415.7 MB, free: 10.32 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.003164/0.2682, allocations: 2.154 MB / 417.8 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001259/0.2695, allocations: 0.5298 MB / 418.4 MB, free: 7.477 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000557/0.2701, allocations: 258.4 kB / 418.6 MB, free: 7.223 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.685e-05/0.2701, allocations: 13.66 kB / 418.6 MB, free: 7.211 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006972/0.2708, allocations: 323 kB / 418.9 MB, free: 6.887 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 3.216e-06/0.2709, allocations: 0 / 418.9 MB, free: 6.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.004872/0.2757, allocations: 1.501 MB / 420.4 MB, free: 5.336 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003212/0.2761, allocations: 0.8233 MB / 421.3 MB, free: 4.312 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007637/0.2769, allocations: 0.5939 MB / 421.9 MB, free: 3.711 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.393e-05/0.2769, allocations: 41.7 kB / 421.9 MB, free: 3.664 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002474/0.2772, allocations: 332.8 kB / 422.2 MB, free: 3.332 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001578/0.2774, allocations: 189.2 kB / 422.4 MB, free: 3.145 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001935/0.2776, allocations: 130.2 kB / 422.5 MB, free: 3.012 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.2777, allocations: 378.8 kB / 422.9 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000543/0.2783, allocations: 213 kB / 423.1 MB, free: 2.426 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007757/0.2791, allocations: 0.5208 MB / 423.6 MB, free: 1.781 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/0.2802, allocations: 0.5576 MB / 424.2 MB, free: 1.184 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.2802, allocations: 0 / 424.2 MB, free: 1.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002137/0.2823, allocations: 0.9012 MB / 425.1 MB, free: 260 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.227e-05/0.2824, allocations: 63.41 kB / 425.2 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.2824, allocations: 4 kB / 425.2 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007059/0.2831, allocations: 225.5 kB / 425.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006003/0.2837, allocations: 111.9 kB / 425.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006156/0.2899, allocations: 4.594 MB / 430.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000825/0.2908, allocations: 87.39 kB / 430.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.425e-05/0.2909, allocations: 23.98 kB / 430.2 MB, free: 10.86 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.000413/0.2913, allocations: 213.8 kB / 430.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001649/0.2915, allocations: 79.16 kB / 430.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001437/0.2916, allocations: 74.86 kB / 430.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.2916, allocations: 7.938 kB / 430.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.2916, allocations: 0 / 430.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001993/0.2936, allocations: 1.05 MB / 431.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002646/0.2963, allocations: 1.54 MB / 433.2 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.2963, allocations: 0 / 433.2 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005907/0.2969, allocations: 103.9 kB / 433.3 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005336/0.2974, allocations: 177.5 kB / 433.4 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.785e-05/0.2975, allocations: 12 kB / 433.4 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004685/0.3022, allocations: 3.924 MB / 437.4 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3022, allocations: 3.938 kB / 437.4 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002287/0.3045, allocations: 1.024 MB / 438.4 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003921/0.3049, allocations: 220.1 kB / 438.6 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001814/0.3051, allocations: 16 kB / 438.6 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000643/0.3058, allocations: 47.95 kB / 438.7 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001561/0.3059, allocations: 48.59 kB / 438.7 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.197e-05/0.306, allocations: 20.12 kB / 438.7 MB, free: 1.789 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004806/0.3065, allocations: 419.1 kB / 439.1 MB, free: 1.383 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3065, allocations: 7.938 kB / 439.2 MB, free: 1.375 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008005/0.3073, allocations: 255.6 kB / 439.4 MB, free: 1.125 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.0001603/0.3074, allocations: 121.8 kB / 439.5 MB, free: 1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002092/0.3095, allocations: 1.019 MB / 440.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.3096, allocations: 0 / 440.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009565/0.3105, allocations: 0.5516 MB / 441.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009339/0.3115, allocations: 219.1 kB / 441.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002594/0.3141, allocations: 1.305 MB / 442.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004738/0.3146, allocations: 0.916 MB / 443.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001664/0.3147, allocations: 63.42 kB / 443.6 MB, free: 12.8 MB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3148, allocations: 0 / 443.6 MB, free: 12.8 MB / 366.1 MB Notification: Performance of Templates: time 0.01961/0.3344, allocations: 16.27 MB / 459.9 MB, free: 12.64 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/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