Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_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.001614/0.001614, 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.001827/0.001828, allocations: 197.1 kB / 16.54 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.333/1.333, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.313/2.313, allocations: 390.3 MB / 0.6647 GB, free: 392 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 63.89 kB / 0.8127 GB, free: 14.32 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5264/0.5277, allocations: 140.4 MB / 0.9497 GB, free: 9.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift): time 0.002658/0.5304, allocations: 1.975 MB / 0.9517 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002342/0.5328, allocations: 2.505 MB / 0.9541 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.682e-05/0.5329, allocations: 2.812 kB / 0.9541 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000968/0.5339, allocations: 482.2 kB / 0.9546 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.977e-05/0.534, allocations: 58.36 kB / 0.9546 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006354/0.5346, allocations: 273.5 kB / 0.9549 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002948/0.5349, allocations: 308.2 kB / 0.9552 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001488/0.5351, allocations: 104.4 kB / 0.9553 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.227e-05/0.5352, allocations: 102.6 kB / 0.9554 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/0.5353, allocations: 123.2 kB / 0.9555 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.196e-05/0.5354, allocations: 11.09 kB / 0.9555 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000393/0.5358, allocations: 307.2 kB / 0.9558 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.588e-05/0.5359, allocations: 101.4 kB / 0.9559 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001506/0.536, allocations: 206 kB / 0.9561 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005802/0.5366, allocations: 0.7728 MB / 0.9568 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.5366, allocations: 0 / 0.9568 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.403e-06/0.5366, allocations: 1.344 kB / 0.9569 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.163e-06/0.5366, allocations: 0 / 0.9569 GB, free: 3.84 MB / 0.7169 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.0007638/0.5374, allocations: 0.834 MB / 0.9577 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.1e-05/0.5375, allocations: 10 kB / 0.9577 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.284e-05/0.5375, allocations: 42.48 kB / 0.9577 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.694e-05/0.5376, allocations: 61.25 kB / 0.9578 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002689/0.5378, allocations: 364.4 kB / 0.9581 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.5379, allocations: 8.75 kB / 0.9581 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.899e-05/0.5379, allocations: 13.44 kB / 0.9581 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001984/0.5381, allocations: 123.3 kB / 0.9583 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.5381, allocations: 0 / 0.9583 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.5381, allocations: 1.094 kB / 0.9583 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.5381, allocations: 2.188 kB / 0.9583 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001471/0.5383, allocations: 99.59 kB / 0.9584 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005809/0.5389, allocations: 0.5427 MB / 0.9589 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001499/0.539, allocations: 114.3 kB / 0.959 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.755e-05/0.5391, allocations: 61.22 kB / 0.9591 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.424e-05/0.5392, allocations: 4.938 kB / 0.9591 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001802/0.5394, allocations: 145.4 kB / 0.9592 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.363e-06/0.5394, allocations: 0 / 0.9592 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.000427/0.5398, allocations: 308.8 kB / 0.9595 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.954e-05/0.5398, allocations: 80.95 kB / 0.9596 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007512/0.5406, allocations: 0.7602 MB / 0.9603 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.194e-05/0.5406, allocations: 26.77 kB / 0.9603 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001802/0.5408, allocations: 272.2 kB / 0.9606 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.451e-05/0.5408, allocations: 24.41 kB / 0.9606 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.264e-05/0.5409, allocations: 31.73 kB / 0.9607 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.325e-05/0.5409, allocations: 311.3 kB / 0.9609 GB, free: 0.5742 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.312e-05/0.541, allocations: 48.56 kB / 0.961 GB, free: 0.5547 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.284e-05/0.5411, allocations: 52.91 kB / 0.961 GB, free: 0.5312 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001334/0.5412, allocations: 155.1 kB / 0.9612 GB, free: 432 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.5412, allocations: 0 / 0.9612 GB, free: 432 kB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002656/0.5415, allocations: 263.9 kB / 0.9614 GB, free: 280 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.68e-05/0.5415, allocations: 37.81 kB / 0.9615 GB, free: 244 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.5416, allocations: 0 / 0.9615 GB, free: 244 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.5416, allocations: 0.9688 kB / 0.9615 GB, free: 244 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.669e-05/0.5416, allocations: 10.62 kB / 0.9615 GB, free: 240 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.5417, allocations: 1.062 kB / 0.9615 GB, free: 240 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.5418, allocations: 17.45 kB / 0.9615 GB, free: 228 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.725e-05/0.5418, allocations: 3.625 kB / 0.9615 GB, free: 228 kB / 0.7169 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.0002584/0.5421, allocations: 337.1 kB / 0.9618 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.624e-05/0.5421, allocations: 63.92 kB / 0.9619 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004131/0.5426, allocations: 299.6 kB / 0.9622 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.5426, allocations: 0 / 0.9622 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.5426, allocations: 4 kB / 0.9622 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.5426, allocations: 0 / 0.9622 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003335/0.5429, allocations: 377.1 kB / 0.9625 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.5429, allocations: 1.406 kB / 0.9625 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.947e-05/0.543, allocations: 5.031 kB / 0.9626 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.543, allocations: 1.156 kB / 0.9626 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/0.543, allocations: 6.281 kB / 0.9626 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.543, allocations: 5.281 kB / 0.9626 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.543, allocations: 160 / 0.9626 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003649/0.5434, allocations: 318.1 kB / 0.9629 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.5435, allocations: 136.8 kB / 0.963 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.861e-05/0.5436, allocations: 7.141 kB / 0.963 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.5437, allocations: 7.812 kB / 0.963 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.441e-05/0.5437, allocations: 2.719 kB / 0.963 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.5438, allocations: 8.172 kB / 0.963 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0006158/0.5444, allocations: 0.565 MB / 0.9636 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5444, allocations: 0 / 0.9636 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003852/0.5448, allocations: 121 kB / 0.9637 GB, free: 14.75 MB / 0.7325 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.0008581/0.5457, allocations: 0.9475 MB / 0.9646 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002804/0.5459, allocations: 208.5 kB / 0.9648 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.546, allocations: 0.7812 kB / 0.9648 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001394/0.5461, allocations: 144.8 kB / 0.965 GB, free: 13.74 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004702/0.5466, allocations: 106.7 kB / 0.9651 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004916/0.5515, allocations: 4.614 MB / 0.9696 GB, free: 10.75 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005018/0.552, allocations: 0.9655 MB / 0.9705 GB, free: 9.906 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.9e-05/0.5521, allocations: 20.08 kB / 0.9705 GB, free: 9.898 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001717/0.5523, allocations: 150.2 kB / 0.9707 GB, free: 9.758 MB / 0.7325 GB Notification: Performance of SimCode: time 2.71e-07/0.5523, allocations: 1.188 kB / 0.9707 GB, free: 9.758 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02698/0.5793, allocations: 11.17 MB / 0.9816 GB, free: 0.8125 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.292/7.871, allocations: 7.438 kB / 0.9816 GB, free: 0.8086 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.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_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.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_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift_res.csv. Warning: Get data of variable speShi.speRat from file Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.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.m_flow_small,datCoi.minSpeRat,datCoi.sta[1].nomVal.COP_nominal