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.00405/0.00405, allocations: 101.6 kB / 15.73 MB, free: 6.449 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.001038/0.001038, allocations: 196.7 kB / 16.68 MB, free: 6.352 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.294/1.294, allocations: 222.9 MB / 240.4 MB, free: 4.289 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.437/2.437, allocations: 437 MB / 0.7105 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 63.91 kB / 1.018 GB, free: 15 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2465, allocations: 151.6 MB / 1.166 GB, free: 7.262 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.003243/0.2498, allocations: 2.056 MB / 1.168 GB, free: 5.188 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.003054/0.2528, allocations: 2.593 MB / 1.171 GB, free: 2.578 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.641e-05/0.2529, allocations: 0 / 1.171 GB, free: 2.578 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001087/0.2541, allocations: 0.5097 MB / 1.171 GB, free: 2.066 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001152/0.2542, allocations: 71.53 kB / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000684/0.2549, allocations: 279.3 kB / 1.172 GB, free: 1.723 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003642/0.2553, allocations: 325.8 kB / 1.172 GB, free: 1.406 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.2554, allocations: 93.05 kB / 1.172 GB, free: 1.312 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.2555, allocations: 115.5 kB / 1.172 GB, free: 1.199 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001679/0.2557, allocations: 131.2 kB / 1.172 GB, free: 1.07 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.239e-05/0.2557, allocations: 8 kB / 1.172 GB, free: 1.062 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004703/0.2562, allocations: 319.5 kB / 1.173 GB, free: 0.75 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001018/0.2563, allocations: 115.5 kB / 1.173 GB, free: 0.6367 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001656/0.2565, allocations: 214.5 kB / 1.173 GB, free: 436 kB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0007652/0.2573, allocations: 0.8249 MB / 1.174 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.2573, allocations: 0 / 1.174 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2573, allocations: 0 / 1.174 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.062e-06/0.2573, allocations: 0 / 1.174 GB, free: 15.6 MB / 0.9356 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.0009505/0.2583, allocations: 0.9028 MB / 1.175 GB, free: 14.64 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.2583, allocations: 12.02 kB / 1.175 GB, free: 14.62 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.589e-05/0.2583, allocations: 38.75 kB / 1.175 GB, free: 14.58 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.075e-05/0.2584, allocations: 68.52 kB / 1.175 GB, free: 14.51 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004246/0.2589, allocations: 396.9 kB / 1.175 GB, free: 14.08 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.376e-05/0.2589, allocations: 8.312 kB / 1.175 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.792e-05/0.2589, allocations: 12.38 kB / 1.175 GB, free: 14.06 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000209/0.2591, allocations: 125.8 kB / 1.175 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.134e-06/0.2591, allocations: 0 / 1.175 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.2591, allocations: 8 kB / 1.175 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.2592, allocations: 4 kB / 1.175 GB, free: 13.92 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001462/0.2593, allocations: 103.8 kB / 1.175 GB, free: 13.82 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006945/0.26, allocations: 0.5394 MB / 1.176 GB, free: 13.23 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001499/0.2602, allocations: 106.5 kB / 1.176 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.885e-05/0.2603, allocations: 73.19 kB / 1.176 GB, free: 13.04 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.122e-05/0.2603, allocations: 11.94 kB / 1.176 GB, free: 13.03 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001649/0.2605, allocations: 129.1 kB / 1.176 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=11): time 1.373e-06/0.2605, allocations: 0 / 1.176 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.0004249/0.2609, allocations: 314.8 kB / 1.176 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.135e-05/0.261, allocations: 89.05 kB / 1.176 GB, free: 12.46 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008034/0.2618, allocations: 0.7934 MB / 1.177 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.2618, allocations: 25.7 kB / 1.177 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002223/0.262, allocations: 292.3 kB / 1.178 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.709e-05/0.2621, allocations: 27.75 kB / 1.178 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.982e-05/0.2621, allocations: 29.7 kB / 1.178 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.767e-05/0.2622, allocations: 310 kB / 1.178 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.217e-05/0.2623, allocations: 47.97 kB / 1.178 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.318e-05/0.2624, allocations: 47.97 kB / 1.178 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001552/0.2625, allocations: 152.2 kB / 1.178 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2625, allocations: 4.062 kB / 1.178 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002897/0.2628, allocations: 270.8 kB / 1.178 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.464e-05/0.2629, allocations: 41.69 kB / 1.178 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/0.2629, allocations: 3.938 kB / 1.178 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.016e-05/0.2629, allocations: 4 kB / 1.178 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.258e-05/0.263, allocations: 7.938 kB / 1.178 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.792e-06/0.263, allocations: 4 kB / 1.178 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.2631, allocations: 11.94 kB / 1.178 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/0.2631, allocations: 4 kB / 1.178 GB, free: 10.35 MB / 0.9356 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.0002927/0.2634, allocations: 347.3 kB / 1.179 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.897e-05/0.2635, allocations: 71.52 kB / 1.179 GB, free: 9.922 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004049/0.2639, allocations: 289 kB / 1.179 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2639, allocations: 0 / 1.179 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.2639, allocations: 4 kB / 1.179 GB, free: 9.617 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.2639, allocations: 3.938 kB / 1.179 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003259/0.2643, allocations: 381.4 kB / 1.18 GB, free: 9.191 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.2643, allocations: 0 / 1.18 GB, free: 9.191 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.88e-05/0.2643, allocations: 7.984 kB / 1.18 GB, free: 9.184 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.2643, allocations: 4 kB / 1.18 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.2643, allocations: 4 kB / 1.18 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.2644, allocations: 4 kB / 1.18 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.2644, allocations: 4 kB / 1.18 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003369/0.2647, allocations: 318.1 kB / 1.18 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000148/0.2649, allocations: 140.7 kB / 1.18 GB, free: 8.676 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.789e-05/0.2649, allocations: 4 kB / 1.18 GB, free: 8.672 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.265, allocations: 11.98 kB / 1.18 GB, free: 8.66 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.479e-05/0.2651, allocations: 7.938 kB / 1.18 GB, free: 8.652 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/0.2651, allocations: 11.98 kB / 1.18 GB, free: 8.641 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0006054/0.2657, allocations: 0.5848 MB / 1.181 GB, free: 8.062 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2657, allocations: 0 / 1.181 GB, free: 8.062 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003519/0.2661, allocations: 123.8 kB / 1.181 GB, free: 7.941 MB / 0.9356 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.0007926/0.2669, allocations: 0.9457 MB / 1.182 GB, free: 6.961 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002584/0.2671, allocations: 207.3 kB / 1.182 GB, free: 6.746 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2671, allocations: 0 / 1.182 GB, free: 6.746 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001325/0.2673, allocations: 147.4 kB / 1.182 GB, free: 6.59 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004857/0.2678, allocations: 129.2 kB / 1.182 GB, free: 6.465 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004785/0.2726, allocations: 4.669 MB / 1.187 GB, free: 1.695 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004987/0.2731, allocations: 0.9743 MB / 1.188 GB, free: 0.6953 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.194e-05/0.2732, allocations: 29.94 kB / 1.188 GB, free: 0.668 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001763/0.2734, allocations: 167.4 kB / 1.188 GB, free: 0.5039 MB / 0.9356 GB Notification: Performance of SimCode: time 4e-07/0.2734, allocations: 0 / 1.188 GB, free: 0.5039 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02905/0.3024, allocations: 12.07 MB / 1.2 GB, free: 4.688 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.236/8.539, allocations: 5.812 kB / 1.2 GB, free: 4.684 MB / 0.9512 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