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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.0049/0.0049, allocations: 99.58 kB / 15.73 MB, free: 6.059 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.001161/0.001161, allocations: 192.8 kB / 16.67 MB, free: 5.977 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.393/1.393, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.819/2.819, allocations: 469.4 MB / 0.7421 GB, free: 7.594 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 63.91 kB / 1.064 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2607, allocations: 159.1 MB / 1.22 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.003072/0.2638, allocations: 2.059 MB / 1.222 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.003113/0.2669, allocations: 2.592 MB / 1.224 GB, free: 10 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.2671, allocations: 4 kB / 1.224 GB, free: 10 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001194/0.2683, allocations: 0.5094 MB / 1.225 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001328/0.2684, allocations: 71.59 kB / 1.225 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000784/0.2692, allocations: 282.2 kB / 1.225 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003827/0.2696, allocations: 326.3 kB / 1.225 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001635/0.2698, allocations: 93.02 kB / 1.226 GB, free: 8.73 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.2699, allocations: 111.4 kB / 1.226 GB, free: 8.621 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001714/0.2701, allocations: 127.3 kB / 1.226 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.057e-05/0.2701, allocations: 8 kB / 1.226 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004783/0.2706, allocations: 327.5 kB / 1.226 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.2707, allocations: 107.5 kB / 1.226 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001811/0.2709, allocations: 214.5 kB / 1.226 GB, free: 7.852 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0008536/0.2718, allocations: 0.8249 MB / 1.227 GB, free: 7.023 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.2718, allocations: 3.938 kB / 1.227 GB, free: 7.02 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.232e-06/0.2718, allocations: 0 / 1.227 GB, free: 7.02 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.151e-05/0.2718, allocations: 0 / 1.227 GB, free: 7.02 MB / 0.9825 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.001043/0.2729, allocations: 0.8911 MB / 1.228 GB, free: 6.07 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.2729, allocations: 8.031 kB / 1.228 GB, free: 6.062 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.214e-05/0.273, allocations: 54.67 kB / 1.228 GB, free: 6 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.679e-05/0.2731, allocations: 72.47 kB / 1.228 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004492/0.2735, allocations: 389 kB / 1.229 GB, free: 5.508 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/0.2735, allocations: 4.375 kB / 1.229 GB, free: 5.504 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.291e-05/0.2736, allocations: 12.38 kB / 1.229 GB, free: 5.492 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002247/0.2738, allocations: 131.8 kB / 1.229 GB, free: 5.359 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.2738, allocations: 0 / 1.229 GB, free: 5.359 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.2738, allocations: 4 kB / 1.229 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.2739, allocations: 4 kB / 1.229 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001521/0.274, allocations: 95.94 kB / 1.229 GB, free: 5.258 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007239/0.2747, allocations: 0.5433 MB / 1.229 GB, free: 4.664 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001636/0.2749, allocations: 110.5 kB / 1.229 GB, free: 4.547 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.778e-05/0.275, allocations: 61.17 kB / 1.23 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.941e-05/0.2751, allocations: 11.92 kB / 1.23 GB, free: 4.473 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000186/0.2753, allocations: 137.1 kB / 1.23 GB, free: 4.32 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 2.865e-06/0.2753, allocations: 0 / 1.23 GB, free: 4.32 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.000478/0.2757, allocations: 306.8 kB / 1.23 GB, free: 4.008 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.925e-05/0.2758, allocations: 81.11 kB / 1.23 GB, free: 3.91 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008657/0.2767, allocations: 0.7973 MB / 1.231 GB, free: 3.105 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/0.2767, allocations: 25.7 kB / 1.231 GB, free: 3.074 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002427/0.277, allocations: 292.3 kB / 1.231 GB, free: 2.785 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.301e-05/0.277, allocations: 31.73 kB / 1.231 GB, free: 2.754 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.058e-05/0.2771, allocations: 25.72 kB / 1.231 GB, free: 2.723 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 8.743e-05/0.2771, allocations: 318 kB / 1.231 GB, free: 2.406 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.752e-05/0.2772, allocations: 43.98 kB / 1.232 GB, free: 2.363 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.873e-05/0.2773, allocations: 51.97 kB / 1.232 GB, free: 2.312 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001714/0.2775, allocations: 168.5 kB / 1.232 GB, free: 2.133 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2775, allocations: 0 / 1.232 GB, free: 2.133 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003104/0.2778, allocations: 266.8 kB / 1.232 GB, free: 1.859 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.651e-05/0.2779, allocations: 39.27 kB / 1.232 GB, free: 1.816 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.2779, allocations: 0 / 1.232 GB, free: 1.816 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.2779, allocations: 8 kB / 1.232 GB, free: 1.809 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.094e-05/0.278, allocations: 7.984 kB / 1.232 GB, free: 1.801 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.278, allocations: 4 kB / 1.232 GB, free: 1.797 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001327/0.2781, allocations: 11.89 kB / 1.232 GB, free: 1.785 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.94e-05/0.2781, allocations: 4 kB / 1.232 GB, free: 1.781 MB / 0.9825 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.0003019/0.2784, allocations: 343.8 kB / 1.232 GB, free: 1.43 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.46e-05/0.2785, allocations: 67.52 kB / 1.232 GB, free: 1.363 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004124/0.2789, allocations: 297 kB / 1.233 GB, free: 1.047 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.279, allocations: 4 kB / 1.233 GB, free: 1.043 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.279, allocations: 4 kB / 1.233 GB, free: 1.039 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.279, allocations: 0 / 1.233 GB, free: 1.039 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00035/0.2793, allocations: 389.3 kB / 1.233 GB, free: 0.6094 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.2793, allocations: 0 / 1.233 GB, free: 0.6094 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.478e-05/0.2794, allocations: 7.938 kB / 1.233 GB, free: 0.6016 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.2794, allocations: 4 kB / 1.233 GB, free: 0.5977 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.2794, allocations: 4 kB / 1.233 GB, free: 0.5938 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.2794, allocations: 3.984 kB / 1.233 GB, free: 0.5898 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.2794, allocations: 4 kB / 1.233 GB, free: 0.5859 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003771/0.2798, allocations: 314.2 kB / 1.233 GB, free: 260 kB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001459/0.28, allocations: 144.7 kB / 1.234 GB, free: 96 kB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.85e-05/0.28, allocations: 4 kB / 1.234 GB, free: 92 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001228/0.2802, allocations: 4 kB / 1.234 GB, free: 88 kB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.033e-05/0.2802, allocations: 11.98 kB / 1.234 GB, free: 76 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.316e-05/0.2802, allocations: 4 kB / 1.234 GB, free: 72 kB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0006613/0.2809, allocations: 0.5848 MB / 1.234 GB, free: 15.49 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2809, allocations: 0 / 1.234 GB, free: 15.49 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004069/0.2813, allocations: 131.8 kB / 1.234 GB, free: 15.36 MB / 0.9981 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.0008799/0.2822, allocations: 0.9259 MB / 1.235 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00028/0.2825, allocations: 207.3 kB / 1.235 GB, free: 14.19 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.2825, allocations: 0 / 1.235 GB, free: 14.19 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001456/0.2827, allocations: 163.3 kB / 1.236 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000547/0.2832, allocations: 130.9 kB / 1.236 GB, free: 13.89 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005181/0.2884, allocations: 4.677 MB / 1.24 GB, free: 9.113 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005298/0.289, allocations: 0.9704 MB / 1.241 GB, free: 8.117 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 9.78e-05/0.2891, allocations: 29.94 kB / 1.241 GB, free: 8.09 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001877/0.2893, allocations: 167.4 kB / 1.241 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of SimCode: time 7.31e-07/0.2893, allocations: 0 / 1.241 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5306/0.8199, allocations: 12.05 MB / 1.253 GB, free: 28.35 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.414/9.234, allocations: 7.344 kB / 1.253 GB, free: 28.35 MB / 0.9981 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