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.001458/0.001458, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001346/0.001346, allocations: 195.8 kB / 16.26 MB, free: 6.629 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.327/1.327, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.764/2.764, allocations: 482.4 MB / 0.7544 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001715/0.001715, allocations: 66.89 kB / 0.9235 GB, free: 29.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2399/0.2416, allocations: 162.2 MB / 1.082 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage): time 0.002187/0.2438, allocations: 1.214 MB / 1.083 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00112/0.245, allocations: 1.041 MB / 1.084 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.069e-05/0.245, allocations: 4 kB / 1.084 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.889e-05/0.2451, allocations: 15.8 kB / 1.084 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001163/0.2452, allocations: 23.78 kB / 1.084 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002533/0.2455, allocations: 87.86 kB / 1.084 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002266/0.2457, allocations: 235.4 kB / 1.084 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001757/0.2459, allocations: 111.2 kB / 1.085 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.2461, allocations: 95.58 kB / 1.085 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001181/0.2462, allocations: 107.5 kB / 1.085 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.38e-05/0.2462, allocations: 27.94 kB / 1.085 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 3.371e-05/0.2463, allocations: 28 kB / 1.085 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.904e-05/0.2463, allocations: 51.83 kB / 1.085 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 8.935e-05/0.2464, allocations: 107.4 kB / 1.085 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002398/0.2467, allocations: 271.4 kB / 1.085 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.2467, allocations: 8 kB / 1.085 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.021e-06/0.2467, allocations: 0 / 1.085 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.178e-06/0.2467, allocations: 0 / 1.085 GB, free: 10.07 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.0008085/0.2475, allocations: 0.5298 MB / 1.086 GB, free: 9.496 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.073e-05/0.2475, allocations: 8.031 kB / 1.086 GB, free: 9.488 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.055e-05/0.2476, allocations: 62.67 kB / 1.086 GB, free: 9.418 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.798e-05/0.2477, allocations: 24.66 kB / 1.086 GB, free: 9.395 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002362/0.2479, allocations: 240.4 kB / 1.086 GB, free: 9.121 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.904e-05/0.248, allocations: 71.97 kB / 1.086 GB, free: 9.039 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.239e-05/0.248, allocations: 16.38 kB / 1.086 GB, free: 9.023 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003765/0.2484, allocations: 185.7 kB / 1.086 GB, free: 8.836 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.2484, allocations: 4 kB / 1.086 GB, free: 8.832 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.2484, allocations: 8 kB / 1.086 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.2485, allocations: 8 kB / 1.086 GB, free: 8.816 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003862/0.2488, allocations: 155.8 kB / 1.086 GB, free: 8.664 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007769/0.2496, allocations: 0.5856 MB / 1.087 GB, free: 8.027 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003436/0.25, allocations: 146.7 kB / 1.087 GB, free: 7.875 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001939/0.2502, allocations: 84.8 kB / 1.087 GB, free: 7.789 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.641e-05/0.2502, allocations: 4 kB / 1.087 GB, free: 7.785 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003067/0.2505, allocations: 143.2 kB / 1.087 GB, free: 7.633 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=19): time 1.543e-06/0.2505, allocations: 0 / 1.087 GB, free: 7.633 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19): time 0.0006549/0.2512, allocations: 271.4 kB / 1.088 GB, free: 7.363 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/0.2513, allocations: 59.41 kB / 1.088 GB, free: 7.293 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001702/0.2514, allocations: 182.8 kB / 1.088 GB, free: 7.102 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.2515, allocations: 33.7 kB / 1.088 GB, free: 7.062 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.157e-05/0.2515, allocations: 136.4 kB / 1.088 GB, free: 6.926 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.529e-05/0.2516, allocations: 63.08 kB / 1.088 GB, free: 6.863 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.659e-05/0.2517, allocations: 41.7 kB / 1.088 GB, free: 6.816 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.2518, allocations: 330.8 kB / 1.088 GB, free: 6.484 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001919/0.252, allocations: 71.95 kB / 1.089 GB, free: 6.414 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002078/0.2522, allocations: 108 kB / 1.089 GB, free: 6.301 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003682/0.2526, allocations: 174.4 kB / 1.089 GB, free: 6.121 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.2526, allocations: 0 / 1.089 GB, free: 6.121 MB / 0.8419 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004707/0.2531, allocations: 237.3 kB / 1.089 GB, free: 5.883 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.044e-05/0.2531, allocations: 4 kB / 1.089 GB, free: 5.879 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.377e-06/0.2531, allocations: 0 / 1.089 GB, free: 5.879 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.2531, allocations: 4 kB / 1.089 GB, free: 5.875 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002034/0.2533, allocations: 47.84 kB / 1.089 GB, free: 5.828 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.2533, allocations: 160 / 1.089 GB, free: 5.828 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001431/0.2535, allocations: 39.75 kB / 1.089 GB, free: 5.789 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.2535, allocations: 8 kB / 1.089 GB, free: 5.781 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.0001118/0.2536, allocations: 137.8 kB / 1.089 GB, free: 5.637 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.071e-05/0.2537, allocations: 19.72 kB / 1.089 GB, free: 5.617 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.304e-05/0.2537, allocations: 25.86 kB / 1.089 GB, free: 5.598 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.2537, allocations: 0 / 1.089 GB, free: 5.598 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.395e-06/0.2537, allocations: 0 / 1.089 GB, free: 5.598 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.2537, allocations: 3.938 kB / 1.089 GB, free: 5.594 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002493/0.254, allocations: 281.5 kB / 1.09 GB, free: 5.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.254, allocations: 8 kB / 1.09 GB, free: 5.262 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002148/0.2542, allocations: 43.91 kB / 1.09 GB, free: 5.219 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.2542, allocations: 0 / 1.09 GB, free: 5.219 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.2542, allocations: 0 / 1.09 GB, free: 5.219 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.2543, allocations: 3.984 kB / 1.09 GB, free: 5.215 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.2543, allocations: 4 kB / 1.09 GB, free: 5.211 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006741/0.2549, allocations: 338.7 kB / 1.09 GB, free: 4.863 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.755e-05/0.255, allocations: 96.89 kB / 1.09 GB, free: 4.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.879e-05/0.255, allocations: 3.984 kB / 1.09 GB, free: 4.746 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.2552, allocations: 19.98 kB / 1.09 GB, free: 4.727 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.273e-05/0.2553, allocations: 31.84 kB / 1.09 GB, free: 4.695 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.2553, allocations: 4 kB / 1.09 GB, free: 4.691 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001132/0.2554, allocations: 146.7 kB / 1.09 GB, free: 4.551 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2554, allocations: 0 / 1.09 GB, free: 4.551 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002171/0.2556, allocations: 39.91 kB / 1.09 GB, free: 4.512 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.0009424/0.2566, allocations: 0.8789 MB / 1.091 GB, free: 3.602 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004515/0.257, allocations: 194 kB / 1.091 GB, free: 3.414 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.257, allocations: 4 kB / 1.091 GB, free: 3.41 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002168/0.2573, allocations: 95.95 kB / 1.091 GB, free: 3.316 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.2575, allocations: 46.72 kB / 1.091 GB, free: 3.273 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0028/0.2604, allocations: 2.341 MB / 1.094 GB, free: 0.8398 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.2607, allocations: 0.7322 MB / 1.094 GB, free: 84 kB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.161e-05/0.2608, allocations: 21.55 kB / 1.095 GB, free: 56 kB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.2609, allocations: 67.41 kB / 1.095 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/0.2609, allocations: 0 / 1.095 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8855/1.146, allocations: 4.245 MB / 1.099 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003672/1.147, allocations: 231.7 kB / 1.099 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.769/2.916, allocations: 2.812 kB / 1.099 GB, free: 11.7 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=400 --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)