Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001662/0.001662, allocations: 103.6 kB / 18.95 MB, free: 2.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002312/0.002312, allocations: 215.7 kB / 22.25 MB, free: 5.258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.473/1.473, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.166/3.166, allocations: 0.49 GB / 0.7951 GB, free: 35.45 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_12_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_12_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002094/0.002094, allocations: 71.8 kB / 1.154 GB, free: 25.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3728/0.3749, allocations: 176.1 MB / 1.326 GB, free: 1.48 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.003912/0.3788, allocations: 2.02 MB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003735/0.3826, allocations: 2.367 MB / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.3827, allocations: 3.938 kB / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001271/0.384, allocations: 457.9 kB / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001428/0.3841, allocations: 67.59 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008914/0.385, allocations: 286.3 kB / 1.331 GB, free: 12.28 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004483/0.3855, allocations: 318.3 kB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001536/0.3856, allocations: 49.19 kB / 1.331 GB, free: 11.91 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001343/0.3857, allocations: 119.4 kB / 1.331 GB, free: 11.79 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002031/0.3859, allocations: 143.3 kB / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.312e-05/0.386, allocations: 11.94 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005575/0.3865, allocations: 347.5 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001415/0.3867, allocations: 107.5 kB / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001862/0.3869, allocations: 146.9 kB / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.001117/0.388, allocations: 0.8288 MB / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 1.037e-05/0.388, allocations: 0 / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.645e-06/0.388, allocations: 0 / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.281e-05/0.388, allocations: 0 / 1.333 GB, free: 10.22 MB / 1.029 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.001313/0.3893, allocations: 0.8236 MB / 1.334 GB, free: 9.355 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.3894, allocations: 12.03 kB / 1.334 GB, free: 9.344 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.227e-05/0.3894, allocations: 42.73 kB / 1.334 GB, free: 9.293 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.499e-05/0.3895, allocations: 68.52 kB / 1.334 GB, free: 9.227 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005254/0.39, allocations: 331.1 kB / 1.334 GB, free: 8.875 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.873e-05/0.3901, allocations: 8.375 kB / 1.334 GB, free: 8.867 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.462e-05/0.3901, allocations: 8.375 kB / 1.334 GB, free: 8.859 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002723/0.3904, allocations: 164.1 kB / 1.334 GB, free: 8.688 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.3904, allocations: 0 / 1.334 GB, free: 8.688 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.3904, allocations: 4 kB / 1.334 GB, free: 8.684 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.3904, allocations: 4 kB / 1.334 GB, free: 8.68 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001882/0.3906, allocations: 133.6 kB / 1.334 GB, free: 8.543 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007767/0.3914, allocations: 0.4995 MB / 1.335 GB, free: 8 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002003/0.3916, allocations: 132.2 kB / 1.335 GB, free: 7.855 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.3917, allocations: 86.86 kB / 1.335 GB, free: 7.762 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.159e-05/0.3917, allocations: 7.938 kB / 1.335 GB, free: 7.754 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002289/0.3919, allocations: 166.7 kB / 1.335 GB, free: 7.566 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.282e-06/0.3919, allocations: 0 / 1.335 GB, free: 7.566 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.0005315/0.3925, allocations: 374.2 kB / 1.336 GB, free: 7.176 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.009e-05/0.3925, allocations: 89.09 kB / 1.336 GB, free: 7.07 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009972/0.3935, allocations: 0.7935 MB / 1.337 GB, free: 6.266 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.3935, allocations: 25.7 kB / 1.337 GB, free: 6.234 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002899/0.3938, allocations: 292.2 kB / 1.337 GB, free: 5.945 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.478e-05/0.3939, allocations: 23.8 kB / 1.337 GB, free: 5.922 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.531e-05/0.3939, allocations: 25.7 kB / 1.337 GB, free: 5.891 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.3941, allocations: 314 kB / 1.337 GB, free: 5.578 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.3942, allocations: 77.67 kB / 1.337 GB, free: 5.496 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.475e-05/0.3943, allocations: 81.61 kB / 1.337 GB, free: 5.41 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002016/0.3945, allocations: 164.6 kB / 1.338 GB, free: 5.234 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3945, allocations: 0 / 1.338 GB, free: 5.234 MB / 1.029 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004186/0.3949, allocations: 320.4 kB / 1.338 GB, free: 4.902 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.175e-05/0.3949, allocations: 45.69 kB / 1.338 GB, free: 4.852 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.3949, allocations: 0 / 1.338 GB, free: 4.852 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.395, allocations: 3.984 kB / 1.338 GB, free: 4.848 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.56e-05/0.395, allocations: 8 kB / 1.338 GB, free: 4.84 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.395, allocations: 0 / 1.338 GB, free: 4.84 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001234/0.3952, allocations: 7.938 kB / 1.338 GB, free: 4.832 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.226e-05/0.3952, allocations: 4 kB / 1.338 GB, free: 4.828 MB / 1.029 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.0003561/0.3955, allocations: 341.6 kB / 1.338 GB, free: 4.48 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.104e-05/0.3956, allocations: 79.45 kB / 1.338 GB, free: 4.402 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000478/0.3961, allocations: 326.7 kB / 1.339 GB, free: 4.059 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.411e-06/0.3961, allocations: 7.984 kB / 1.339 GB, free: 4.051 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3961, allocations: 0 / 1.339 GB, free: 4.051 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3961, allocations: 3.938 kB / 1.339 GB, free: 4.047 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003908/0.3965, allocations: 336.5 kB / 1.339 GB, free: 3.676 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.3965, allocations: 0 / 1.339 GB, free: 3.676 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.999e-05/0.3966, allocations: 8 kB / 1.339 GB, free: 3.668 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.3966, allocations: 0 / 1.339 GB, free: 3.668 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/0.3966, allocations: 4 kB / 1.339 GB, free: 3.664 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3966, allocations: 0 / 1.339 GB, free: 3.664 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3966, allocations: 0 / 1.339 GB, free: 3.664 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004475/0.397, allocations: 355.8 kB / 1.339 GB, free: 3.285 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001538/0.3972, allocations: 83.45 kB / 1.339 GB, free: 3.203 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.429e-05/0.3972, allocations: 4.188 kB / 1.339 GB, free: 3.199 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.3973, allocations: 8 kB / 1.339 GB, free: 3.191 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.232e-05/0.3974, allocations: 7.984 kB / 1.339 GB, free: 3.184 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.3974, allocations: 8 kB / 1.339 GB, free: 3.176 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0006907/0.3981, allocations: 0.5848 MB / 1.34 GB, free: 2.598 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3981, allocations: 0 / 1.34 GB, free: 2.598 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0004474/0.3985, allocations: 123.9 kB / 1.34 GB, free: 2.477 MB / 1.029 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.0009967/0.3995, allocations: 0.9743 MB / 1.341 GB, free: 1.461 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003383/0.3999, allocations: 246.7 kB / 1.341 GB, free: 1.195 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3999, allocations: 0 / 1.341 GB, free: 1.195 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001644/0.4, allocations: 149.1 kB / 1.341 GB, free: 1.031 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006021/0.4006, allocations: 128.7 kB / 1.342 GB, free: 0.9023 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006156/0.4068, allocations: 4.849 MB / 1.346 GB, free: 11.92 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004206/0.4072, allocations: 374.9 kB / 1.347 GB, free: 11.53 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001235/0.4073, allocations: 33.88 kB / 1.347 GB, free: 11.5 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002157/0.4076, allocations: 167.4 kB / 1.347 GB, free: 11.34 MB / 1.045 GB Notification: Performance of SimCode: time 1.332e-06/0.4076, allocations: 0 / 1.347 GB, free: 11.34 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04655/0.4541, allocations: 13.14 MB / 1.36 GB, free: 14.46 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.77, allocations: 6.188 kB / 1.36 GB, free: 14.46 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_12_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift.fmu > Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable speShi.speRat in file Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.csv. Warning: Get data of variable speShi.speRat from file Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.607063253002707]