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.001088/0.001088, allocations: 106.9 kB / 17.68 MB, free: 5.328 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.001123/0.001123, allocations: 192 kB / 18.62 MB, free: 4.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.295/1.295, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001014/0.001014, allocations: 50.64 kB / 302 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08578/0.08681, allocations: 49.44 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005417/0.09226, allocations: 4.833 MB / 356.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001993/0.09428, allocations: 1.351 MB / 357.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000236/0.09453, allocations: 11.94 kB / 357.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003541/0.0949, allocations: 150.7 kB / 357.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005682/0.0955, allocations: 329.4 kB / 358.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003848/0.09589, allocations: 219.6 kB / 358.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009079/0.09681, allocations: 1.03 MB / 359.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003625/0.09718, allocations: 297.8 kB / 359.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004/0.09759, allocations: 406.6 kB / 360.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004472/0.09805, allocations: 454.1 kB / 360.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001144/0.09817, allocations: 88 kB / 360.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001312/0.09831, allocations: 88 kB / 360.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001523/0.09847, allocations: 191.3 kB / 360.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003946/0.09887, allocations: 481.8 kB / 361.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008239/0.0997, allocations: 1.067 MB / 362.4 MB, free: 8.688 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.09971, allocations: 0 / 362.4 MB, free: 8.688 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.09972, allocations: 4 kB / 362.4 MB, free: 8.684 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.09974, allocations: 0 / 362.4 MB, free: 8.684 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.002052/0.1018, allocations: 1.236 MB / 363.7 MB, free: 7.379 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.1018, allocations: 12.03 kB / 363.7 MB, free: 7.367 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001559/0.102, allocations: 95.91 kB / 363.8 MB, free: 7.273 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007337/0.1027, allocations: 0.5081 MB / 364.3 MB, free: 6.727 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001361/0.1029, allocations: 105.3 kB / 364.4 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.732e-05/0.103, allocations: 48.38 kB / 364.4 MB, free: 6.566 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001236/0.1042, allocations: 0.8005 MB / 365.2 MB, free: 5.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.977e-05/0.1043, allocations: 0 / 365.2 MB, free: 5.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.183e-05/0.1043, allocations: 28 kB / 365.3 MB, free: 5.633 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.1043, allocations: 12 kB / 365.3 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001143/0.1055, allocations: 0.5035 MB / 365.8 MB, free: 5.117 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.003073/0.1086, allocations: 2.15 MB / 367.9 MB, free: 2.828 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.1098, allocations: 0.5312 MB / 368.5 MB, free: 2.285 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005362/0.1103, allocations: 258.4 kB / 368.7 MB, free: 2.031 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.299e-05/0.1104, allocations: 16.64 kB / 368.7 MB, free: 2.012 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006651/0.111, allocations: 327 kB / 369 MB, free: 1.684 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.124e-06/0.1111, allocations: 0 / 369 MB, free: 1.684 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004857/0.1159, allocations: 1.485 MB / 370.5 MB, free: 152 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1761/0.2921, allocations: 0.8186 MB / 371.3 MB, free: 25.03 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009359/0.293, allocations: 0.5875 MB / 371.9 MB, free: 24.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001645/0.2932, allocations: 43.48 kB / 372 MB, free: 24.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002341/0.2935, allocations: 333.9 kB / 372.3 MB, free: 24.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/0.2936, allocations: 192 kB / 372.5 MB, free: 24.74 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002364/0.2939, allocations: 129.1 kB / 372.6 MB, free: 24.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.294, allocations: 379.2 kB / 373 MB, free: 24.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000609/0.2946, allocations: 209.4 kB / 373.2 MB, free: 24.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007714/0.2954, allocations: 0.5302 MB / 373.7 MB, free: 24.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.2965, allocations: 0.5542 MB / 374.3 MB, free: 23.76 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.2966, allocations: 0 / 374.3 MB, free: 23.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002225/0.2988, allocations: 0.9069 MB / 375.2 MB, free: 23.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.656e-05/0.2988, allocations: 63.92 kB / 375.2 MB, free: 23.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.2988, allocations: 2.25 kB / 375.2 MB, free: 23.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006983/0.2996, allocations: 226.8 kB / 375.5 MB, free: 23.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006186/0.3002, allocations: 111.8 kB / 375.6 MB, free: 23.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005606/0.3058, allocations: 4.599 MB / 380.2 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007984/0.3066, allocations: 82.81 kB / 380.3 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.329e-05/0.3067, allocations: 28.16 kB / 380.3 MB, free: 19.54 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.0003811/0.3071, allocations: 209.8 kB / 380.5 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/0.3072, allocations: 77.19 kB / 380.6 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001468/0.3074, allocations: 81.28 kB / 380.6 MB, free: 19.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.3074, allocations: 9.375 kB / 380.6 MB, free: 19.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3074, allocations: 8.906 kB / 380.7 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002004/0.3094, allocations: 1.05 MB / 381.7 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00309/0.3125, allocations: 1.528 MB / 383.2 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.3126, allocations: 0 / 383.2 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006085/0.3132, allocations: 112 kB / 383.3 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005281/0.3137, allocations: 170.8 kB / 383.5 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.333e-05/0.3138, allocations: 15.95 kB / 383.5 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00432/0.3181, allocations: 3.924 MB / 387.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.3181, allocations: 4.781 kB / 387.5 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00223/0.3203, allocations: 1.022 MB / 388.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003203/0.3207, allocations: 213.9 kB / 388.7 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001243/0.3208, allocations: 23.28 kB / 388.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005944/0.3214, allocations: 42.06 kB / 388.8 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/0.3216, allocations: 55.84 kB / 388.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.116e-05/0.3216, allocations: 15.66 kB / 388.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005591/0.3222, allocations: 422.9 kB / 389.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3222, allocations: 0 / 389.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008568/0.3231, allocations: 251.7 kB / 389.5 MB, free: 13.33 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.000158/0.3232, allocations: 121.7 kB / 389.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00196/0.3252, allocations: 1.024 MB / 390.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.952e-06/0.3252, allocations: 2.031 kB / 390.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008836/0.3261, allocations: 0.5385 MB / 391.2 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008724/0.327, allocations: 217.7 kB / 391.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002481/0.3295, allocations: 1.294 MB / 392.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003923/0.3299, allocations: 0.9122 MB / 393.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003792/0.3303, allocations: 87.94 kB / 393.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001402/0.3304, allocations: 52.8 kB / 393.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3304, allocations: 0 / 393.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of Templates: time 0.02258/0.353, allocations: 16.17 MB / 409.9 MB, free: 14.12 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 -s cvode -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