Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_10_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_10_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.396/1.396, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.54/2.54, allocations: 437.1 MB / 0.7104 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 63.91 kB / 0.8694 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4889/0.4902, allocations: 151.6 MB / 1.017 GB, free: 2.492 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.00304/0.4932, allocations: 2.052 MB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002984/0.4962, allocations: 2.601 MB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.806e-05/0.4963, allocations: 4 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001101/0.4974, allocations: 0.5116 MB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001195/0.4976, allocations: 71.53 kB / 1.023 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006621/0.4982, allocations: 271.3 kB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003463/0.4986, allocations: 322.3 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001533/0.4988, allocations: 97.05 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.4989, allocations: 103.5 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001635/0.4991, allocations: 135.2 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.164e-05/0.4991, allocations: 8 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004696/0.4996, allocations: 315.6 kB / 1.024 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.4997, allocations: 103.5 kB / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001754/0.4999, allocations: 218.4 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007284/0.5006, allocations: 0.8099 MB / 1.025 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.5006, allocations: 0 / 1.025 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.112e-06/0.5006, allocations: 0 / 1.025 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.5006, allocations: 0 / 1.025 GB, free: 10.86 MB / 0.7794 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.0009334/0.5016, allocations: 0.8643 MB / 1.026 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.5016, allocations: 16.03 kB / 1.026 GB, free: 9.926 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.23e-05/0.5017, allocations: 46.67 kB / 1.026 GB, free: 9.871 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.179e-05/0.5017, allocations: 60.19 kB / 1.026 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003668/0.5021, allocations: 388.2 kB / 1.026 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.5021, allocations: 8.375 kB / 1.026 GB, free: 9.387 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.187e-05/0.5022, allocations: 8.375 kB / 1.026 GB, free: 9.379 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002182/0.5024, allocations: 138.8 kB / 1.026 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.054e-06/0.5024, allocations: 0 / 1.026 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.5024, allocations: 4 kB / 1.026 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.5024, allocations: 0 / 1.026 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001498/0.5026, allocations: 103.9 kB / 1.026 GB, free: 9.133 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006804/0.5033, allocations: 0.547 MB / 1.027 GB, free: 8.535 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001584/0.5034, allocations: 106.5 kB / 1.027 GB, free: 8.422 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.31e-05/0.5035, allocations: 61.17 kB / 1.027 GB, free: 8.359 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.237e-05/0.5036, allocations: 15.92 kB / 1.027 GB, free: 8.344 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000188/0.5038, allocations: 129.1 kB / 1.027 GB, free: 8.199 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.433e-06/0.5038, allocations: 0 / 1.027 GB, free: 8.199 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004369/0.5042, allocations: 314.3 kB / 1.028 GB, free: 7.879 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/0.5043, allocations: 81.11 kB / 1.028 GB, free: 7.781 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008342/0.5051, allocations: 0.7896 MB / 1.028 GB, free: 6.984 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.446e-05/0.5051, allocations: 29.7 kB / 1.028 GB, free: 6.949 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002411/0.5054, allocations: 288.3 kB / 1.029 GB, free: 6.664 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.889e-05/0.5054, allocations: 31.55 kB / 1.029 GB, free: 6.633 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.878e-05/0.5055, allocations: 29.72 kB / 1.029 GB, free: 6.598 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.294e-05/0.5056, allocations: 310 kB / 1.029 GB, free: 6.289 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.869e-05/0.5057, allocations: 43.98 kB / 1.029 GB, free: 6.246 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.709e-05/0.5057, allocations: 51.91 kB / 1.029 GB, free: 6.195 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001658/0.5059, allocations: 156.2 kB / 1.029 GB, free: 6.027 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.5059, allocations: 0 / 1.029 GB, free: 6.027 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003096/0.5062, allocations: 274.9 kB / 1.03 GB, free: 5.746 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.066e-05/0.5063, allocations: 37.7 kB / 1.03 GB, free: 5.703 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.367e-06/0.5063, allocations: 0 / 1.03 GB, free: 5.703 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.538e-06/0.5063, allocations: 0 / 1.03 GB, free: 5.703 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.822e-05/0.5064, allocations: 11.98 kB / 1.03 GB, free: 5.691 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.5064, allocations: 0 / 1.03 GB, free: 5.691 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.5065, allocations: 15.84 kB / 1.03 GB, free: 5.676 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.695e-05/0.5065, allocations: 4.062 kB / 1.03 GB, free: 5.672 MB / 0.7794 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.0002991/0.5068, allocations: 335.4 kB / 1.03 GB, free: 5.328 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.518e-05/0.5069, allocations: 71.19 kB / 1.03 GB, free: 5.258 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004116/0.5073, allocations: 304.9 kB / 1.03 GB, free: 4.941 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.5073, allocations: 0 / 1.03 GB, free: 4.941 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.5074, allocations: 0 / 1.03 GB, free: 4.941 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.5074, allocations: 0 / 1.03 GB, free: 4.941 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003459/0.5077, allocations: 385.3 kB / 1.031 GB, free: 4.516 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.5077, allocations: 3.938 kB / 1.031 GB, free: 4.512 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.101e-05/0.5078, allocations: 11.94 kB / 1.031 GB, free: 4.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.5078, allocations: 0 / 1.031 GB, free: 4.5 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.5078, allocations: 4 kB / 1.031 GB, free: 4.496 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.5078, allocations: 0 / 1.031 GB, free: 4.496 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.5078, allocations: 4 kB / 1.031 GB, free: 4.492 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003553/0.5082, allocations: 309.9 kB / 1.031 GB, free: 4.164 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/0.5083, allocations: 144.3 kB / 1.031 GB, free: 4.004 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.666e-05/0.5084, allocations: 4 kB / 1.031 GB, free: 4 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.5085, allocations: 4 kB / 1.031 GB, free: 3.996 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.643e-05/0.5085, allocations: 11.92 kB / 1.031 GB, free: 3.984 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.541e-05/0.5085, allocations: 8 kB / 1.031 GB, free: 3.977 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0006466/0.5092, allocations: 0.5927 MB / 1.032 GB, free: 3.387 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5092, allocations: 0 / 1.032 GB, free: 3.387 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003651/0.5096, allocations: 127.9 kB / 1.032 GB, free: 3.262 MB / 0.7794 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.0008335/0.5104, allocations: 0.9375 MB / 1.033 GB, free: 2.289 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002747/0.5107, allocations: 211.3 kB / 1.033 GB, free: 2.07 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.5107, allocations: 4 kB / 1.033 GB, free: 2.066 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001404/0.5109, allocations: 143.4 kB / 1.033 GB, free: 1.914 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005184/0.5114, allocations: 124.6 kB / 1.033 GB, free: 1.797 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005004/0.5164, allocations: 4.782 MB / 1.038 GB, free: 12.92 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005345/0.5169, allocations: 0.986 MB / 1.039 GB, free: 11.91 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 8.494e-05/0.517, allocations: 25.95 kB / 1.039 GB, free: 11.88 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001824/0.5172, allocations: 163.4 kB / 1.039 GB, free: 11.72 MB / 0.795 GB Notification: Performance of SimCode: time 2.61e-07/0.5172, allocations: 3.938 kB / 1.039 GB, free: 11.72 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02898/0.5462, allocations: 11.91 MB / 1.051 GB, free: 32 kB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.318/7.864, allocations: 7.812 kB / 1.051 GB, free: 28 kB / 0.795 GB (rm -f Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_10_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift.fmu > Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[505]=3600.000000 File[1208]=2249.280000 Error: Could not read variable speShi.speRat in file Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.csv. Warning: Get data of variable speShi.speRat from file Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.csv failed! " Variables in the reference:time,speShi.y,speShi.speRat Variables in the result:time,speRat.y,speShi.y,datCoi.PLFraFunPLR[1],datCoi.QCraCap,datCoi.QDefResCap