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.0077/0.0077, allocations: 104.8 kB / 15.73 MB, free: 6.039 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.001772/0.001772, allocations: 193 kB / 16.67 MB, free: 5.969 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.314/1.314, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.22/2.22, allocations: 390.2 MB / 0.6648 GB, free: 236 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 67.86 kB / 0.9504 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2249/0.2262, allocations: 140.4 MB / 1.088 GB, free: 1.977 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift): time 0.003152/0.2293, allocations: 1.987 MB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003056/0.2324, allocations: 2.5 MB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.2326, allocations: 0 / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001141/0.2337, allocations: 481.5 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000137/0.2339, allocations: 63.67 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008019/0.2347, allocations: 277 kB / 1.093 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000388/0.2351, allocations: 322 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.2353, allocations: 84.7 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.2354, allocations: 103.5 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001815/0.2356, allocations: 127.3 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.896e-05/0.2356, allocations: 8 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004734/0.2361, allocations: 319.5 kB / 1.094 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.2362, allocations: 107.5 kB / 1.094 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001778/0.2364, allocations: 198.6 kB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008237/0.2372, allocations: 0.7865 MB / 1.095 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2373, allocations: 0 / 1.095 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.293e-06/0.2373, allocations: 0 / 1.095 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.09e-05/0.2373, allocations: 0 / 1.095 GB, free: 10.63 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.001039/0.2383, allocations: 0.8333 MB / 1.095 GB, free: 9.738 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.2384, allocations: 12.03 kB / 1.095 GB, free: 9.727 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.085e-05/0.2384, allocations: 42.73 kB / 1.096 GB, free: 9.676 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.022e-05/0.2385, allocations: 64.19 kB / 1.096 GB, free: 9.613 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004237/0.2389, allocations: 364.4 kB / 1.096 GB, free: 9.219 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.239, allocations: 12.12 kB / 1.096 GB, free: 9.207 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.781e-05/0.239, allocations: 8 kB / 1.096 GB, free: 9.199 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002142/0.2392, allocations: 122.8 kB / 1.096 GB, free: 9.074 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.2392, allocations: 3.984 kB / 1.096 GB, free: 9.07 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.2392, allocations: 0 / 1.096 GB, free: 9.07 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.2393, allocations: 4 kB / 1.096 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001521/0.2394, allocations: 99.89 kB / 1.096 GB, free: 8.969 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007183/0.2401, allocations: 0.5433 MB / 1.097 GB, free: 8.375 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001551/0.2403, allocations: 106.5 kB / 1.097 GB, free: 8.262 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.054e-05/0.2404, allocations: 60.98 kB / 1.097 GB, free: 8.199 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.715e-05/0.2405, allocations: 11.97 kB / 1.097 GB, free: 8.188 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001848/0.2406, allocations: 137.1 kB / 1.097 GB, free: 8.035 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 3.216e-06/0.2407, allocations: 0 / 1.097 GB, free: 8.035 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0004435/0.2411, allocations: 302.5 kB / 1.097 GB, free: 7.727 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.2412, allocations: 77.11 kB / 1.097 GB, free: 7.633 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000823/0.242, allocations: 0.762 MB / 1.098 GB, free: 6.859 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.803e-05/0.242, allocations: 29.7 kB / 1.098 GB, free: 6.824 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002162/0.2422, allocations: 272.2 kB / 1.098 GB, free: 6.555 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.805e-05/0.2423, allocations: 31.62 kB / 1.098 GB, free: 6.523 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.435e-05/0.2424, allocations: 33.72 kB / 1.098 GB, free: 6.484 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.776e-05/0.2425, allocations: 317.9 kB / 1.099 GB, free: 6.168 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.575e-05/0.2425, allocations: 47.97 kB / 1.099 GB, free: 6.121 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.45e-05/0.2426, allocations: 43.98 kB / 1.099 GB, free: 6.078 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001729/0.2428, allocations: 164.1 kB / 1.099 GB, free: 5.902 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2428, allocations: 0 / 1.099 GB, free: 5.902 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003085/0.2431, allocations: 262.6 kB / 1.099 GB, free: 5.633 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.447e-05/0.2432, allocations: 35.11 kB / 1.099 GB, free: 5.594 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.2432, allocations: 4 kB / 1.099 GB, free: 5.59 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.2432, allocations: 8 kB / 1.099 GB, free: 5.582 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.181e-05/0.2433, allocations: 7.984 kB / 1.099 GB, free: 5.574 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.553e-06/0.2433, allocations: 4 kB / 1.099 GB, free: 5.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001178/0.2434, allocations: 11.84 kB / 1.099 GB, free: 5.559 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.185e-05/0.2434, allocations: 8 kB / 1.099 GB, free: 5.551 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.0002944/0.2437, allocations: 339.2 kB / 1.1 GB, free: 5.203 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.19e-05/0.2438, allocations: 63.25 kB / 1.1 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004064/0.2442, allocations: 289.1 kB / 1.1 GB, free: 4.844 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.2442, allocations: 4 kB / 1.1 GB, free: 4.84 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2442, allocations: 0 / 1.1 GB, free: 4.84 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2442, allocations: 3.984 kB / 1.1 GB, free: 4.836 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003347/0.2446, allocations: 369.3 kB / 1.1 GB, free: 4.426 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2446, allocations: 0 / 1.1 GB, free: 4.426 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.059e-05/0.2446, allocations: 8 kB / 1.1 GB, free: 4.418 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.2446, allocations: 0 / 1.1 GB, free: 4.418 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.2447, allocations: 11.98 kB / 1.1 GB, free: 4.406 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.2447, allocations: 3.938 kB / 1.1 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2447, allocations: 0 / 1.1 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003485/0.245, allocations: 321.8 kB / 1.101 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000151/0.2452, allocations: 136.3 kB / 1.101 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.062e-05/0.2453, allocations: 4 kB / 1.101 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/0.2454, allocations: 4 kB / 1.101 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.789e-05/0.2454, allocations: 11.98 kB / 1.101 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.2454, allocations: 4 kB / 1.101 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0006131/0.246, allocations: 0.5614 MB / 1.101 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.81e-07/0.246, allocations: 0 / 1.101 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003992/0.2465, allocations: 131.9 kB / 1.102 GB, free: 3.199 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.0008885/0.2473, allocations: 0.9257 MB / 1.102 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002735/0.2476, allocations: 207.3 kB / 1.103 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2476, allocations: 0 / 1.103 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001466/0.2478, allocations: 151.3 kB / 1.103 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004517/0.2483, allocations: 103.1 kB / 1.103 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00501/0.2533, allocations: 4.491 MB / 1.107 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005251/0.2538, allocations: 0.97 MB / 1.108 GB, free: 12.17 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.668e-05/0.2539, allocations: 21.53 kB / 1.108 GB, free: 12.15 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001651/0.2541, allocations: 147.4 kB / 1.108 GB, free: 12 MB / 0.8731 GB Notification: Performance of SimCode: time 5.31e-07/0.2541, allocations: 0 / 1.108 GB, free: 12 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02852/0.2826, allocations: 11.31 MB / 1.119 GB, free: 0.9414 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.148/8.431, allocations: 15.38 kB / 1.119 GB, free: 0.9297 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