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.001058/0.001058, allocations: 109.6 kB / 16.92 MB, free: 5.754 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.00101/0.00101, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.348/1.348, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001047/0.001047, allocations: 42.64 kB / 300.6 MB, free: 5.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09972/0.1008, allocations: 49.45 MB / 350 MB, free: 4.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006457/0.1073, allocations: 4.83 MB / 354.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003233/0.1105, allocations: 1.344 MB / 356.2 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006618/0.1112, allocations: 4 kB / 356.2 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004973/0.1117, allocations: 154.7 kB / 356.4 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009172/0.1127, allocations: 341.4 kB / 356.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005107/0.1133, allocations: 219.6 kB / 356.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001134/0.1144, allocations: 1.018 MB / 357.9 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004129/0.1148, allocations: 301.8 kB / 358.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005294/0.1154, allocations: 406.5 kB / 358.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005423/0.1159, allocations: 442.2 kB / 359.1 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001566/0.1161, allocations: 88 kB / 359.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001855/0.1163, allocations: 88 kB / 359.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001736/0.1164, allocations: 199.3 kB / 359.4 MB, free: 11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005448/0.117, allocations: 477.8 kB / 359.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000955/0.118, allocations: 1.059 MB / 361 MB, free: 9.473 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.118, allocations: 0 / 361 MB, free: 9.473 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.118, allocations: 0 / 361 MB, free: 9.473 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.726e-05/0.118, allocations: 4 kB / 361 MB, free: 9.469 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.002312/0.1203, allocations: 1.224 MB / 362.2 MB, free: 8.176 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.1204, allocations: 8.031 kB / 362.2 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001922/0.1206, allocations: 99.84 kB / 362.3 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007172/0.1213, allocations: 0.5081 MB / 362.8 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001473/0.1215, allocations: 101.3 kB / 362.9 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.429e-05/0.1216, allocations: 60.31 kB / 363 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.1229, allocations: 0.7966 MB / 363.8 MB, free: 6.453 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.177e-05/0.1229, allocations: 4 kB / 363.8 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.857e-05/0.123, allocations: 27.98 kB / 363.8 MB, free: 6.422 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.304e-05/0.123, allocations: 12 kB / 363.8 MB, free: 6.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/0.1242, allocations: 0.4958 MB / 364.3 MB, free: 5.914 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.003276/0.1275, allocations: 2.169 MB / 366.5 MB, free: 3.605 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/0.1288, allocations: 0.5341 MB / 367 MB, free: 3.062 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005761/0.1294, allocations: 270.4 kB / 367.3 MB, free: 2.797 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.665e-05/0.1294, allocations: 9.641 kB / 367.3 MB, free: 2.785 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000865/0.1303, allocations: 323 kB / 367.6 MB, free: 2.461 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.715e-06/0.1303, allocations: 0 / 367.6 MB, free: 2.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004878/0.1352, allocations: 1.489 MB / 369.1 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1604/0.2957, allocations: 0.8233 MB / 369.9 MB, free: 25.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001171/0.2969, allocations: 0.5826 MB / 370.5 MB, free: 25.76 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000217/0.2971, allocations: 42.11 kB / 370.5 MB, free: 25.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002675/0.2974, allocations: 335 kB / 370.8 MB, free: 25.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001693/0.2976, allocations: 191.7 kB / 371 MB, free: 25.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002256/0.2978, allocations: 130 kB / 371.2 MB, free: 25.58 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.298, allocations: 376.9 kB / 371.5 MB, free: 25.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006411/0.2986, allocations: 214.1 kB / 371.7 MB, free: 25.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007809/0.2994, allocations: 0.5217 MB / 372.3 MB, free: 24.92 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001155/0.3006, allocations: 0.5643 MB / 372.8 MB, free: 24.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3006, allocations: 0.5 kB / 372.8 MB, free: 24.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002404/0.303, allocations: 0.9004 MB / 373.7 MB, free: 24.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.294e-05/0.303, allocations: 67.94 kB / 373.8 MB, free: 24.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.3031, allocations: 2.281 kB / 373.8 MB, free: 24.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007277/0.3038, allocations: 220.3 kB / 374 MB, free: 24.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006548/0.3045, allocations: 117.2 kB / 374.1 MB, free: 24.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005956/0.3104, allocations: 4.585 MB / 378.7 MB, free: 20.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008556/0.3113, allocations: 85.75 kB / 378.8 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.08e-05/0.3114, allocations: 27.19 kB / 378.8 MB, free: 20.37 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.0003273/0.3117, allocations: 208 kB / 379 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.3118, allocations: 85.17 kB / 379.1 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000133/0.3119, allocations: 77.14 kB / 379.2 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.312, allocations: 5.938 kB / 379.2 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.312, allocations: 3.938 kB / 379.2 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001955/0.3139, allocations: 1.054 MB / 380.2 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002489/0.3164, allocations: 1.532 MB / 381.8 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.3165, allocations: 3.219 kB / 381.8 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006229/0.3171, allocations: 111.4 kB / 381.9 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005177/0.3176, allocations: 170.3 kB / 382.1 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.378e-05/0.3177, allocations: 17.56 kB / 382.1 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004064/0.3217, allocations: 3.938 MB / 386 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3217, allocations: 0 / 386 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002184/0.3239, allocations: 1.022 MB / 387 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002682/0.3242, allocations: 218.4 kB / 387.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.3243, allocations: 18.56 kB / 387.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006156/0.3249, allocations: 46.78 kB / 387.3 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001452/0.3251, allocations: 49.55 kB / 387.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.32e-05/0.3251, allocations: 16.53 kB / 387.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004785/0.3256, allocations: 418.9 kB / 387.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3256, allocations: 4 kB / 387.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008073/0.3264, allocations: 251.7 kB / 388 MB, free: 14.16 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.0001334/0.3266, allocations: 117.8 kB / 388.2 MB, free: 14.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002016/0.3286, allocations: 1.046 MB / 389.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.3286, allocations: 6.344 kB / 389.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008586/0.3295, allocations: 0.5379 MB / 389.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008401/0.3303, allocations: 215.8 kB / 390 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002224/0.3326, allocations: 1.313 MB / 391.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003368/0.3329, allocations: 0.914 MB / 392.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000368/0.3333, allocations: 87.59 kB / 392.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.3334, allocations: 52.56 kB / 392.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3334, allocations: 1.25 kB / 392.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of Templates: time 0.01985/0.3533, allocations: 16.15 MB / 408.5 MB, free: 14.9 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