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.007272/0.007273, allocations: 98.02 kB / 15.73 MB, free: 6.062 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.002126/0.002126, allocations: 194.2 kB / 16.68 MB, free: 5.969 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.391/1.391, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.521/2.521, allocations: 437.1 MB / 0.7105 GB, free: 4.328 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 67.91 kB / 1.018 GB, free: 9.816 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6594/0.6613, allocations: 151.6 MB / 1.166 GB, free: 3.75 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.003287/0.6646, allocations: 2.057 MB / 1.168 GB, free: 1.68 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.003452/0.6681, allocations: 2.601 MB / 1.171 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.186e-05/0.6682, allocations: 4 kB / 1.171 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001216/0.6695, allocations: 0.5052 MB / 1.171 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0001306/0.6696, allocations: 71.59 kB / 1.171 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007715/0.6704, allocations: 272.8 kB / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0004205/0.6708, allocations: 327.5 kB / 1.172 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001731/0.671, allocations: 93.05 kB / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.6711, allocations: 111.5 kB / 1.172 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001924/0.6713, allocations: 127.2 kB / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 3.427e-05/0.6714, allocations: 8 kB / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005352/0.6719, allocations: 331.5 kB / 1.173 GB, free: 13.24 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001178/0.672, allocations: 99.55 kB / 1.173 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.000198/0.6723, allocations: 214.5 kB / 1.173 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0009113/0.6732, allocations: 0.821 MB / 1.174 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.6732, allocations: 0 / 1.174 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.092e-06/0.6732, allocations: 0 / 1.174 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.184e-06/0.6732, allocations: 4 kB / 1.174 GB, free: 12.11 MB / 0.9044 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.001065/0.6743, allocations: 0.895 MB / 1.174 GB, free: 11.15 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.6743, allocations: 8.625 kB / 1.174 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.544e-05/0.6744, allocations: 50.73 kB / 1.175 GB, free: 11.09 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.144e-05/0.6745, allocations: 64.52 kB / 1.175 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004811/0.675, allocations: 400.9 kB / 1.175 GB, free: 10.59 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.675, allocations: 4.375 kB / 1.175 GB, free: 10.59 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.714e-05/0.675, allocations: 8.375 kB / 1.175 GB, free: 10.58 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002378/0.6752, allocations: 130.9 kB / 1.175 GB, free: 10.45 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.6753, allocations: 0 / 1.175 GB, free: 10.45 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.368e-05/0.6753, allocations: 4 kB / 1.175 GB, free: 10.44 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.73e-06/0.6753, allocations: 4 kB / 1.175 GB, free: 10.44 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001738/0.6755, allocations: 99.78 kB / 1.175 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007596/0.6762, allocations: 0.5511 MB / 1.176 GB, free: 9.738 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001797/0.6764, allocations: 106.5 kB / 1.176 GB, free: 9.625 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.2e-05/0.6765, allocations: 61.16 kB / 1.176 GB, free: 9.562 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.692e-05/0.6766, allocations: 7.938 kB / 1.176 GB, free: 9.555 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002088/0.6768, allocations: 141 kB / 1.176 GB, free: 9.398 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=11): time 1.413e-06/0.6768, allocations: 4 kB / 1.176 GB, free: 9.395 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11): time 0.0004948/0.6773, allocations: 310.9 kB / 1.176 GB, free: 9.078 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.6774, allocations: 85.03 kB / 1.176 GB, free: 8.977 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009606/0.6783, allocations: 0.8012 MB / 1.177 GB, free: 8.168 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.6784, allocations: 25.7 kB / 1.177 GB, free: 8.137 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002758/0.6787, allocations: 288.3 kB / 1.178 GB, free: 7.852 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.277e-05/0.6787, allocations: 27.75 kB / 1.178 GB, free: 7.824 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.502e-05/0.6788, allocations: 29.7 kB / 1.178 GB, free: 7.789 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.6789, allocations: 314 kB / 1.178 GB, free: 7.477 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.373e-05/0.679, allocations: 47.97 kB / 1.178 GB, free: 7.43 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.96e-05/0.6791, allocations: 39.98 kB / 1.178 GB, free: 7.391 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001915/0.6793, allocations: 168.5 kB / 1.178 GB, free: 7.211 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.6793, allocations: 4 kB / 1.178 GB, free: 7.207 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003472/0.6796, allocations: 262.9 kB / 1.178 GB, free: 6.938 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.341e-05/0.6797, allocations: 41.69 kB / 1.178 GB, free: 6.891 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.6797, allocations: 4 kB / 1.178 GB, free: 6.887 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.6797, allocations: 4 kB / 1.178 GB, free: 6.883 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.299e-05/0.6798, allocations: 8 kB / 1.178 GB, free: 6.875 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.6798, allocations: 0 / 1.178 GB, free: 6.875 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001196/0.6799, allocations: 11.95 kB / 1.178 GB, free: 6.863 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.059e-05/0.6799, allocations: 7.984 kB / 1.178 GB, free: 6.855 MB / 0.9044 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.0003357/0.6803, allocations: 333.6 kB / 1.179 GB, free: 6.516 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.484e-05/0.6804, allocations: 79.44 kB / 1.179 GB, free: 6.438 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004463/0.6808, allocations: 293 kB / 1.179 GB, free: 6.133 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.6808, allocations: 4 kB / 1.179 GB, free: 6.129 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.6808, allocations: 0 / 1.179 GB, free: 6.129 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.6809, allocations: 0 / 1.179 GB, free: 6.129 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004006/0.6813, allocations: 389.3 kB / 1.18 GB, free: 5.699 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.6813, allocations: 0 / 1.18 GB, free: 5.699 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-05/0.6813, allocations: 7.984 kB / 1.18 GB, free: 5.691 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.6813, allocations: 0 / 1.18 GB, free: 5.691 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.58e-05/0.6813, allocations: 8 kB / 1.18 GB, free: 5.684 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.6813, allocations: 0 / 1.18 GB, free: 5.684 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.6813, allocations: 0 / 1.18 GB, free: 5.684 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000409/0.6818, allocations: 334 kB / 1.18 GB, free: 5.332 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001436/0.6819, allocations: 140.7 kB / 1.18 GB, free: 5.176 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.293e-05/0.682, allocations: 4 kB / 1.18 GB, free: 5.172 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.6821, allocations: 7.984 kB / 1.18 GB, free: 5.164 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.568e-05/0.6821, allocations: 4 kB / 1.18 GB, free: 5.16 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.6822, allocations: 7.938 kB / 1.18 GB, free: 5.152 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0007025/0.6829, allocations: 0.5848 MB / 1.181 GB, free: 4.574 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6829, allocations: 0 / 1.181 GB, free: 4.574 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003967/0.6833, allocations: 131.8 kB / 1.181 GB, free: 4.445 MB / 0.9044 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.00098/0.6843, allocations: 0.9397 MB / 1.182 GB, free: 3.473 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003059/0.6846, allocations: 207.3 kB / 1.182 GB, free: 3.258 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.6846, allocations: 0 / 1.182 GB, free: 3.258 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.000163/0.6848, allocations: 155.3 kB / 1.182 GB, free: 3.094 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00053/0.6853, allocations: 129.4 kB / 1.182 GB, free: 2.969 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005676/0.691, allocations: 4.675 MB / 1.187 GB, free: 14.19 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006602/0.6917, allocations: 0.9782 MB / 1.188 GB, free: 13.18 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 9.993e-05/0.6918, allocations: 25.95 kB / 1.188 GB, free: 13.16 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002036/0.692, allocations: 167.4 kB / 1.188 GB, free: 13 MB / 0.92 GB Notification: Performance of SimCode: time 5.11e-07/0.692, allocations: 0 / 1.188 GB, free: 13 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.035/0.727, allocations: 12.06 MB / 1.2 GB, free: 1.188 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.98/9.707, allocations: 10.8 kB / 1.2 GB, free: 1.184 MB / 0.92 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