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.0009683/0.0009683, allocations: 90.02 kB / 17.31 MB, free: 6.027 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.001172/0.001172, allocations: 175.9 kB / 18.21 MB, free: 5.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.291/1.291, allocations: 223.3 MB / 242.3 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003281/0.0003285, allocations: 8 kB / 302.1 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08895/0.08932, allocations: 50.42 MB / 352.5 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.004526/0.09389, allocations: 4.45 MB / 357 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002408/0.09634, allocations: 1.32 MB / 358.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005881/0.09696, allocations: 11.94 kB / 358.3 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005167/0.09749, allocations: 123.2 kB / 358.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009961/0.0985, allocations: 301.9 kB / 358.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005464/0.09907, allocations: 195.7 kB / 358.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001201/0.1003, allocations: 0.9723 MB / 359.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003912/0.1007, allocations: 265.8 kB / 360.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005446/0.1012, allocations: 370.6 kB / 360.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005745/0.1018, allocations: 414.1 kB / 360.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000161/0.102, allocations: 60 kB / 360.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001686/0.1022, allocations: 60 kB / 361 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001622/0.1023, allocations: 163.3 kB / 361.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005073/0.1029, allocations: 471.5 kB / 361.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006619/0.1035, allocations: 0.779 MB / 362.4 MB, free: 9.496 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.1035, allocations: 0 / 362.4 MB, free: 9.496 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1036, allocations: 0 / 362.4 MB, free: 9.496 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.002e-05/0.1036, allocations: 0 / 362.4 MB, free: 9.496 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.001965/0.1056, allocations: 1.084 MB / 363.5 MB, free: 8.348 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.1056, allocations: 8.031 kB / 363.5 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001725/0.1058, allocations: 107.8 kB / 363.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006566/0.1065, allocations: 0.4965 MB / 364.1 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00015/0.1066, allocations: 109.3 kB / 364.2 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.626e-05/0.1067, allocations: 56.28 kB / 364.3 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.1081, allocations: 0.8083 MB / 365.1 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.824e-05/0.1081, allocations: 0 / 365.1 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.504e-05/0.1082, allocations: 28 kB / 365.1 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.51e-05/0.1082, allocations: 12 kB / 365.1 MB, free: 6.566 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001215/0.1094, allocations: 0.5348 MB / 365.6 MB, free: 6.035 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.003194/0.1126, allocations: 2.162 MB / 367.8 MB, free: 3.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001322/0.1139, allocations: 0.5739 MB / 368.4 MB, free: 3.145 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000588/0.1145, allocations: 274.4 kB / 368.6 MB, free: 2.875 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.362e-05/0.1146, allocations: 12.7 kB / 368.7 MB, free: 2.859 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000733/0.1153, allocations: 350.9 kB / 369 MB, free: 2.508 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 3.346e-06/0.1154, allocations: 0 / 369 MB, free: 2.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.005078/0.1204, allocations: 1.602 MB / 370.6 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1649/0.2854, allocations: 0.8215 MB / 371.4 MB, free: 24.87 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/0.2865, allocations: 0.5839 MB / 372 MB, free: 24.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001454/0.2867, allocations: 42.83 kB / 372 MB, free: 24.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002823/0.2869, allocations: 335.7 kB / 372.4 MB, free: 24.63 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002163/0.2872, allocations: 195.9 kB / 372.6 MB, free: 24.58 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/0.2873, allocations: 54.06 kB / 372.6 MB, free: 24.56 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.2874, allocations: 379.8 kB / 373 MB, free: 24.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006901/0.2881, allocations: 227.4 kB / 373.2 MB, free: 24.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008703/0.289, allocations: 0.5302 MB / 373.7 MB, free: 23.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001382/0.2904, allocations: 0.595 MB / 374.3 MB, free: 23.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.2904, allocations: 3.938 kB / 374.3 MB, free: 23.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002545/0.293, allocations: 0.9483 MB / 375.3 MB, free: 23.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.327e-05/0.293, allocations: 70.88 kB / 375.4 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.2931, allocations: 4.969 kB / 375.4 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007432/0.2938, allocations: 231.6 kB / 375.6 MB, free: 23.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006436/0.2945, allocations: 123.2 kB / 375.7 MB, free: 23.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00579/0.3003, allocations: 4.248 MB / 380 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009295/0.3012, allocations: 99.7 kB / 380.1 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.844e-05/0.3014, allocations: 26.31 kB / 380.1 MB, free: 20.02 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.0004257/0.3018, allocations: 211.5 kB / 380.3 MB, free: 19.85 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001794/0.302, allocations: 87.67 kB / 380.4 MB, free: 19.81 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001721/0.3022, allocations: 78.62 kB / 380.5 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.3022, allocations: 5.719 kB / 380.5 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.3022, allocations: 112 / 380.5 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002147/0.3043, allocations: 1.112 MB / 381.6 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002929/0.3073, allocations: 1.561 MB / 383.1 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.3073, allocations: 1.734 kB / 383.1 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006391/0.3079, allocations: 116.4 kB / 383.2 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005934/0.3086, allocations: 183.2 kB / 383.4 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.469e-05/0.3086, allocations: 13.5 kB / 383.4 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004348/0.313, allocations: 3.668 MB / 387.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.313, allocations: 4.062 kB / 387.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002617/0.3156, allocations: 1.077 MB / 388.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004086/0.3161, allocations: 213.5 kB / 388.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001659/0.3162, allocations: 23.86 kB / 388.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006869/0.3169, allocations: 50.08 kB / 388.5 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000185/0.3171, allocations: 51.31 kB / 388.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.82e-05/0.3172, allocations: 20.44 kB / 388.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006385/0.3178, allocations: 417.6 kB / 388.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3178, allocations: 0.9688 kB / 388.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001174/0.319, allocations: 251.4 kB / 389.2 MB, free: 14.09 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.0002329/0.3192, allocations: 117.8 kB / 389.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002299/0.3216, allocations: 1.043 MB / 390.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.3216, allocations: 6.781 kB / 390.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001005/0.3226, allocations: 0.5597 MB / 390.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.3237, allocations: 197.7 kB / 391.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002827/0.3266, allocations: 1.646 MB / 392.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004601/0.3271, allocations: 0.9174 MB / 393.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002063/0.3273, allocations: 54.08 kB / 393.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of SimCode: time 1.252e-06/0.3273, allocations: 0.8438 kB / 393.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of Templates: time 0.019/0.3463, allocations: 16.02 MB / 409.8 MB, free: 14.48 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/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