Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.007991/0.007991, allocations: 100.3 kB / 15.73 MB, free: 5.988 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.001933/0.001933, allocations: 188 kB / 16.67 MB, free: 5.91 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.814/2.814, allocations: 469.8 MB / 0.7425 GB, free: 3.387 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 67.89 kB / 1.065 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9081/0.9094, allocations: 159.1 MB / 1.221 GB, free: 2.152 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.003658/0.913, allocations: 2.044 MB / 1.223 GB, free: 104 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003972/0.917, allocations: 2.612 MB / 1.225 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001898/0.9172, allocations: 0 / 1.225 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.00154/0.9187, allocations: 0.51 MB / 1.226 GB, free: 12.97 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001858/0.9189, allocations: 67.59 kB / 1.226 GB, free: 12.91 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009855/0.9199, allocations: 274.5 kB / 1.226 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0005316/0.9204, allocations: 330.3 kB / 1.226 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/0.9206, allocations: 65.03 kB / 1.226 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001866/0.9208, allocations: 107.5 kB / 1.226 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002287/0.921, allocations: 139.2 kB / 1.227 GB, free: 12.01 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.64e-05/0.921, allocations: 8 kB / 1.227 GB, free: 12 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005735/0.9216, allocations: 319.5 kB / 1.227 GB, free: 11.69 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001305/0.9218, allocations: 107.5 kB / 1.227 GB, free: 11.58 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002196/0.922, allocations: 210.5 kB / 1.227 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001182/0.9232, allocations: 0.8288 MB / 1.228 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.9232, allocations: 0 / 1.228 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.272e-06/0.9232, allocations: 0 / 1.228 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.939e-05/0.9232, allocations: 4 kB / 1.228 GB, free: 10.54 MB / 0.9512 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.00148/0.9247, allocations: 0.8873 MB / 1.229 GB, free: 9.594 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.9247, allocations: 8.625 kB / 1.229 GB, free: 9.586 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.9248, allocations: 72.47 kB / 1.229 GB, free: 9.516 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000532/0.9254, allocations: 392.9 kB / 1.229 GB, free: 9.09 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.362e-05/0.9254, allocations: 8.375 kB / 1.229 GB, free: 9.082 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.247e-05/0.9254, allocations: 8.375 kB / 1.229 GB, free: 9.074 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002664/0.9257, allocations: 133.8 kB / 1.23 GB, free: 8.938 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.9257, allocations: 7.938 kB / 1.23 GB, free: 8.93 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.792e-05/0.9257, allocations: 4 kB / 1.23 GB, free: 8.926 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.9257, allocations: 0 / 1.23 GB, free: 8.926 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001662/0.9259, allocations: 103.9 kB / 1.23 GB, free: 8.824 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009495/0.9268, allocations: 0.5472 MB / 1.23 GB, free: 8.227 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001735/0.927, allocations: 94.53 kB / 1.23 GB, free: 8.125 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.722e-05/0.9271, allocations: 56.97 kB / 1.23 GB, free: 8.066 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.292e-05/0.9271, allocations: 8.172 kB / 1.23 GB, free: 8.059 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002205/0.9273, allocations: 141 kB / 1.23 GB, free: 7.902 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=11): time 1.413e-06/0.9273, allocations: 0 / 1.23 GB, free: 7.902 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.000543/0.9279, allocations: 310.8 kB / 1.231 GB, free: 7.586 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/0.9279, allocations: 81.09 kB / 1.231 GB, free: 7.488 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001058/0.929, allocations: 0.7934 MB / 1.232 GB, free: 6.688 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.354e-05/0.929, allocations: 33.7 kB / 1.232 GB, free: 6.648 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002818/0.9293, allocations: 288.2 kB / 1.232 GB, free: 6.363 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.398e-05/0.9294, allocations: 23.8 kB / 1.232 GB, free: 6.34 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.049e-05/0.9294, allocations: 33.7 kB / 1.232 GB, free: 6.301 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.9295, allocations: 306 kB / 1.232 GB, free: 5.996 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.712e-05/0.9296, allocations: 47.97 kB / 1.232 GB, free: 5.949 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.297e-05/0.9297, allocations: 48.31 kB / 1.232 GB, free: 5.902 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001734/0.9299, allocations: 160.3 kB / 1.232 GB, free: 5.73 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.9299, allocations: 8 kB / 1.232 GB, free: 5.723 MB / 0.9512 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003553/0.9302, allocations: 274.8 kB / 1.233 GB, free: 5.441 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.623e-05/0.9303, allocations: 33.7 kB / 1.233 GB, free: 5.402 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.9303, allocations: 3.984 kB / 1.233 GB, free: 5.398 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.9303, allocations: 0 / 1.233 GB, free: 5.398 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.759e-05/0.9304, allocations: 8 kB / 1.233 GB, free: 5.391 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.9304, allocations: 0 / 1.233 GB, free: 5.391 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001421/0.9306, allocations: 15.89 kB / 1.233 GB, free: 5.375 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.286e-05/0.9306, allocations: 4 kB / 1.233 GB, free: 5.371 MB / 0.9512 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.0003689/0.931, allocations: 347.8 kB / 1.233 GB, free: 5.016 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.472e-05/0.931, allocations: 71.52 kB / 1.233 GB, free: 4.945 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000446/0.9315, allocations: 304.9 kB / 1.234 GB, free: 4.621 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.9315, allocations: 0 / 1.234 GB, free: 4.621 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.9315, allocations: 0 / 1.234 GB, free: 4.621 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.9315, allocations: 0 / 1.234 GB, free: 4.621 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003806/0.9319, allocations: 381.4 kB / 1.234 GB, free: 4.199 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.9319, allocations: 3.938 kB / 1.234 GB, free: 4.195 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.226e-05/0.9319, allocations: 7.938 kB / 1.234 GB, free: 4.188 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.9319, allocations: 0 / 1.234 GB, free: 4.188 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.97e-05/0.932, allocations: 11.98 kB / 1.234 GB, free: 4.176 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.932, allocations: 0 / 1.234 GB, free: 4.176 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.932, allocations: 3.938 kB / 1.234 GB, free: 4.172 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003875/0.9323, allocations: 310.3 kB / 1.234 GB, free: 3.844 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001435/0.9325, allocations: 152.5 kB / 1.234 GB, free: 3.676 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.006e-05/0.9325, allocations: 4 kB / 1.234 GB, free: 3.672 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.9327, allocations: 7.984 kB / 1.234 GB, free: 3.664 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.086e-05/0.9327, allocations: 8 kB / 1.234 GB, free: 3.656 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.9327, allocations: 8 kB / 1.234 GB, free: 3.648 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0007691/0.9335, allocations: 0.5848 MB / 1.235 GB, free: 3.07 MB / 0.9512 GB Notification: Performance of sort global known variables: time 8.1e-08/0.9335, allocations: 0 / 1.235 GB, free: 3.07 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004434/0.9339, allocations: 123.9 kB / 1.235 GB, free: 2.949 MB / 0.9512 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.0004399/0.9344, allocations: 190.9 kB / 1.235 GB, free: 2.754 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003312/0.9347, allocations: 179.3 kB / 1.235 GB, free: 2.566 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.9347, allocations: 0 / 1.235 GB, free: 2.566 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001262/0.9348, allocations: 119.4 kB / 1.236 GB, free: 2.438 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005682/0.9354, allocations: 135.6 kB / 1.236 GB, free: 2.305 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001687/0.9371, allocations: 1.084 MB / 1.237 GB, free: 1.191 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006213/0.9377, allocations: 0.9743 MB / 1.238 GB, free: 196 kB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001205/0.9378, allocations: 29.88 kB / 1.238 GB, free: 168 kB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.706e-05/0.9379, allocations: 19.44 kB / 1.238 GB, free: 152 kB / 0.9512 GB Notification: Performance of SimCode: time 7.22e-07/0.9379, allocations: 0 / 1.238 GB, free: 152 kB / 0.9512 GB Notification: Performance of Templates: time 0.01459/0.9525, allocations: 5.589 MB / 1.243 GB, free: 10.67 MB / 0.9669 GB make -j1 -f Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.makefile (rm -f Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.sim & ./Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches