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.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 108 kB / 15.61 MB, free: 148 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.001286/0.001286, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.367/1.367, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.832/2.832, allocations: 482.2 MB / 0.7545 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001771/0.001771, allocations: 62.12 kB / 0.9237 GB, free: 29.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2664/0.2682, allocations: 162.2 MB / 1.082 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage): time 0.002337/0.2706, allocations: 1.169 MB / 1.083 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001183/0.2718, allocations: 1.053 MB / 1.084 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.588e-05/0.2719, allocations: 0 / 1.084 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.99e-05/0.2719, allocations: 19.73 kB / 1.084 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001331/0.2721, allocations: 39.58 kB / 1.084 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002771/0.2724, allocations: 99.84 kB / 1.084 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002346/0.2726, allocations: 247.3 kB / 1.085 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001803/0.2728, allocations: 95.22 kB / 1.085 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000146/0.2729, allocations: 99.62 kB / 1.085 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001316/0.2731, allocations: 107.5 kB / 1.085 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.037e-05/0.2731, allocations: 24 kB / 1.085 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 3.602e-05/0.2732, allocations: 24 kB / 1.085 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 5.244e-05/0.2732, allocations: 59.83 kB / 1.085 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 9.871e-05/0.2733, allocations: 107.4 kB / 1.085 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002539/0.2736, allocations: 271.4 kB / 1.085 GB, free: 10.01 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2736, allocations: 0 / 1.085 GB, free: 10.01 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.123e-06/0.2736, allocations: 0 / 1.085 GB, free: 10.01 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.2736, allocations: 0 / 1.085 GB, free: 10.01 MB / 0.8419 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.0008678/0.2745, allocations: 0.5336 MB / 1.086 GB, free: 9.426 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.163e-05/0.2745, allocations: 11.97 kB / 1.086 GB, free: 9.414 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.787e-05/0.2746, allocations: 54.73 kB / 1.086 GB, free: 9.352 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.21e-05/0.2746, allocations: 24.66 kB / 1.086 GB, free: 9.328 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002683/0.2749, allocations: 251.8 kB / 1.086 GB, free: 9.043 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.731e-05/0.275, allocations: 67.97 kB / 1.086 GB, free: 8.965 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.305e-05/0.275, allocations: 16.38 kB / 1.086 GB, free: 8.949 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003916/0.2754, allocations: 197.6 kB / 1.087 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.2755, allocations: 0 / 1.087 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.054e-05/0.2755, allocations: 8 kB / 1.087 GB, free: 8.742 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.2755, allocations: 4 kB / 1.087 GB, free: 8.738 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004066/0.2759, allocations: 155.8 kB / 1.087 GB, free: 8.586 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000811/0.2767, allocations: 0.5856 MB / 1.087 GB, free: 7.949 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003696/0.2771, allocations: 145 kB / 1.087 GB, free: 7.801 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002086/0.2773, allocations: 84.75 kB / 1.087 GB, free: 7.715 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.457e-05/0.2774, allocations: 4 kB / 1.087 GB, free: 7.711 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003201/0.2777, allocations: 148.6 kB / 1.088 GB, free: 7.555 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=19): time 1.463e-06/0.2777, allocations: 0 / 1.088 GB, free: 7.555 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19): time 0.0006972/0.2784, allocations: 267.5 kB / 1.088 GB, free: 7.289 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.307e-05/0.2784, allocations: 63.39 kB / 1.088 GB, free: 7.215 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001815/0.2786, allocations: 192.3 kB / 1.088 GB, free: 7.016 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.511e-05/0.2787, allocations: 33.7 kB / 1.088 GB, free: 6.977 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.185e-05/0.2788, allocations: 128.4 kB / 1.088 GB, free: 6.848 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.73e-05/0.2788, allocations: 59.11 kB / 1.088 GB, free: 6.789 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.743e-05/0.2789, allocations: 41.64 kB / 1.088 GB, free: 6.742 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.279, allocations: 342.8 kB / 1.089 GB, free: 6.398 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002042/0.2792, allocations: 71.95 kB / 1.089 GB, free: 6.328 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002169/0.2795, allocations: 99.17 kB / 1.089 GB, free: 6.223 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003978/0.2799, allocations: 170.5 kB / 1.089 GB, free: 6.047 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.2799, allocations: 4 kB / 1.089 GB, free: 6.043 MB / 0.8419 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005047/0.2804, allocations: 237.3 kB / 1.089 GB, free: 5.805 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.2804, allocations: 7.938 kB / 1.089 GB, free: 5.797 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.2804, allocations: 4 kB / 1.089 GB, free: 5.793 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.2804, allocations: 0 / 1.089 GB, free: 5.793 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002071/0.2806, allocations: 43.97 kB / 1.089 GB, free: 5.75 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.2807, allocations: 4.156 kB / 1.089 GB, free: 5.746 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001458/0.2808, allocations: 31.77 kB / 1.089 GB, free: 5.715 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.2808, allocations: 7.984 kB / 1.089 GB, free: 5.707 MB / 0.8419 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.0001267/0.281, allocations: 140 kB / 1.089 GB, free: 5.562 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.117e-05/0.281, allocations: 19.72 kB / 1.09 GB, free: 5.543 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.694e-05/0.281, allocations: 21.88 kB / 1.09 GB, free: 5.523 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.2811, allocations: 4 kB / 1.09 GB, free: 5.52 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.2811, allocations: 4 kB / 1.09 GB, free: 5.516 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.2811, allocations: 11.86 kB / 1.09 GB, free: 5.504 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002532/0.2813, allocations: 281.5 kB / 1.09 GB, free: 5.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.2813, allocations: 3.984 kB / 1.09 GB, free: 5.176 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002149/0.2816, allocations: 35.92 kB / 1.09 GB, free: 5.141 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.2816, allocations: 3.984 kB / 1.09 GB, free: 5.137 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.621e-05/0.2816, allocations: 4 kB / 1.09 GB, free: 5.133 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2816, allocations: 4 kB / 1.09 GB, free: 5.129 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.2816, allocations: 0 / 1.09 GB, free: 5.129 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007164/0.2823, allocations: 338.3 kB / 1.09 GB, free: 4.781 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.791e-05/0.2824, allocations: 92.89 kB / 1.09 GB, free: 4.672 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.231e-05/0.2824, allocations: 8 kB / 1.09 GB, free: 4.664 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.2826, allocations: 20.03 kB / 1.09 GB, free: 4.645 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.116e-05/0.2827, allocations: 19.92 kB / 1.09 GB, free: 4.625 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.2827, allocations: 11.94 kB / 1.09 GB, free: 4.613 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001182/0.2828, allocations: 147.9 kB / 1.09 GB, free: 4.469 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2828, allocations: 0 / 1.09 GB, free: 4.469 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000222/0.283, allocations: 43.91 kB / 1.091 GB, free: 4.426 MB / 0.8419 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.0009963/0.284, allocations: 0.8737 MB / 1.091 GB, free: 3.52 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004808/0.2845, allocations: 185.4 kB / 1.092 GB, free: 3.34 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2845, allocations: 0 / 1.092 GB, free: 3.34 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002291/0.2848, allocations: 99.86 kB / 1.092 GB, free: 3.242 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/0.2851, allocations: 48.34 kB / 1.092 GB, free: 3.195 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002871/0.2879, allocations: 2.265 MB / 1.094 GB, free: 0.8398 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002984/0.2882, allocations: 0.7361 MB / 1.095 GB, free: 80 kB / 0.8419 GB Notification: Performance of simCode: alias equations: time 8.725e-05/0.2883, allocations: 21.53 kB / 1.095 GB, free: 56 kB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.2885, allocations: 63.47 kB / 1.095 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.2885, allocations: 0 / 1.095 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6453/0.9338, allocations: 4.521 MB / 1.099 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.61/9.544, allocations: 14.22 kB / 1.099 GB, free: 11.62 MB / 0.8575 GB (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 --timeout=50 --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)