Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001373/0.001373, allocations: 103.6 kB / 18.95 MB, free: 2.812 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.001567/0.001567, allocations: 210.9 kB / 22.24 MB, free: 5.105 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.456/1.456, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.252/3.252, allocations: 0.5107 GB / 0.8158 GB, free: 17.81 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage",fmuType="me",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.002068/0.002068, allocations: 67.92 kB / 1.186 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.3369, allocations: 181.9 MB / 1.363 GB, free: 14.1 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage): time 0.002595/0.3395, allocations: 1.075 MB / 1.364 GB, free: 13.02 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001539/0.3411, allocations: 1.07 MB / 1.365 GB, free: 11.94 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.3412, allocations: 8 kB / 1.365 GB, free: 11.93 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 6.769e-05/0.3412, allocations: 23.67 kB / 1.366 GB, free: 11.91 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001539/0.3414, allocations: 39.58 kB / 1.366 GB, free: 11.87 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000359/0.3417, allocations: 103.8 kB / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002766/0.342, allocations: 235.4 kB / 1.366 GB, free: 11.54 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002044/0.3422, allocations: 75.73 kB / 1.366 GB, free: 11.45 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002312/0.3425, allocations: 103.6 kB / 1.366 GB, free: 11.35 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001404/0.3426, allocations: 95.47 kB / 1.366 GB, free: 11.26 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.263e-05/0.3426, allocations: 24 kB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.687e-05/0.3427, allocations: 32 kB / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 5.697e-05/0.3428, allocations: 59.81 kB / 1.366 GB, free: 11.14 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 8.396e-05/0.3429, allocations: 79.59 kB / 1.366 GB, free: 11.07 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003587/0.3432, allocations: 291 kB / 1.367 GB, free: 10.78 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3432, allocations: 0 / 1.367 GB, free: 10.78 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3432, allocations: 0 / 1.367 GB, free: 10.78 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.18e-05/0.3432, allocations: 7.984 kB / 1.367 GB, free: 10.77 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.0009234/0.3442, allocations: 481 kB / 1.367 GB, free: 10.27 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.3442, allocations: 8.031 kB / 1.367 GB, free: 10.27 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.117e-05/0.3443, allocations: 54.73 kB / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002455/0.3445, allocations: 44.77 kB / 1.367 GB, free: 10.16 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003602/0.3449, allocations: 186.2 kB / 1.367 GB, free: 9.953 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001161/0.345, allocations: 119.3 kB / 1.367 GB, free: 9.812 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.685e-05/0.345, allocations: 28.36 kB / 1.367 GB, free: 9.785 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00043/0.3455, allocations: 186.4 kB / 1.368 GB, free: 9.598 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.3455, allocations: 0 / 1.368 GB, free: 9.598 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.11e-05/0.3455, allocations: 4 kB / 1.368 GB, free: 9.594 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.3455, allocations: 4 kB / 1.368 GB, free: 9.59 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004472/0.3459, allocations: 163.8 kB / 1.368 GB, free: 9.43 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009418/0.3469, allocations: 495.2 kB / 1.368 GB, free: 8.902 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004283/0.3473, allocations: 138.8 kB / 1.368 GB, free: 8.758 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002215/0.3475, allocations: 73.12 kB / 1.368 GB, free: 8.684 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.34e-05/0.3476, allocations: 8 kB / 1.369 GB, free: 8.676 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000358/0.3479, allocations: 148.5 kB / 1.369 GB, free: 8.52 MB / 1.061 GB Notification: Performance of pre-optimization done (n=19): time 2.545e-06/0.3479, allocations: 3.938 kB / 1.369 GB, free: 8.516 MB / 1.061 GB Notification: Performance of matching and sorting (n=19): time 0.0007739/0.3487, allocations: 270.8 kB / 1.369 GB, free: 8.246 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.383e-05/0.3488, allocations: 55.41 kB / 1.369 GB, free: 8.18 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002105/0.349, allocations: 198.6 kB / 1.369 GB, free: 7.973 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.822e-05/0.349, allocations: 29.7 kB / 1.369 GB, free: 7.938 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.3491, allocations: 136.6 kB / 1.369 GB, free: 7.801 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 7.074e-05/0.3492, allocations: 63.47 kB / 1.369 GB, free: 7.738 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.008e-05/0.3492, allocations: 41.7 kB / 1.369 GB, free: 7.691 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000154/0.3494, allocations: 334.8 kB / 1.37 GB, free: 7.355 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/0.3496, allocations: 79.83 kB / 1.37 GB, free: 7.277 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002458/0.3499, allocations: 109.8 kB / 1.37 GB, free: 7.164 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004077/0.3503, allocations: 162.5 kB / 1.37 GB, free: 6.996 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.3503, allocations: 4 kB / 1.37 GB, free: 6.992 MB / 1.061 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005474/0.3508, allocations: 245.3 kB / 1.37 GB, free: 6.746 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.563e-05/0.3509, allocations: 8 kB / 1.37 GB, free: 6.738 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.3509, allocations: 4 kB / 1.37 GB, free: 6.734 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.32e-05/0.3509, allocations: 3.984 kB / 1.37 GB, free: 6.73 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002436/0.3511, allocations: 43.91 kB / 1.37 GB, free: 6.688 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.046e-06/0.3511, allocations: 0 / 1.37 GB, free: 6.688 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001764/0.3513, allocations: 31.81 kB / 1.37 GB, free: 6.656 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.882e-05/0.3513, allocations: 8 kB / 1.37 GB, free: 6.648 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 0.000157/0.3515, allocations: 139.7 kB / 1.371 GB, free: 6.504 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.251e-05/0.3515, allocations: 15.91 kB / 1.371 GB, free: 6.488 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.628e-05/0.3516, allocations: 25.81 kB / 1.371 GB, free: 6.461 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.3516, allocations: 4 kB / 1.371 GB, free: 6.457 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3516, allocations: 3.938 kB / 1.371 GB, free: 6.453 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.3516, allocations: 7.922 kB / 1.371 GB, free: 6.445 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002749/0.3519, allocations: 228.6 kB / 1.371 GB, free: 6.18 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3519, allocations: 0 / 1.371 GB, free: 6.18 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002288/0.3521, allocations: 39.91 kB / 1.371 GB, free: 6.141 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.3521, allocations: 4 kB / 1.371 GB, free: 6.137 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.148e-05/0.3521, allocations: 7.984 kB / 1.371 GB, free: 6.129 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.3521, allocations: 4 kB / 1.371 GB, free: 6.125 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3521, allocations: 0 / 1.371 GB, free: 6.125 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008109/0.3529, allocations: 335 kB / 1.371 GB, free: 5.781 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.044e-05/0.353, allocations: 19.92 kB / 1.371 GB, free: 5.762 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.309e-05/0.353, allocations: 4 kB / 1.371 GB, free: 5.758 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001468/0.3532, allocations: 24.05 kB / 1.371 GB, free: 5.734 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.04e-05/0.3532, allocations: 23.89 kB / 1.371 GB, free: 5.711 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.3533, allocations: 4 kB / 1.371 GB, free: 5.707 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001349/0.3534, allocations: 148.2 kB / 1.371 GB, free: 5.562 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.3534, allocations: 0 / 1.371 GB, free: 5.562 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002739/0.3537, allocations: 47.83 kB / 1.371 GB, free: 5.516 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.001112/0.3548, allocations: 0.8743 MB / 1.372 GB, free: 4.613 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004968/0.3553, allocations: 167.8 kB / 1.372 GB, free: 4.449 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3553, allocations: 0 / 1.372 GB, free: 4.449 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002362/0.3555, allocations: 91.88 kB / 1.373 GB, free: 4.359 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003503/0.3559, allocations: 47.97 kB / 1.373 GB, free: 4.312 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003302/0.3592, allocations: 2.274 MB / 1.375 GB, free: 1.949 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001228/0.3593, allocations: 129.4 kB / 1.375 GB, free: 1.805 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001151/0.3594, allocations: 22.09 kB / 1.375 GB, free: 1.781 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001246/0.3595, allocations: 59.42 kB / 1.375 GB, free: 1.723 MB / 1.061 GB Notification: Performance of SimCode: time 8.52e-07/0.3595, allocations: 0 / 1.375 GB, free: 1.723 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03471/0.3942, allocations: 5.261 MB / 1.38 GB, free: 12.64 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.91, allocations: 7.219 kB / 1.38 GB, free: 12.64 MB / 1.076 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage_fmu --startTime=0 --stopTime=2000 --stepSize=0.8 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 18.61173419514671]