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.001605/0.001605, allocations: 112.5 kB / 15.73 MB, free: 76 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.001999/0.001999, allocations: 190.3 kB / 16.67 MB, free: 6.543 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.293/1.293, allocations: 222.9 MB / 240.4 MB, free: 4.297 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.227/2.227, allocations: 390.2 MB / 0.6648 GB, free: 232 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 64.02 kB / 0.9504 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2222/0.2234, allocations: 140.4 MB / 1.088 GB, free: 1.973 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift): time 0.003094/0.2265, allocations: 1.98 MB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00307/0.2296, allocations: 2.5 MB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.2298, allocations: 4 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001136/0.2309, allocations: 486.1 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001336/0.2311, allocations: 63.61 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007919/0.2319, allocations: 272.2 kB / 1.093 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003776/0.2323, allocations: 316.1 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.2324, allocations: 92.69 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.2326, allocations: 103.5 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001665/0.2328, allocations: 119.3 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.89e-05/0.2328, allocations: 12 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000479/0.2333, allocations: 323.5 kB / 1.094 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.2334, allocations: 95.55 kB / 1.094 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001761/0.2336, allocations: 206.6 kB / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000833/0.2344, allocations: 0.786 MB / 1.095 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2344, allocations: 0 / 1.095 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.082e-06/0.2344, allocations: 0 / 1.095 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.141e-05/0.2345, allocations: 0 / 1.095 GB, free: 10.62 MB / 0.8575 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.001054/0.2355, allocations: 0.8562 MB / 1.095 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.2356, allocations: 12.03 kB / 1.096 GB, free: 9.699 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.256e-05/0.2356, allocations: 50.73 kB / 1.096 GB, free: 9.641 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.166e-05/0.2357, allocations: 64.52 kB / 1.096 GB, free: 9.578 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004266/0.2361, allocations: 369 kB / 1.096 GB, free: 9.18 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.751e-05/0.2362, allocations: 12.12 kB / 1.096 GB, free: 9.168 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.2362, allocations: 8 kB / 1.096 GB, free: 9.16 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002122/0.2364, allocations: 121.6 kB / 1.096 GB, free: 9.035 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.2364, allocations: 0 / 1.096 GB, free: 9.035 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.2364, allocations: 8 kB / 1.096 GB, free: 9.027 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.2364, allocations: 4 kB / 1.096 GB, free: 9.023 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000158/0.2366, allocations: 99.94 kB / 1.096 GB, free: 8.926 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007169/0.2373, allocations: 0.5433 MB / 1.097 GB, free: 8.332 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001663/0.2375, allocations: 106.5 kB / 1.097 GB, free: 8.219 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.326e-05/0.2376, allocations: 64.97 kB / 1.097 GB, free: 8.152 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.469e-05/0.2376, allocations: 7.984 kB / 1.097 GB, free: 8.145 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001781/0.2378, allocations: 133 kB / 1.097 GB, free: 7.996 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.373e-06/0.2378, allocations: 0 / 1.097 GB, free: 7.996 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0004497/0.2383, allocations: 310.9 kB / 1.097 GB, free: 7.68 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/0.2384, allocations: 81.11 kB / 1.097 GB, free: 7.582 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008272/0.2392, allocations: 0.762 MB / 1.098 GB, free: 6.809 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.2392, allocations: 29.64 kB / 1.098 GB, free: 6.773 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002239/0.2394, allocations: 272.3 kB / 1.098 GB, free: 6.504 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.763e-05/0.2395, allocations: 39.73 kB / 1.098 GB, free: 6.465 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.933e-05/0.2395, allocations: 21.72 kB / 1.099 GB, free: 6.438 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001126/0.2397, allocations: 325.9 kB / 1.099 GB, free: 6.113 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.256e-05/0.2397, allocations: 43.98 kB / 1.099 GB, free: 6.07 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.506e-05/0.2398, allocations: 43.97 kB / 1.099 GB, free: 6.027 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001681/0.24, allocations: 160.2 kB / 1.099 GB, free: 5.855 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.24, allocations: 4 kB / 1.099 GB, free: 5.852 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003077/0.2403, allocations: 258.9 kB / 1.099 GB, free: 5.586 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.692e-05/0.2404, allocations: 41.7 kB / 1.099 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.2404, allocations: 0 / 1.099 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.2404, allocations: 0 / 1.099 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.204e-05/0.2405, allocations: 11.98 kB / 1.099 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.2405, allocations: 0 / 1.099 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.2406, allocations: 11.89 kB / 1.099 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.2406, allocations: 4 kB / 1.099 GB, free: 5.512 MB / 0.8575 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.0002933/0.2409, allocations: 337.2 kB / 1.1 GB, free: 5.168 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.121e-05/0.241, allocations: 67.58 kB / 1.1 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004068/0.2414, allocations: 304.5 kB / 1.1 GB, free: 4.789 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2414, allocations: 0 / 1.1 GB, free: 4.789 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.2414, allocations: 0 / 1.1 GB, free: 4.789 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.2414, allocations: 0 / 1.1 GB, free: 4.789 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000336/0.2418, allocations: 373.4 kB / 1.1 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.2418, allocations: 4 kB / 1.1 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.928e-05/0.2418, allocations: 4.125 kB / 1.1 GB, free: 4.367 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.2418, allocations: 0 / 1.1 GB, free: 4.367 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.2419, allocations: 8 kB / 1.1 GB, free: 4.359 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2419, allocations: 0 / 1.1 GB, free: 4.359 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2419, allocations: 0 / 1.1 GB, free: 4.359 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003579/0.2422, allocations: 330.4 kB / 1.101 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001499/0.2424, allocations: 148.7 kB / 1.101 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.403e-05/0.2425, allocations: 4 kB / 1.101 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/0.2426, allocations: 4 kB / 1.101 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.998e-05/0.2426, allocations: 7.984 kB / 1.101 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.2426, allocations: 8 kB / 1.101 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0006156/0.2433, allocations: 0.5614 MB / 1.101 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.81e-07/0.2433, allocations: 7.938 kB / 1.101 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003957/0.2437, allocations: 123.8 kB / 1.102 GB, free: 3.137 MB / 0.8575 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.0008961/0.2446, allocations: 0.9299 MB / 1.102 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002813/0.2449, allocations: 207.2 kB / 1.103 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2449, allocations: 4 kB / 1.103 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001393/0.245, allocations: 151.4 kB / 1.103 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004509/0.2455, allocations: 105.8 kB / 1.103 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004959/0.2505, allocations: 4.503 MB / 1.107 GB, free: 13.08 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005315/0.251, allocations: 0.9699 MB / 1.108 GB, free: 12.09 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.93e-05/0.2511, allocations: 17.5 kB / 1.108 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000175/0.2513, allocations: 151.4 kB / 1.108 GB, free: 11.92 MB / 0.8731 GB Notification: Performance of SimCode: time 2.5e-07/0.2513, allocations: 0 / 1.108 GB, free: 11.92 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02895/0.2802, allocations: 11.33 MB / 1.119 GB, free: 0.8398 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.083/8.363, allocations: 9.656 kB / 1.12 GB, free: 0.8359 MB / 0.8731 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