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.001502/0.001502, allocations: 106.6 kB / 17.16 MB, free: 6.082 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.00187/0.00187, allocations: 194.9 kB / 18.08 MB, free: 5.285 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.323/1.323, allocations: 222.9 MB / 241.8 MB, free: 13.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009931/0.0009932, allocations: 47.3 kB / 300.6 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09065/0.09166, allocations: 49.45 MB / 350.1 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005671/0.09738, allocations: 4.852 MB / 354.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002484/0.0999, allocations: 1.34 MB / 356.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003459/0.1003, allocations: 11.94 kB / 356.3 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003987/0.1007, allocations: 115.2 kB / 356.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006644/0.1014, allocations: 309.8 kB / 356.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004867/0.1019, allocations: 195.8 kB / 356.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009942/0.1029, allocations: 0.9723 MB / 357.8 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003918/0.1033, allocations: 261.8 kB / 358.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005074/0.1038, allocations: 390.5 kB / 358.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004436/0.1043, allocations: 430.1 kB / 358.9 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001116/0.1044, allocations: 67.98 kB / 359 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001361/0.1045, allocations: 64 kB / 359 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001562/0.1047, allocations: 167.3 kB / 359.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004405/0.1051, allocations: 445.9 kB / 359.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007314/0.1059, allocations: 0.8027 MB / 360.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.1059, allocations: 0 / 360.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.1059, allocations: 0 / 360.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.36e-05/0.1059, allocations: 0 / 360.4 MB, free: 10.2 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.002315/0.1082, allocations: 1.228 MB / 361.7 MB, free: 8.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.1083, allocations: 8.031 kB / 361.7 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001781/0.1085, allocations: 95.91 kB / 361.8 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006921/0.1092, allocations: 0.5042 MB / 362.3 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001457/0.1093, allocations: 105.2 kB / 362.4 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.153e-05/0.1094, allocations: 52.38 kB / 362.4 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/0.1108, allocations: 0.7966 MB / 363.2 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.1108, allocations: 4 kB / 363.2 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.47e-05/0.1109, allocations: 24 kB / 363.2 MB, free: 7.164 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.1109, allocations: 12 kB / 363.2 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001167/0.1121, allocations: 0.5035 MB / 363.8 MB, free: 6.652 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.003356/0.1155, allocations: 2.165 MB / 365.9 MB, free: 4.344 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001263/0.1167, allocations: 0.5368 MB / 366.5 MB, free: 3.797 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005594/0.1173, allocations: 262.4 kB / 366.7 MB, free: 3.539 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.952e-05/0.1174, allocations: 13.66 kB / 366.7 MB, free: 3.523 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008053/0.1182, allocations: 323 kB / 367 MB, free: 3.199 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.855e-06/0.1182, allocations: 0 / 367 MB, free: 3.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.005103/0.1233, allocations: 1.485 MB / 368.5 MB, free: 1.664 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003315/0.1237, allocations: 0.8272 MB / 369.4 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007512/0.1244, allocations: 0.5862 MB / 369.9 MB, free: 48 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.542e-05/0.1245, allocations: 41.7 kB / 370 MB, free: 0 / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1477/0.2722, allocations: 337 kB / 370.3 MB, free: 25.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002263/0.2725, allocations: 188.5 kB / 370.5 MB, free: 25.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000226/0.2727, allocations: 133.2 kB / 370.6 MB, free: 25.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.2728, allocations: 376.7 kB / 371 MB, free: 25.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006009/0.2734, allocations: 213.5 kB / 371.2 MB, free: 25.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008007/0.2742, allocations: 0.5172 MB / 371.7 MB, free: 25.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/0.2754, allocations: 0.5669 MB / 372.3 MB, free: 24.89 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.2754, allocations: 5.25 kB / 372.3 MB, free: 24.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002332/0.2777, allocations: 0.8956 MB / 373.2 MB, free: 24.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.323e-05/0.2778, allocations: 58.91 kB / 373.2 MB, free: 24.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.2778, allocations: 7.344 kB / 373.2 MB, free: 24.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007254/0.2785, allocations: 220.4 kB / 373.5 MB, free: 24.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006406/0.2792, allocations: 118.1 kB / 373.6 MB, free: 24.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005426/0.2846, allocations: 4.182 MB / 377.8 MB, free: 21.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008228/0.2855, allocations: 87.08 kB / 377.8 MB, free: 21.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.373e-05/0.2855, allocations: 22.7 kB / 377.9 MB, free: 21 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.0003372/0.2859, allocations: 208.2 kB / 378.1 MB, free: 20.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/0.286, allocations: 88.19 kB / 378.2 MB, free: 20.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001317/0.2861, allocations: 82.17 kB / 378.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.2862, allocations: 9.766 kB / 378.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.2862, allocations: 4 kB / 378.3 MB, free: 20.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00194/0.2881, allocations: 1.044 MB / 379.3 MB, free: 20 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002569/0.2907, allocations: 1.541 MB / 380.8 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.2907, allocations: 4.609 kB / 380.8 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006193/0.2913, allocations: 107.4 kB / 380.9 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005427/0.2919, allocations: 167.4 kB / 381.1 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.664e-05/0.2919, allocations: 13.44 kB / 381.1 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004141/0.2961, allocations: 3.592 MB / 384.7 MB, free: 16.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.2961, allocations: 4.875 kB / 384.7 MB, free: 16.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002344/0.2985, allocations: 1.029 MB / 385.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003656/0.2989, allocations: 217.1 kB / 386 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001129/0.299, allocations: 15.61 kB / 386 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005876/0.2996, allocations: 50.47 kB / 386 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00017/0.2998, allocations: 55.2 kB / 386.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.789e-05/0.2998, allocations: 16.45 kB / 386.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005064/0.3003, allocations: 422.8 kB / 386.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3003, allocations: 0 / 386.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008532/0.3012, allocations: 248.5 kB / 386.8 MB, free: 15.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.0001451/0.3013, allocations: 120 kB / 386.9 MB, free: 14.99 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002013/0.3034, allocations: 1.007 MB / 387.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.3034, allocations: 2.594 kB / 387.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009007/0.3043, allocations: 0.54 MB / 388.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009489/0.3053, allocations: 196.4 kB / 388.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002543/0.3078, allocations: 1.588 MB / 390.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003712/0.3082, allocations: 0.9175 MB / 391.1 MB, free: 12.31 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001865/0.3084, allocations: 62.3 kB / 391.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3084, allocations: 0 / 391.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of Templates: time 0.01687/0.3253, allocations: 16.09 MB / 407.3 MB, free: 312 kB / 302.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