Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_4.1.0-beta.om_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.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00133/0.00133, allocations: 105.6 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001419/0.001419, allocations: 208.1 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.455/1.455, allocations: 227.7 MB / 247.7 MB, free: 10.4 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 60.78 kB / 307.9 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09807/0.1001, allocations: 50.54 MB / 358.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006504/0.1066, allocations: 4.844 MB / 363.3 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002874/0.1095, allocations: 1.39 MB / 364.7 MB, free: 7.703 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005267/0.1101, allocations: 7.938 kB / 364.7 MB, free: 7.695 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000518/0.1107, allocations: 154.7 kB / 364.8 MB, free: 7.543 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001/0.1117, allocations: 337.4 kB / 365.1 MB, free: 7.211 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000604/0.1123, allocations: 219.6 kB / 365.4 MB, free: 6.996 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001332/0.1137, allocations: 1.015 MB / 366.4 MB, free: 5.977 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004757/0.1141, allocations: 297.8 kB / 366.7 MB, free: 5.668 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006936/0.1148, allocations: 414.5 kB / 367.1 MB, free: 5.262 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005534/0.1154, allocations: 450.1 kB / 367.5 MB, free: 4.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001454/0.1156, allocations: 88 kB / 367.6 MB, free: 4.734 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001685/0.1157, allocations: 92 kB / 367.7 MB, free: 4.645 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001787/0.1159, allocations: 195.3 kB / 367.9 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004903/0.1164, allocations: 473.8 kB / 368.3 MB, free: 3.988 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001064/0.1175, allocations: 1.067 MB / 369.4 MB, free: 2.918 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1175, allocations: 0 / 369.4 MB, free: 2.918 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1175, allocations: 0 / 369.4 MB, free: 2.918 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.867e-05/0.1176, allocations: 0 / 369.4 MB, free: 2.918 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.002382/0.12, allocations: 1.224 MB / 370.6 MB, free: 1.625 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.12, allocations: 12.03 kB / 370.6 MB, free: 1.613 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001881/0.1202, allocations: 95.91 kB / 370.7 MB, free: 1.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008111/0.121, allocations: 0.5042 MB / 371.2 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001656/0.1212, allocations: 105.3 kB / 371.3 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.241e-05/0.1213, allocations: 48.38 kB / 371.4 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1578/0.2791, allocations: 0.7879 MB / 372.2 MB, free: 19.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.832e-05/0.2792, allocations: 1.312 kB / 372.2 MB, free: 19.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.351e-05/0.2793, allocations: 26.38 kB / 372.2 MB, free: 19.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.999e-05/0.2793, allocations: 12.39 kB / 372.2 MB, free: 19.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001427/0.2807, allocations: 0.4993 MB / 372.7 MB, free: 19.68 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.003514/0.2843, allocations: 2.161 MB / 374.9 MB, free: 18.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/0.2857, allocations: 0.5291 MB / 375.4 MB, free: 18.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006387/0.2863, allocations: 257.8 kB / 375.7 MB, free: 18.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.53e-05/0.2864, allocations: 19.09 kB / 375.7 MB, free: 18.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008507/0.2873, allocations: 321.7 kB / 376 MB, free: 18.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 3.276e-06/0.2873, allocations: 0 / 376 MB, free: 18.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004885/0.2922, allocations: 1.49 MB / 377.5 MB, free: 17.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001606/0.2923, allocations: 0.8218 MB / 378.3 MB, free: 16.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007159/0.2931, allocations: 0.59 MB / 378.9 MB, free: 16.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.89e-05/0.2932, allocations: 42.14 kB / 378.9 MB, free: 16.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002089/0.2934, allocations: 338.1 kB / 379.3 MB, free: 16.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000135/0.2935, allocations: 192.7 kB / 379.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001944/0.2937, allocations: 128.8 kB / 379.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.2938, allocations: 379.6 kB / 380 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005515/0.2944, allocations: 208.8 kB / 380.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000737/0.2951, allocations: 0.5193 MB / 380.7 MB, free: 15.03 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001127/0.2963, allocations: 0.5586 MB / 381.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.2963, allocations: 1 kB / 381.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002253/0.2985, allocations: 0.9095 MB / 382.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.7e-05/0.2986, allocations: 59.86 kB / 382.2 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.2986, allocations: 3.625 kB / 382.2 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007277/0.2994, allocations: 220.1 kB / 382.4 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00062/0.3, allocations: 114 kB / 382.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006005/0.306, allocations: 4.603 MB / 387.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008701/0.3069, allocations: 82.94 kB / 387.2 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.908e-05/0.307, allocations: 27.31 kB / 387.2 MB, free: 10.44 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.0003241/0.3073, allocations: 219.9 kB / 387.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.3075, allocations: 80.7 kB / 387.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001381/0.3076, allocations: 77.73 kB / 387.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.3076, allocations: 5.531 kB / 387.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.3076, allocations: 1.094 kB / 387.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001996/0.3096, allocations: 1.052 MB / 388.7 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002805/0.3125, allocations: 1.536 MB / 390.2 MB, free: 8.621 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.3125, allocations: 0 / 390.2 MB, free: 8.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006153/0.3131, allocations: 107.7 kB / 390.3 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005353/0.3137, allocations: 175.7 kB / 390.5 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.211e-05/0.3137, allocations: 12.7 kB / 390.5 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004257/0.318, allocations: 3.934 MB / 394.4 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.318, allocations: 0 / 394.4 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002297/0.3203, allocations: 1.031 MB / 395.5 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003707/0.3207, allocations: 210.4 kB / 395.7 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001202/0.3208, allocations: 26.84 kB / 395.7 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005958/0.3214, allocations: 41.72 kB / 395.7 MB, free: 4.301 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.3216, allocations: 57.77 kB / 395.8 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.177e-05/0.3217, allocations: 10.22 kB / 395.8 MB, free: 4.266 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000483/0.3221, allocations: 422 kB / 396.2 MB, free: 4.023 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3221, allocations: 0 / 396.2 MB, free: 4.023 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000913/0.3231, allocations: 248.7 kB / 396.5 MB, free: 3.988 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.0001489/0.3232, allocations: 124.4 kB / 396.6 MB, free: 3.883 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002162/0.3254, allocations: 1.045 MB / 397.6 MB, free: 3.172 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.3254, allocations: 2.688 kB / 397.6 MB, free: 3.172 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009172/0.3263, allocations: 0.5474 MB / 398.2 MB, free: 2.777 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009898/0.3274, allocations: 211.5 kB / 398.4 MB, free: 2.664 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002637/0.33, allocations: 1.336 MB / 399.7 MB, free: 1.844 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003369/0.3304, allocations: 0.9141 MB / 400.6 MB, free: 1.051 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002084/0.3306, allocations: 60.64 kB / 400.7 MB, free: 1.035 MB / 302.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3306, allocations: 0 / 400.7 MB, free: 1.035 MB / 302.1 MB Notification: Performance of Templates: time 0.02216/0.3528, allocations: 16.11 MB / 416.8 MB, free: 2.758 MB / 318.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches