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.001226/0.001226, allocations: 97.3 kB / 16.3 MB, free: 5.574 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.001376/0.001376, allocations: 183.8 kB / 17.2 MB, free: 5.508 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.317/1.317, allocations: 223.2 MB / 241.1 MB, free: 284 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002156/0.0002156, allocations: 4 kB / 300.7 MB, free: 6.438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07688/0.07711, allocations: 50.41 MB / 351.1 MB, free: 4.008 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.003872/0.08102, allocations: 3.858 MB / 355 MB, free: 132 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001949/0.08299, allocations: 1.314 MB / 356.3 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002295/0.08324, allocations: 11.94 kB / 356.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002366/0.08348, allocations: 95.28 kB / 356.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005896/0.08408, allocations: 355 kB / 356.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003383/0.08443, allocations: 163.7 kB / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007488/0.08518, allocations: 0.7011 MB / 357.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003362/0.08553, allocations: 253.6 kB / 357.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003616/0.0859, allocations: 338.9 kB / 358.2 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003744/0.08628, allocations: 378.4 kB / 358.6 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.531e-05/0.08638, allocations: 52 kB / 358.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001089/0.08649, allocations: 52 kB / 358.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001179/0.08662, allocations: 143.4 kB / 358.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001445/0.08677, allocations: 193.3 kB / 359 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005669/0.08734, allocations: 0.7323 MB / 359.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.08735, allocations: 0 / 359.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.08736, allocations: 0 / 359.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.08737, allocations: 0 / 359.7 MB, free: 11.36 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.00185/0.08923, allocations: 1.08 MB / 360.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.08927, allocations: 12.03 kB / 360.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001451/0.08942, allocations: 98.88 kB / 360.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006055/0.09003, allocations: 447.7 kB / 361.4 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001488/0.0902, allocations: 104.7 kB / 361.5 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.934e-05/0.09029, allocations: 48 kB / 361.5 MB, free: 9.461 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/0.09152, allocations: 0.8004 MB / 362.3 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.277e-05/0.09155, allocations: 7.844 kB / 362.3 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.179e-05/0.09162, allocations: 31.95 kB / 362.3 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.09164, allocations: 12 kB / 362.4 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001177/0.09282, allocations: 0.5309 MB / 362.9 MB, free: 7.973 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.002903/0.09574, allocations: 2.107 MB / 365 MB, free: 5.727 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001405/0.09715, allocations: 0.6083 MB / 365.6 MB, free: 5.102 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.636e-05/0.09721, allocations: 17.59 kB / 365.6 MB, free: 5.086 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007136/0.09793, allocations: 346.9 kB / 366 MB, free: 4.738 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 1.903e-06/0.09794, allocations: 0 / 366 MB, free: 4.738 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004779/0.1027, allocations: 1.58 MB / 367.5 MB, free: 3.109 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002755/0.103, allocations: 0.8271 MB / 368.4 MB, free: 2.086 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005211/0.1035, allocations: 0.5392 MB / 368.9 MB, free: 1.539 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.648e-05/0.1036, allocations: 41.7 kB / 368.9 MB, free: 1.492 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002245/0.1038, allocations: 340.7 kB / 369.3 MB, free: 1.156 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001318/0.104, allocations: 185.3 kB / 369.5 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.953e-05/0.104, allocations: 12 kB / 369.5 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.1042, allocations: 374.8 kB / 369.8 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005521/0.1047, allocations: 229 kB / 370.1 MB, free: 368 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1396/0.2443, allocations: 0.5179 MB / 370.6 MB, free: 24.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009225/0.2452, allocations: 327.2 kB / 370.9 MB, free: 24.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.2453, allocations: 5.125 kB / 370.9 MB, free: 24.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002037/0.2473, allocations: 0.8652 MB / 371.8 MB, free: 23.94 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.299e-05/0.2474, allocations: 63.17 kB / 371.8 MB, free: 23.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.2474, allocations: 6.406 kB / 371.8 MB, free: 23.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007257/0.2481, allocations: 225.7 kB / 372.1 MB, free: 23.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006397/0.2488, allocations: 124.7 kB / 372.2 MB, free: 23.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006097/0.2549, allocations: 4.369 MB / 376.5 MB, free: 21.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007704/0.2557, allocations: 93.16 kB / 376.6 MB, free: 21.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-05/0.2557, allocations: 26.91 kB / 376.7 MB, free: 21.11 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 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,oneWayValve.backward) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {9 3,1 11} Notification: Performance of prepare postOptimizeDAE: time 0.00029/0.256, allocations: 212.1 kB / 376.9 MB, free: 20.94 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/0.2561, allocations: 81.02 kB / 377 MB, free: 20.9 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001352/0.2563, allocations: 78.55 kB / 377 MB, free: 20.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.481e-06/0.2563, allocations: 8.562 kB / 377 MB, free: 20.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2563, allocations: 1.812 kB / 377 MB, free: 20.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002016/0.2583, allocations: 1.1 MB / 378.1 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002533/0.2609, allocations: 1.588 MB / 379.7 MB, free: 19.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.2609, allocations: 2.078 kB / 379.7 MB, free: 19.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006213/0.2615, allocations: 116.2 kB / 379.8 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005521/0.2621, allocations: 178.1 kB / 380 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.583e-05/0.2621, allocations: 16.17 kB / 380 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004176/0.2663, allocations: 3.718 MB / 383.7 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2663, allocations: 5.094 kB / 383.8 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002258/0.2686, allocations: 1.074 MB / 384.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002612/0.2689, allocations: 206.6 kB / 385 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.269, allocations: 19.45 kB / 385 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005956/0.2696, allocations: 50.52 kB / 385.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/0.2697, allocations: 51.62 kB / 385.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-05/0.2697, allocations: 20.58 kB / 385.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004228/0.2702, allocations: 373.1 kB / 385.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2702, allocations: 0.9688 kB / 385.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008329/0.271, allocations: 249.9 kB / 385.8 MB, free: 15.15 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 3,1 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001401/0.2712, allocations: 114.5 kB / 385.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001993/0.2732, allocations: 1.058 MB / 386.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.778e-06/0.2732, allocations: 2.406 kB / 387 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009107/0.2741, allocations: 0.5571 MB / 387.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007551/0.2749, allocations: 189.3 kB / 387.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002338/0.2772, allocations: 1.534 MB / 389.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000417/0.2777, allocations: 0.9402 MB / 390.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003571/0.278, allocations: 74.12 kB / 390.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.2782, allocations: 43.58 kB / 390.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2782, allocations: 0 / 390.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of Templates: time 0.01802/0.2962, allocations: 13.66 MB / 403.9 MB, free: 2.98 MB / 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches