Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed,fileNamePrefix="Buildings_latest_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_CoolingTowerSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed,fileNamePrefix="Buildings_latest_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_CoolingTowerSpeed",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.001216/0.001216, allocations: 108 kB / 15.6 MB, free: 128 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.001238/0.001238, allocations: 193.1 kB / 16.53 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.206/1.206, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.403/2.403, allocations: 469.4 MB / 0.742 GB, free: 7.723 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 63.31 kB / 0.9083 GB, free: 34.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2281/0.2293, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed): time 0.004044/0.2334, allocations: 2.931 MB / 1.067 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002221/0.2356, allocations: 1.508 MB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002636/0.2359, allocations: 15.94 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003553/0.2362, allocations: 103.2 kB / 1.068 GB, free: 9.957 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003536/0.2366, allocations: 143 kB / 1.068 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008613/0.2375, allocations: 419.8 kB / 1.069 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004723/0.238, allocations: 0.5266 MB / 1.069 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002851/0.2383, allocations: 205.1 kB / 1.069 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002347/0.2385, allocations: 203.1 kB / 1.07 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.2387, allocations: 199 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.292e-05/0.2388, allocations: 44 kB / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001708/0.239, allocations: 87.97 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.2391, allocations: 115.6 kB / 1.07 GB, free: 8.047 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001655/0.2393, allocations: 210.8 kB / 1.07 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005232/0.2398, allocations: 0.5765 MB / 1.071 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.2398, allocations: 0 / 1.071 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.044e-06/0.2398, allocations: 4 kB / 1.071 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.247e-06/0.2398, allocations: 3.938 kB / 1.071 GB, free: 7.254 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001054/0.2409, allocations: 0.7999 MB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.027e-05/0.2409, allocations: 8.031 kB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.13e-05/0.241, allocations: 58.73 kB / 1.072 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.204e-05/0.2411, allocations: 52.38 kB / 1.072 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005258/0.2416, allocations: 434.4 kB / 1.072 GB, free: 5.812 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.705e-05/0.2416, allocations: 28.69 kB / 1.072 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.262e-05/0.2417, allocations: 24 kB / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005131/0.2422, allocations: 331.9 kB / 1.072 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.2422, allocations: 0 / 1.072 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.583e-05/0.2423, allocations: 12 kB / 1.072 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.2423, allocations: 8 kB / 1.072 GB, free: 5.391 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004528/0.2427, allocations: 210.1 kB / 1.073 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.244, allocations: 1.116 MB / 1.074 GB, free: 4.008 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005619/0.2445, allocations: 238.9 kB / 1.074 GB, free: 3.766 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002219/0.2448, allocations: 112.8 kB / 1.074 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.605e-05/0.2448, allocations: 4 kB / 1.074 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003587/0.2452, allocations: 155.2 kB / 1.074 GB, free: 3.484 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=23): time 3.085e-06/0.2452, allocations: 0 / 1.074 GB, free: 3.484 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23): time 0.0007763/0.246, allocations: 355.7 kB / 1.075 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.643e-05/0.246, allocations: 106.8 kB / 1.075 GB, free: 3.004 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004536/0.2465, allocations: 453.8 kB / 1.075 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.2465, allocations: 29.7 kB / 1.075 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.2467, allocations: 232.5 kB / 1.075 GB, free: 2.285 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.94e-05/0.2467, allocations: 67.02 kB / 1.075 GB, free: 2.219 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.946e-05/0.2468, allocations: 65.59 kB / 1.075 GB, free: 2.148 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.247, allocations: 350.8 kB / 1.076 GB, free: 1.797 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/0.2472, allocations: 79.95 kB / 1.076 GB, free: 1.719 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002442/0.2474, allocations: 169.3 kB / 1.076 GB, free: 1.527 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004144/0.2478, allocations: 219.5 kB / 1.076 GB, free: 1.297 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2478, allocations: 0 / 1.076 GB, free: 1.297 MB / 0.8262 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005514/0.2484, allocations: 296.8 kB / 1.077 GB, free: 1 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.2484, allocations: 9.719 kB / 1.077 GB, free: 0.9922 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.2484, allocations: 0 / 1.077 GB, free: 0.9922 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.2485, allocations: 4.156 kB / 1.077 GB, free: 0.9883 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002243/0.2487, allocations: 59.91 kB / 1.077 GB, free: 0.9297 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.293e-06/0.2487, allocations: 0 / 1.077 GB, free: 0.9297 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001773/0.2489, allocations: 35.67 kB / 1.077 GB, free: 0.8945 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.82e-05/0.2489, allocations: 8 kB / 1.077 GB, free: 0.8867 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.cooMod.combiTimeTable.nextTimeEvent,$whenCondition1,cooMod.combiTimeTable.nextTimeEventScaled,$PRE.cooMod.combiTimeTable.nextTimeEventScaled,cooMod.combiTimeTable.nextTimeEvent,cooMod.y,cooTowSpeCon.fmcMod.y,cooTowSpeCon.pmcMod.y,cooTowSpeCon.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * 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.0001687/0.2491, allocations: 175 kB / 1.077 GB, free: 0.707 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.161e-05/0.2492, allocations: 43.47 kB / 1.077 GB, free: 0.6641 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.219e-05/0.2493, allocations: 51.83 kB / 1.077 GB, free: 0.6133 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.2493, allocations: 8 kB / 1.077 GB, free: 0.6055 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.2493, allocations: 0 / 1.077 GB, free: 0.6055 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.2493, allocations: 0 / 1.077 GB, free: 0.6055 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003489/0.2496, allocations: 413.2 kB / 1.077 GB, free: 156 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.2496, allocations: 4 kB / 1.077 GB, free: 152 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002024/0.2499, allocations: 35.91 kB / 1.077 GB, free: 116 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.2499, allocations: 4 kB / 1.077 GB, free: 112 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.848e-05/0.2499, allocations: 11.92 kB / 1.077 GB, free: 100 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.2499, allocations: 0 / 1.077 GB, free: 100 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.2499, allocations: 4 kB / 1.077 GB, free: 96 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000781/0.2507, allocations: 430 kB / 1.078 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.2508, allocations: 140.6 kB / 1.078 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.835e-05/0.2509, allocations: 4 kB / 1.078 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001494/0.251, allocations: 15.98 kB / 1.078 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.965e-05/0.2511, allocations: 24.03 kB / 1.078 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.088e-05/0.2511, allocations: 4 kB / 1.078 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003001/0.2514, allocations: 319.1 kB / 1.078 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2514, allocations: 0 / 1.078 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002983/0.2517, allocations: 75.83 kB / 1.078 GB, free: 15.06 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (cooTowSpeCon.conPID.I.y) * Number of discrete variables: 6 ($whenCondition1,cooTowSpeCon.pmcMod.y,cooTowSpeCon.fmcMod.y,cooMod.y,cooMod.combiTimeTable.nextTimeEvent,cooMod.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (cooMod.combiTimeTable.nextTimeEventScaled,cooMod.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001782/0.2535, allocations: 1.279 MB / 1.08 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005357/0.2541, allocations: 231.9 kB / 1.08 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2541, allocations: 4.062 kB / 1.08 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002335/0.2543, allocations: 118.7 kB / 1.08 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004836/0.2548, allocations: 100.5 kB / 1.08 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00398/0.2588, allocations: 3.479 MB / 1.083 GB, free: 9.895 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002884/0.2591, allocations: 0.807 MB / 1.084 GB, free: 9.062 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001765/0.2593, allocations: 55.23 kB / 1.084 GB, free: 9.008 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001815/0.2595, allocations: 151.3 kB / 1.084 GB, free: 8.859 MB / 0.8419 GB Notification: Performance of SimCode: time 3.3e-07/0.2595, allocations: 4 kB / 1.084 GB, free: 8.855 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02429/0.2838, allocations: 8.831 MB / 1.093 GB, free: 260 kB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.589/6.873, allocations: 14.86 kB / 1.093 GB, free: 248 kB / 0.8419 GB (rm -f Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed.pipe ; mkfifo Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed.pipe ; head -c 1048576 < Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed.pipe >> ../files/Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed_res.csv --start-time 0 --stop-time 1080 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.432 Buildings_latest_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_CoolingTowerSpeed.fmu > Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_CoolingTowerSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.CoolingTowerSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches