Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 114.8 kB / 17.16 MB, free: 5.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 210.2 kB / 20.13 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.496/1.496, allocations: 230.6 MB / 253.5 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.907/2.907, allocations: 0.49 GB / 0.7923 GB, free: 1.32 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 59.91 kB / 1.15 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9342/0.9363, allocations: 176.1 MB / 1.321 GB, free: 24.71 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage): time 0.002472/0.9387, allocations: 1.174 MB / 1.323 GB, free: 23.93 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001114/0.9398, allocations: 1.098 MB / 1.324 GB, free: 23.1 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001284/0.94, allocations: 2.562 kB / 1.324 GB, free: 23.1 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 5.194e-05/0.94, allocations: 23.02 kB / 1.324 GB, free: 23.08 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001325/0.9402, allocations: 40.98 kB / 1.324 GB, free: 23.05 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003248/0.9405, allocations: 91.36 kB / 1.324 GB, free: 23 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002111/0.9407, allocations: 245.7 kB / 1.324 GB, free: 22.88 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001771/0.9409, allocations: 70.56 kB / 1.324 GB, free: 22.83 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000204/0.9411, allocations: 112.2 kB / 1.324 GB, free: 22.77 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001143/0.9412, allocations: 107.2 kB / 1.324 GB, free: 22.71 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.456e-05/0.9412, allocations: 22.78 kB / 1.324 GB, free: 22.71 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.125e-05/0.9413, allocations: 29.22 kB / 1.324 GB, free: 22.71 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.221e-05/0.9413, allocations: 55.06 kB / 1.324 GB, free: 22.68 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.516e-05/0.9414, allocations: 113.6 kB / 1.325 GB, free: 22.6 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002836/0.9417, allocations: 287.6 kB / 1.325 GB, free: 22.48 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.9417, allocations: 2.531 kB / 1.325 GB, free: 22.48 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.483e-06/0.9417, allocations: 0 / 1.325 GB, free: 22.48 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.681e-06/0.9417, allocations: 0 / 1.325 GB, free: 22.48 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0008485/0.9425, allocations: 0.541 MB / 1.325 GB, free: 22.02 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.9426, allocations: 12.23 kB / 1.325 GB, free: 22.02 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.486e-05/0.9426, allocations: 9.734 kB / 1.325 GB, free: 22.01 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.689e-05/0.9426, allocations: 51.94 kB / 1.325 GB, free: 21.96 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002302/0.9429, allocations: 52.2 kB / 1.325 GB, free: 21.94 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000282/0.9431, allocations: 245 kB / 1.326 GB, free: 21.7 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.742e-05/0.9432, allocations: 67.09 kB / 1.326 GB, free: 21.63 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.521e-05/0.9432, allocations: 23.5 kB / 1.326 GB, free: 21.62 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003795/0.9436, allocations: 183.7 kB / 1.326 GB, free: 21.54 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.9436, allocations: 3.953 kB / 1.326 GB, free: 21.54 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.214e-05/0.9437, allocations: 17.77 kB / 1.326 GB, free: 21.52 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.9437, allocations: 9.297 kB / 1.326 GB, free: 21.52 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004142/0.9441, allocations: 155.2 kB / 1.326 GB, free: 21.47 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007054/0.9448, allocations: 0.5739 MB / 1.327 GB, free: 21.05 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003506/0.9451, allocations: 126.6 kB / 1.327 GB, free: 21 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001998/0.9453, allocations: 82.7 kB / 1.327 GB, free: 20.97 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.298e-05/0.9454, allocations: 2.906 kB / 1.327 GB, free: 20.97 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003035/0.9457, allocations: 147.3 kB / 1.327 GB, free: 20.89 MB / 1.061 GB Notification: Performance of pre-optimization done (n=19): time 1.893e-06/0.9457, allocations: 0 / 1.327 GB, free: 20.89 MB / 1.061 GB Notification: Performance of matching and sorting (n=19): time 0.0007701/0.9464, allocations: 269.9 kB / 1.327 GB, free: 20.79 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.9465, allocations: 54.5 kB / 1.327 GB, free: 20.72 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.9467, allocations: 193.1 kB / 1.328 GB, free: 20.59 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.9467, allocations: 32.2 kB / 1.328 GB, free: 20.55 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.512e-05/0.9467, allocations: 137 kB / 1.328 GB, free: 20.43 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.596e-05/0.9468, allocations: 69.3 kB / 1.328 GB, free: 20.38 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.375e-05/0.9468, allocations: 40.02 kB / 1.328 GB, free: 20.35 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.801e-05/0.9469, allocations: 338.8 kB / 1.328 GB, free: 20.02 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000227/0.9471, allocations: 68.69 kB / 1.328 GB, free: 20 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002311/0.9474, allocations: 102.2 kB / 1.328 GB, free: 19.96 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004396/0.9478, allocations: 172.9 kB / 1.328 GB, free: 19.88 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.9478, allocations: 0.7188 kB / 1.328 GB, free: 19.88 MB / 1.061 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005423/0.9483, allocations: 233.4 kB / 1.329 GB, free: 19.78 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.9484, allocations: 4.844 kB / 1.329 GB, free: 19.78 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.9484, allocations: 4.844 kB / 1.329 GB, free: 19.77 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.9484, allocations: 5.875 kB / 1.329 GB, free: 19.77 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002361/0.9486, allocations: 37.97 kB / 1.329 GB, free: 19.77 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.9486, allocations: 5.938 kB / 1.329 GB, free: 19.77 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001591/0.9488, allocations: 33.27 kB / 1.329 GB, free: 19.75 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.054e-05/0.9488, allocations: 8.875 kB / 1.329 GB, free: 19.75 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 (loaHea.movAve.mode,$PRE.loaHea.movAve.mode,$whenCondition1,loaCoo.movAve.mode,$PRE.loaCoo.movAve.mode,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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 9.976e-05/0.9489, allocations: 136.2 kB / 1.329 GB, free: 19.61 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.372e-05/0.9489, allocations: 23.16 kB / 1.329 GB, free: 19.6 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.249e-05/0.949, allocations: 26.22 kB / 1.329 GB, free: 19.58 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.949, allocations: 2.562 kB / 1.329 GB, free: 19.58 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.949, allocations: 0 / 1.329 GB, free: 19.58 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.949, allocations: 8.438 kB / 1.329 GB, free: 19.57 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002339/0.9492, allocations: 287.9 kB / 1.329 GB, free: 19.33 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.9492, allocations: 0 / 1.329 GB, free: 19.33 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002434/0.9495, allocations: 43.08 kB / 1.329 GB, free: 19.32 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.9495, allocations: 1.031 kB / 1.329 GB, free: 19.32 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.88e-05/0.9495, allocations: 1.969 kB / 1.329 GB, free: 19.32 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.9495, allocations: 0.7188 kB / 1.329 GB, free: 19.32 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.9495, allocations: 7.531 kB / 1.329 GB, free: 19.32 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000801/0.9503, allocations: 328.4 kB / 1.33 GB, free: 19.16 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.779e-05/0.9504, allocations: 105.1 kB / 1.33 GB, free: 19.05 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.238e-05/0.9504, allocations: 10.09 kB / 1.33 GB, free: 19.04 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.9505, allocations: 15.53 kB / 1.33 GB, free: 19.04 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.33e-05/0.9506, allocations: 22.66 kB / 1.33 GB, free: 19.03 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.838e-05/0.9506, allocations: 7.672 kB / 1.33 GB, free: 19.03 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001205/0.9508, allocations: 144.2 kB / 1.33 GB, free: 18.93 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.9508, allocations: 3.938 kB / 1.33 GB, free: 18.93 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002754/0.951, allocations: 40.58 kB / 1.33 GB, free: 18.92 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (loaHea.movAve.mu,loaCoo.movAve.mu) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,loaHea.movAve.mode,loaCoo.movAve.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 17 * 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.001031/0.9521, allocations: 0.8641 MB / 1.331 GB, free: 18.23 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005279/0.9526, allocations: 184.5 kB / 1.331 GB, free: 18.18 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.9526, allocations: 0 / 1.331 GB, free: 18.18 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002302/0.9528, allocations: 86.64 kB / 1.331 GB, free: 18.15 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003406/0.9532, allocations: 51.27 kB / 1.331 GB, free: 18.13 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003259/0.9564, allocations: 2.291 MB / 1.333 GB, free: 16.54 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001862/0.9566, allocations: 0.7366 MB / 1.334 GB, free: 15.84 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 9.814e-05/0.9567, allocations: 17.95 kB / 1.334 GB, free: 15.84 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.9568, allocations: 59.38 kB / 1.334 GB, free: 15.8 MB / 1.061 GB Notification: Performance of SimCode: time 6.22e-07/0.9568, allocations: 1 kB / 1.334 GB, free: 15.8 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02515/0.982, allocations: 4.613 MB / 1.339 GB, free: 15.2 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.744/9.726, allocations: 21.12 kB / 1.339 GB, free: 15.19 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage_res.mat --tempDir=temp_Buildings_12_Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage_fmu --startTime=0 --stopTime=2000 --stepSize=0.8 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage.fmu > Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.232494377996773]