Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) 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(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speShi.y|speShi.speRat",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift") translateModel(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speShi.y|speShi.speRat",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001355/0.001355, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001666/0.001666, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.487/1.487, allocations: 222.9 MB / 239.9 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.919/2.919, allocations: 461.8 MB / 0.7343 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002203/0.002203, allocations: 66.86 kB / 0.8986 GB, free: 37.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3749/0.3771, allocations: 157.4 MB / 1.052 GB, free: 8.801 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.00411/0.3813, allocations: 2.112 MB / 1.054 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003884/0.3852, allocations: 2.577 MB / 1.057 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002024/0.3854, allocations: 4 kB / 1.057 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001754/0.3872, allocations: 0.506 MB / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001981/0.3875, allocations: 59.66 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001111/0.3886, allocations: 247.6 kB / 1.058 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005458/0.3891, allocations: 357.4 kB / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002188/0.3894, allocations: 97.03 kB / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002127/0.3896, allocations: 99.53 kB / 1.058 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002439/0.3898, allocations: 147.2 kB / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.967e-05/0.3899, allocations: 8 kB / 1.058 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005302/0.3904, allocations: 315.6 kB / 1.059 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001336/0.3906, allocations: 107.5 kB / 1.059 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002016/0.3908, allocations: 214.5 kB / 1.059 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.00126/0.3921, allocations: 0.8059 MB / 1.06 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3921, allocations: 3.938 kB / 1.06 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.194e-06/0.3921, allocations: 0 / 1.06 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.08e-05/0.3921, allocations: 4 kB / 1.06 GB, free: 1.133 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001822/0.3939, allocations: 0.8759 MB / 1.061 GB, free: 204 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.394, allocations: 12.03 kB / 1.061 GB, free: 192 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.3941, allocations: 60.19 kB / 1.061 GB, free: 132 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005336/0.3947, allocations: 392.2 kB / 1.061 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.3947, allocations: 4.312 kB / 1.061 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.647e-05/0.3947, allocations: 16.36 kB / 1.061 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000249/0.395, allocations: 125.9 kB / 1.061 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.395, allocations: 4 kB / 1.061 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.539e-05/0.395, allocations: 8 kB / 1.061 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.395, allocations: 0 / 1.061 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000157/0.3952, allocations: 99.88 kB / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008484/0.3961, allocations: 0.5509 MB / 1.062 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001761/0.3963, allocations: 110.5 kB / 1.062 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.929e-05/0.3964, allocations: 56.98 kB / 1.062 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.31e-05/0.3964, allocations: 8.172 kB / 1.062 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002825/0.3967, allocations: 133.1 kB / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.693e-06/0.3967, allocations: 3.938 kB / 1.062 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.000569/0.3973, allocations: 310.4 kB / 1.062 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.67e-05/0.3974, allocations: 77.11 kB / 1.062 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00116/0.3985, allocations: 0.7974 MB / 1.063 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.196e-05/0.3986, allocations: 29.7 kB / 1.063 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003175/0.3989, allocations: 288.2 kB / 1.064 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.007e-05/0.3989, allocations: 27.64 kB / 1.064 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.555e-05/0.399, allocations: 25.72 kB / 1.064 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000195/0.3992, allocations: 314 kB / 1.064 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.005e-05/0.3993, allocations: 47.97 kB / 1.064 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.697e-05/0.3994, allocations: 43.98 kB / 1.064 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001779/0.3996, allocations: 164.2 kB / 1.064 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3996, allocations: 0 / 1.064 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.00036/0.3999, allocations: 270.9 kB / 1.064 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.481e-05/0.4, allocations: 37.7 kB / 1.064 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.4, allocations: 0 / 1.064 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.4, allocations: 0 / 1.064 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.4001, allocations: 11.98 kB / 1.064 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.4002, allocations: 0 / 1.064 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/0.4003, allocations: 11.84 kB / 1.064 GB, free: 12 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.357e-05/0.4003, allocations: 4 kB / 1.064 GB, free: 11.99 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (booleanToInteger.y,greaterThreshold.y,speRat.nextEventScaled,speRat.nextEvent,$PRE.speRat.nextEvent,speRat.last,speRat.b,speRat.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003417/0.4007, allocations: 350.4 kB / 1.065 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.138e-05/0.4008, allocations: 75.03 kB / 1.065 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004365/0.4012, allocations: 297 kB / 1.065 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.4012, allocations: 0 / 1.065 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.4012, allocations: 0 / 1.065 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.4012, allocations: 0 / 1.065 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004904/0.4017, allocations: 377.4 kB / 1.066 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.4017, allocations: 3.938 kB / 1.066 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.995e-05/0.4018, allocations: 8 kB / 1.066 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.4018, allocations: 4 kB / 1.066 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.4018, allocations: 11.98 kB / 1.066 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.4018, allocations: 0 / 1.066 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4018, allocations: 3.938 kB / 1.066 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003596/0.4022, allocations: 305.9 kB / 1.066 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001406/0.4023, allocations: 148.2 kB / 1.066 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.824e-05/0.4024, allocations: 3.984 kB / 1.066 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.4025, allocations: 4.188 kB / 1.066 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.071e-05/0.4026, allocations: 15.98 kB / 1.066 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/0.4027, allocations: 8 kB / 1.066 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0006582/0.4034, allocations: 0.5848 MB / 1.067 GB, free: 9.703 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4034, allocations: 0 / 1.067 GB, free: 9.703 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004451/0.4038, allocations: 124 kB / 1.067 GB, free: 9.582 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,speRat.a,speRat.b,speRat.last,speRat.nextEvent,speRat.nextEventScaled,greaterThreshold.y,booleanToInteger.y) * Number of discrete states: 6 (speRat.nextEvent,speRat.last,speRat.nextEventScaled,speRat.b,speRat.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004401/0.4043, allocations: 193.5 kB / 1.067 GB, free: 9.387 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000328/0.4046, allocations: 215.3 kB / 1.067 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.4046, allocations: 4 kB / 1.067 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001485/0.4048, allocations: 143.4 kB / 1.067 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006053/0.4054, allocations: 125.3 kB / 1.067 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001804/0.4072, allocations: 1.191 MB / 1.069 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007174/0.4079, allocations: 0.9742 MB / 1.069 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001163/0.4081, allocations: 25.95 kB / 1.069 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.307e-05/0.4081, allocations: 19.44 kB / 1.07 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of SimCode: time 6.51e-07/0.4081, allocations: 0 / 1.07 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of Templates: time 0.01154/0.4197, allocations: 5.506 MB / 1.075 GB, free: 1.207 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.makefile (rm -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.sim & ./Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches