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.001367/0.001367, allocations: 100.6 kB / 16.62 MB, free: 6.812 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.001563/0.001563, allocations: 193.9 kB / 17.55 MB, free: 5.953 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.314/1.314, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009021/0.0009021, allocations: 46.05 kB / 300.1 MB, free: 6.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07934/0.08025, allocations: 49.45 MB / 349.6 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.00528/0.08557, allocations: 4.848 MB / 354.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001903/0.08749, allocations: 1.336 MB / 355.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002111/0.08772, allocations: 7.938 kB / 355.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003404/0.08809, allocations: 123.2 kB / 355.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005558/0.08865, allocations: 301.8 kB / 356.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003618/0.08903, allocations: 187.8 kB / 356.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009024/0.08994, allocations: 1.025 MB / 357.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003965/0.09034, allocations: 301.8 kB / 357.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004318/0.09079, allocations: 406.6 kB / 358.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004364/0.09123, allocations: 446.2 kB / 358.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001166/0.09136, allocations: 88 kB / 358.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001272/0.09149, allocations: 88 kB / 358.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.09165, allocations: 199.3 kB / 358.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003829/0.09204, allocations: 477.8 kB / 359.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000856/0.0929, allocations: 1.055 MB / 360.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.09291, allocations: 0 / 360.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.09292, allocations: 0 / 360.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.09294, allocations: 4 kB / 360.4 MB, free: 9.859 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.002032/0.09497, allocations: 1.228 MB / 361.6 MB, free: 8.562 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.09502, allocations: 8.031 kB / 361.6 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001674/0.09519, allocations: 99.91 kB / 361.7 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006482/0.09584, allocations: 0.5081 MB / 362.2 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/0.096, allocations: 109.1 kB / 362.4 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.4e-05/0.09611, allocations: 52.38 kB / 362.4 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.09739, allocations: 0.7966 MB / 363.2 MB, free: 6.836 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.09742, allocations: 3.984 kB / 363.2 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.261e-05/0.09749, allocations: 24 kB / 363.2 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.09751, allocations: 12 kB / 363.2 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001168/0.09868, allocations: 0.4958 MB / 363.7 MB, free: 6.301 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.003074/0.1018, allocations: 2.173 MB / 365.9 MB, free: 3.988 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001234/0.103, allocations: 0.5322 MB / 366.4 MB, free: 3.449 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005634/0.1036, allocations: 258.4 kB / 366.7 MB, free: 3.195 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.768e-05/0.1036, allocations: 13.64 kB / 366.7 MB, free: 3.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007172/0.1044, allocations: 315 kB / 367 MB, free: 2.863 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.094e-06/0.1044, allocations: 0 / 367 MB, free: 2.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004821/0.1092, allocations: 1.501 MB / 368.5 MB, free: 1.312 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003109/0.1095, allocations: 0.8194 MB / 369.3 MB, free: 304 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1387/0.2483, allocations: 0.5861 MB / 369.9 MB, free: 25.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001445/0.2485, allocations: 42.7 kB / 370 MB, free: 25.92 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002228/0.2487, allocations: 331.9 kB / 370.3 MB, free: 25.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000144/0.2488, allocations: 192.2 kB / 370.5 MB, free: 25.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002128/0.2491, allocations: 125.9 kB / 370.6 MB, free: 25.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.973e-05/0.2492, allocations: 378.3 kB / 371 MB, free: 25.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005951/0.2498, allocations: 211.3 kB / 371.2 MB, free: 25.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007541/0.2505, allocations: 0.5222 MB / 371.7 MB, free: 25.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/0.2516, allocations: 0.5622 MB / 372.3 MB, free: 24.88 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.2517, allocations: 1.062 kB / 372.3 MB, free: 24.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002202/0.2539, allocations: 0.904 MB / 373.2 MB, free: 24.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.572e-05/0.2539, allocations: 64.42 kB / 373.2 MB, free: 24.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.2539, allocations: 1.406 kB / 373.2 MB, free: 24.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007093/0.2546, allocations: 224.5 kB / 373.4 MB, free: 24.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006259/0.2553, allocations: 116.1 kB / 373.6 MB, free: 24.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00555/0.2608, allocations: 4.592 MB / 378.2 MB, free: 20.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007511/0.2616, allocations: 90.61 kB / 378.2 MB, free: 20.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.762e-05/0.2617, allocations: 26.38 kB / 378.3 MB, free: 20.64 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.0002739/0.262, allocations: 213.8 kB / 378.5 MB, free: 20.47 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.2621, allocations: 78.39 kB / 378.6 MB, free: 20.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001469/0.2622, allocations: 77.31 kB / 378.6 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.2622, allocations: 5.188 kB / 378.6 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.2622, allocations: 0.6562 kB / 378.6 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001953/0.2642, allocations: 1.058 MB / 379.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002499/0.2667, allocations: 1.534 MB / 381.2 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.2667, allocations: 0 / 381.2 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006131/0.2673, allocations: 112.1 kB / 381.3 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000522/0.2679, allocations: 170.4 kB / 381.5 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.566e-05/0.2679, allocations: 9.75 kB / 381.5 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004116/0.2721, allocations: 3.939 MB / 385.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.2721, allocations: 0 / 385.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002236/0.2743, allocations: 1.025 MB / 386.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002725/0.2746, allocations: 217.7 kB / 386.7 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/0.2747, allocations: 19.3 kB / 386.7 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006151/0.2753, allocations: 45.41 kB / 386.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.2755, allocations: 52.86 kB / 386.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.648e-05/0.2755, allocations: 14.97 kB / 386.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004753/0.276, allocations: 423.9 kB / 387.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.276, allocations: 0 / 387.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008233/0.2768, allocations: 252.6 kB / 387.5 MB, free: 14.44 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.0001276/0.277, allocations: 116 kB / 387.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002051/0.279, allocations: 1.044 MB / 388.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.2791, allocations: 6.75 kB / 388.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008875/0.28, allocations: 0.5414 MB / 389.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008674/0.2808, allocations: 212.1 kB / 389.4 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002416/0.2833, allocations: 1.554 MB / 390.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003508/0.2836, allocations: 0.9134 MB / 391.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004151/0.284, allocations: 91.47 kB / 391.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001384/0.2842, allocations: 55.94 kB / 392 MB, free: 11.63 MB / 302.1 MB Notification: Performance of SimCode: time 7.02e-07/0.2842, allocations: 1.188 kB / 392 MB, free: 11.63 MB / 302.1 MB Notification: Performance of Templates: time 0.02051/0.3047, allocations: 15.89 MB / 407.9 MB, free: 15.34 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 -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