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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.007461/0.007461, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.002014/0.002014, allocations: 192.4 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.781/2.781, allocations: 482.4 MB / 0.7548 GB, free: 6.875 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 69.61 kB / 1.083 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.2745, allocations: 162.2 MB / 1.241 GB, free: 9.352 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.003396/0.2779, allocations: 2.043 MB / 1.243 GB, free: 7.297 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003522/0.2814, allocations: 2.596 MB / 1.246 GB, free: 4.688 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.2816, allocations: 7.875 kB / 1.246 GB, free: 4.68 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001264/0.2828, allocations: 0.5097 MB / 1.247 GB, free: 4.168 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001364/0.283, allocations: 67.53 kB / 1.247 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007991/0.2838, allocations: 282.7 kB / 1.247 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004309/0.2842, allocations: 326.4 kB / 1.247 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.2844, allocations: 85.06 kB / 1.247 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001281/0.2845, allocations: 115.4 kB / 1.247 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001988/0.2847, allocations: 135.2 kB / 1.247 GB, free: 3.172 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.389e-05/0.2848, allocations: 8 kB / 1.247 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005357/0.2853, allocations: 323.5 kB / 1.248 GB, free: 2.848 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.2855, allocations: 107.5 kB / 1.248 GB, free: 2.742 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002048/0.2857, allocations: 214.5 kB / 1.248 GB, free: 2.531 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000933/0.2866, allocations: 0.8249 MB / 1.249 GB, free: 1.703 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2866, allocations: 0 / 1.249 GB, free: 1.703 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.353e-06/0.2866, allocations: 0 / 1.249 GB, free: 1.703 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.095e-05/0.2866, allocations: 0 / 1.249 GB, free: 1.703 MB / 0.9669 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.001061/0.2877, allocations: 0.8989 MB / 1.25 GB, free: 0.7461 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.2878, allocations: 8.031 kB / 1.25 GB, free: 0.7383 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.198e-05/0.2878, allocations: 38.75 kB / 1.25 GB, free: 0.6914 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.499e-05/0.2879, allocations: 72.45 kB / 1.25 GB, free: 0.6211 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004485/0.2884, allocations: 396.9 kB / 1.25 GB, free: 196 kB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.837e-05/0.2884, allocations: 12.36 kB / 1.25 GB, free: 184 kB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.123e-05/0.2884, allocations: 8.375 kB / 1.25 GB, free: 176 kB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002285/0.2886, allocations: 121.8 kB / 1.25 GB, free: 48 kB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.2887, allocations: 4 kB / 1.25 GB, free: 44 kB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.576e-05/0.2887, allocations: 8 kB / 1.25 GB, free: 36 kB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.2887, allocations: 3.984 kB / 1.25 GB, free: 32 kB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.2889, allocations: 95.95 kB / 1.251 GB, free: 15.94 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007508/0.2896, allocations: 0.5433 MB / 1.251 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001822/0.2898, allocations: 106.5 kB / 1.251 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.815e-05/0.2899, allocations: 69.16 kB / 1.251 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.612e-05/0.29, allocations: 7.938 kB / 1.251 GB, free: 15.15 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002055/0.2902, allocations: 133 kB / 1.251 GB, free: 15 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.432e-06/0.2902, allocations: 0 / 1.251 GB, free: 15 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.000492/0.2907, allocations: 315.1 kB / 1.252 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.092e-05/0.2908, allocations: 85.11 kB / 1.252 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009504/0.2917, allocations: 0.7973 MB / 1.253 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.2918, allocations: 29.7 kB / 1.253 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002734/0.292, allocations: 288.3 kB / 1.253 GB, free: 13.45 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.759e-05/0.2921, allocations: 27.75 kB / 1.253 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.993e-05/0.2922, allocations: 33.7 kB / 1.253 GB, free: 13.39 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001247/0.2923, allocations: 306 kB / 1.253 GB, free: 13.08 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.421e-05/0.2924, allocations: 48.03 kB / 1.253 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.802e-05/0.2925, allocations: 55.91 kB / 1.253 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001859/0.2926, allocations: 152.2 kB / 1.253 GB, free: 12.82 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2927, allocations: 4 kB / 1.253 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003502/0.293, allocations: 278.7 kB / 1.254 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.2e-05/0.2931, allocations: 37.69 kB / 1.254 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.2931, allocations: 0 / 1.254 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.538e-06/0.2931, allocations: 0 / 1.254 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.652e-05/0.2932, allocations: 8 kB / 1.254 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.2932, allocations: 0 / 1.254 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.2933, allocations: 11.94 kB / 1.254 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.2933, allocations: 8 kB / 1.254 GB, free: 12.46 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.0003412/0.2937, allocations: 339.9 kB / 1.254 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.967e-05/0.2938, allocations: 75.5 kB / 1.254 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004701/0.2942, allocations: 296.9 kB / 1.254 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.2942, allocations: 4 kB / 1.254 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2943, allocations: 0 / 1.254 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.2943, allocations: 0 / 1.254 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003965/0.2947, allocations: 381.4 kB / 1.255 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.2947, allocations: 3.984 kB / 1.255 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.546e-05/0.2947, allocations: 12 kB / 1.255 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.2947, allocations: 0 / 1.255 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.2948, allocations: 8 kB / 1.255 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.2948, allocations: 0 / 1.255 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.2948, allocations: 0 / 1.255 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004103/0.2952, allocations: 318.2 kB / 1.255 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001447/0.2953, allocations: 140.7 kB / 1.255 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.834e-05/0.2954, allocations: 11.98 kB / 1.255 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.2955, allocations: 4 kB / 1.255 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.611e-05/0.2956, allocations: 7.938 kB / 1.255 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.2956, allocations: 11.98 kB / 1.255 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0007216/0.2963, allocations: 0.5887 MB / 1.256 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2963, allocations: 0 / 1.256 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000361/0.2967, allocations: 127.8 kB / 1.256 GB, free: 10.04 MB / 0.9825 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.0009672/0.2977, allocations: 0.9454 MB / 1.257 GB, free: 9.059 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000299/0.298, allocations: 203.5 kB / 1.257 GB, free: 8.848 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.298, allocations: 0 / 1.257 GB, free: 8.848 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001708/0.2982, allocations: 155.4 kB / 1.257 GB, free: 8.684 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005215/0.2987, allocations: 129.9 kB / 1.257 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005588/0.3043, allocations: 4.663 MB / 1.262 GB, free: 3.793 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006405/0.3049, allocations: 0.9782 MB / 1.263 GB, free: 2.789 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.803e-05/0.305, allocations: 29.94 kB / 1.263 GB, free: 2.762 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002057/0.3052, allocations: 163.4 kB / 1.263 GB, free: 2.602 MB / 0.9825 GB Notification: Performance of SimCode: time 2.81e-07/0.3053, allocations: 0 / 1.263 GB, free: 2.602 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03525/0.3405, allocations: 12.07 MB / 1.275 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.43/8.77, allocations: 7.688 kB / 1.275 GB, free: 6.781 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 400 --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