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: "" <> buildModelFMU(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_latest_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.001112/0.001112, allocations: 108 kB / 15.61 MB, free: 128 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.001128/0.001128, allocations: 198.1 kB / 16.53 MB, free: 6.672 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.311/1.311, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.674/2.674, allocations: 469.4 MB / 0.742 GB, free: 7.664 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 66.84 kB / 0.9083 GB, free: 34.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.3274, allocations: 159.1 MB / 1.064 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.003143/0.3306, allocations: 2.047 MB / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003175/0.3338, allocations: 2.6 MB / 1.068 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.077e-05/0.3339, allocations: 0 / 1.068 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001222/0.3351, allocations: 0.5136 MB / 1.069 GB, free: 9.27 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000134/0.3353, allocations: 63.59 kB / 1.069 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007474/0.336, allocations: 279.3 kB / 1.069 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003792/0.3364, allocations: 328.2 kB / 1.069 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.3366, allocations: 93.05 kB / 1.069 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.3367, allocations: 107.5 kB / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001703/0.3369, allocations: 131.2 kB / 1.07 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.43e-05/0.337, allocations: 8 kB / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004825/0.3375, allocations: 315.5 kB / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.3376, allocations: 107.5 kB / 1.07 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001839/0.3378, allocations: 214.5 kB / 1.07 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007984/0.3386, allocations: 0.8098 MB / 1.071 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.3386, allocations: 4 kB / 1.071 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.132e-06/0.3386, allocations: 0 / 1.071 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.094e-05/0.3386, allocations: 0 / 1.071 GB, free: 6.832 MB / 0.8262 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.001045/0.3397, allocations: 0.8737 MB / 1.072 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.3397, allocations: 8.031 kB / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.438e-05/0.3397, allocations: 42.73 kB / 1.072 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.745e-05/0.3398, allocations: 68.09 kB / 1.072 GB, free: 5.777 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003858/0.3402, allocations: 388.3 kB / 1.072 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.3402, allocations: 12.38 kB / 1.072 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.639e-05/0.3403, allocations: 4.375 kB / 1.072 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002245/0.3405, allocations: 133.8 kB / 1.073 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.3405, allocations: 0 / 1.073 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.3405, allocations: 0 / 1.073 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.3405, allocations: 4 kB / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001528/0.3407, allocations: 99.94 kB / 1.073 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000705/0.3414, allocations: 0.5431 MB / 1.073 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001623/0.3416, allocations: 114.5 kB / 1.073 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.337e-05/0.3417, allocations: 61.17 kB / 1.073 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.505e-05/0.3417, allocations: 11.92 kB / 1.073 GB, free: 4.316 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002163/0.342, allocations: 133.1 kB / 1.074 GB, free: 4.168 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/0.342, allocations: 0 / 1.074 GB, free: 4.168 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004535/0.3424, allocations: 322.4 kB / 1.074 GB, free: 3.84 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.636e-05/0.3425, allocations: 85.09 kB / 1.074 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008543/0.3433, allocations: 0.7896 MB / 1.075 GB, free: 2.941 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.3434, allocations: 29.7 kB / 1.075 GB, free: 2.906 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002389/0.3436, allocations: 288.2 kB / 1.075 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.006e-05/0.3437, allocations: 27.64 kB / 1.075 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.228e-05/0.3437, allocations: 29.7 kB / 1.075 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.289e-05/0.3438, allocations: 306 kB / 1.075 GB, free: 2.254 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.516e-05/0.3439, allocations: 51.97 kB / 1.075 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.643e-05/0.344, allocations: 43.98 kB / 1.075 GB, free: 2.16 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001743/0.3442, allocations: 160.6 kB / 1.076 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3442, allocations: 0 / 1.076 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003321/0.3445, allocations: 278.3 kB / 1.076 GB, free: 1.703 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.338e-05/0.3445, allocations: 31.42 kB / 1.076 GB, free: 1.668 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.3446, allocations: 0 / 1.076 GB, free: 1.668 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.3446, allocations: 7.984 kB / 1.076 GB, free: 1.66 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.792e-05/0.3446, allocations: 4 kB / 1.076 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.3447, allocations: 4 kB / 1.076 GB, free: 1.652 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001221/0.3448, allocations: 15.94 kB / 1.076 GB, free: 1.637 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.3448, allocations: 4 kB / 1.076 GB, free: 1.633 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.0003167/0.3451, allocations: 335.4 kB / 1.076 GB, free: 1.289 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.932e-05/0.3452, allocations: 71.09 kB / 1.076 GB, free: 1.219 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004184/0.3456, allocations: 297 kB / 1.077 GB, free: 0.9102 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.3457, allocations: 0 / 1.077 GB, free: 0.9102 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3457, allocations: 7.938 kB / 1.077 GB, free: 0.9023 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.3457, allocations: 0 / 1.077 GB, free: 0.9023 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003599/0.346, allocations: 389.3 kB / 1.077 GB, free: 484 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.346, allocations: 0 / 1.077 GB, free: 484 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.03e-05/0.3461, allocations: 4 kB / 1.077 GB, free: 480 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.3461, allocations: 4 kB / 1.077 GB, free: 476 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.3461, allocations: 3.984 kB / 1.077 GB, free: 472 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.3461, allocations: 0 / 1.077 GB, free: 472 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3461, allocations: 4 kB / 1.077 GB, free: 468 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000367/0.3465, allocations: 309.9 kB / 1.077 GB, free: 132 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001478/0.3467, allocations: 144.2 kB / 1.077 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.341e-05/0.3467, allocations: 8 kB / 1.077 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.3469, allocations: 4 kB / 1.077 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.778e-05/0.3469, allocations: 11.92 kB / 1.077 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.474e-05/0.3469, allocations: 8.188 kB / 1.077 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0006822/0.3476, allocations: 0.5848 MB / 1.078 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.563e-06/0.3476, allocations: 0 / 1.078 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004113/0.348, allocations: 131.9 kB / 1.078 GB, free: 15.23 MB / 0.8419 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.000914/0.349, allocations: 0.934 MB / 1.079 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002916/0.3493, allocations: 211.3 kB / 1.079 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3493, allocations: 0 / 1.079 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000143/0.3494, allocations: 147.3 kB / 1.079 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005437/0.35, allocations: 125.2 kB / 1.079 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005495/0.3555, allocations: 4.784 MB / 1.084 GB, free: 8.875 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005469/0.356, allocations: 0.9743 MB / 1.085 GB, free: 7.875 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001192/0.3562, allocations: 29.94 kB / 1.085 GB, free: 7.844 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/0.3564, allocations: 167.4 kB / 1.085 GB, free: 7.684 MB / 0.8419 GB Notification: Performance of SimCode: time 7.51e-07/0.3564, allocations: 3.938 kB / 1.085 GB, free: 7.68 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02851/0.3849, allocations: 11.91 MB / 1.097 GB, free: 12 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.356/7.741, allocations: 7.938 kB / 1.097 GB, free: 11.99 MB / 0.8575 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift.fmu > Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.csv. Warning: Get data of variable speShi.speRat from file Buildings_latest_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