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.007217/0.007217, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.00214/0.00214, allocations: 199.8 kB / 16.68 MB, free: 5.934 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.243/1.243, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.438/2.438, allocations: 482.6 MB / 0.755 GB, free: 6.668 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001709/0.001709, allocations: 72.62 kB / 1.083 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.2598, allocations: 162.3 MB / 1.242 GB, free: 8.977 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage): time 0.00262/0.2625, allocations: 1.165 MB / 1.243 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001713/0.2642, allocations: 1.041 MB / 1.244 GB, free: 6.754 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.2643, allocations: 7.938 kB / 1.244 GB, free: 6.746 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 6.958e-05/0.2644, allocations: 19.73 kB / 1.244 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001857/0.2646, allocations: 35.59 kB / 1.244 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000392/0.265, allocations: 99.83 kB / 1.244 GB, free: 6.594 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003556/0.2654, allocations: 247.2 kB / 1.244 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002514/0.2656, allocations: 107.2 kB / 1.244 GB, free: 6.242 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001996/0.2659, allocations: 87.7 kB / 1.245 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001983/0.2661, allocations: 115.4 kB / 1.245 GB, free: 6.043 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.389e-05/0.2661, allocations: 27.94 kB / 1.245 GB, free: 6.016 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 5.21e-05/0.2662, allocations: 24 kB / 1.245 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.179e-05/0.2663, allocations: 55.78 kB / 1.245 GB, free: 5.938 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.2664, allocations: 107.5 kB / 1.245 GB, free: 5.832 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003998/0.2668, allocations: 279.1 kB / 1.245 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.2669, allocations: 4 kB / 1.245 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.383e-06/0.2669, allocations: 4 kB / 1.245 GB, free: 5.551 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.501e-06/0.2669, allocations: 0 / 1.245 GB, free: 5.551 MB / 0.9669 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.001154/0.268, allocations: 0.5374 MB / 1.246 GB, free: 4.965 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.2681, allocations: 8.031 kB / 1.246 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.875e-05/0.2682, allocations: 58.67 kB / 1.246 GB, free: 4.891 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.669e-05/0.2683, allocations: 32.8 kB / 1.246 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003947/0.2687, allocations: 248.5 kB / 1.246 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.2688, allocations: 71.95 kB / 1.246 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.683e-05/0.2688, allocations: 20.31 kB / 1.246 GB, free: 4.477 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005188/0.2694, allocations: 193.6 kB / 1.246 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.2694, allocations: 0 / 1.246 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.881e-05/0.2694, allocations: 8 kB / 1.246 GB, free: 4.273 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.2694, allocations: 8 kB / 1.246 GB, free: 4.266 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003999/0.2698, allocations: 151.9 kB / 1.246 GB, free: 4.117 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007537/0.2706, allocations: 0.5587 MB / 1.247 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000346/0.271, allocations: 146.8 kB / 1.247 GB, free: 3.355 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000199/0.2712, allocations: 80.81 kB / 1.247 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.005e-05/0.2712, allocations: 11.98 kB / 1.247 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002877/0.2715, allocations: 143.2 kB / 1.247 GB, free: 3.109 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=19): time 3.125e-06/0.2715, allocations: 3.984 kB / 1.247 GB, free: 3.105 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19): time 0.0006759/0.2722, allocations: 275.1 kB / 1.248 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.774e-05/0.2722, allocations: 51.41 kB / 1.248 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001708/0.2724, allocations: 194.2 kB / 1.248 GB, free: 2.57 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.2724, allocations: 33.7 kB / 1.248 GB, free: 2.531 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.807e-05/0.2725, allocations: 136.4 kB / 1.248 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.539e-05/0.2726, allocations: 63.48 kB / 1.248 GB, free: 2.332 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.707e-05/0.2727, allocations: 41.7 kB / 1.248 GB, free: 2.285 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001281/0.2728, allocations: 330.8 kB / 1.248 GB, free: 1.953 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.273, allocations: 75.95 kB / 1.249 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000217/0.2732, allocations: 110.4 kB / 1.249 GB, free: 1.762 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00038/0.2736, allocations: 174.4 kB / 1.249 GB, free: 1.582 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2736, allocations: 0 / 1.249 GB, free: 1.582 MB / 0.9669 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004773/0.2741, allocations: 229.4 kB / 1.249 GB, free: 1.352 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.2741, allocations: 8 kB / 1.249 GB, free: 1.344 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.2741, allocations: 0 / 1.249 GB, free: 1.344 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.378e-06/0.2741, allocations: 3.938 kB / 1.249 GB, free: 1.34 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002005/0.2743, allocations: 51.91 kB / 1.249 GB, free: 1.289 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.2744, allocations: 4 kB / 1.249 GB, free: 1.285 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001369/0.2745, allocations: 31.75 kB / 1.249 GB, free: 1.254 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.2745, allocations: 12 kB / 1.249 GB, free: 1.242 MB / 0.9669 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.0001099/0.2746, allocations: 129.8 kB / 1.249 GB, free: 1.105 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.56e-05/0.2747, allocations: 15.91 kB / 1.249 GB, free: 1.09 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.466e-05/0.2747, allocations: 25.86 kB / 1.249 GB, free: 1.066 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.2747, allocations: 8 kB / 1.249 GB, free: 1.059 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.195e-06/0.2747, allocations: 0 / 1.249 GB, free: 1.059 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.2747, allocations: 3.938 kB / 1.249 GB, free: 1.055 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002513/0.275, allocations: 297.3 kB / 1.25 GB, free: 0.7148 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.275, allocations: 0 / 1.25 GB, free: 0.7148 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002068/0.2752, allocations: 39.91 kB / 1.25 GB, free: 0.6758 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.2752, allocations: 0 / 1.25 GB, free: 0.6758 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.086e-05/0.2752, allocations: 12 kB / 1.25 GB, free: 0.6641 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.2753, allocations: 0 / 1.25 GB, free: 0.6641 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2753, allocations: 0 / 1.25 GB, free: 0.6641 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006795/0.2759, allocations: 334.7 kB / 1.25 GB, free: 328 kB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.714e-05/0.276, allocations: 96.94 kB / 1.25 GB, free: 212 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.023e-05/0.276, allocations: 11.98 kB / 1.25 GB, free: 200 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001277/0.2762, allocations: 16.05 kB / 1.25 GB, free: 184 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.939e-05/0.2762, allocations: 23.91 kB / 1.25 GB, free: 160 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.2763, allocations: 8 kB / 1.25 GB, free: 152 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001105/0.2764, allocations: 143.3 kB / 1.25 GB, free: 8 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2764, allocations: 0 / 1.25 GB, free: 8 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002245/0.2766, allocations: 44 kB / 1.25 GB, free: 15.96 MB / 0.9825 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.000949/0.2776, allocations: 0.8669 MB / 1.251 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004411/0.278, allocations: 183.8 kB / 1.251 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.278, allocations: 0 / 1.251 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000213/0.2782, allocations: 91.83 kB / 1.251 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002624/0.2785, allocations: 55.41 kB / 1.251 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002746/0.2813, allocations: 2.283 MB / 1.254 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002935/0.2816, allocations: 0.7361 MB / 1.254 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.495e-05/0.2817, allocations: 25.52 kB / 1.254 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.2818, allocations: 63.42 kB / 1.254 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of SimCode: time 2.6e-07/0.2818, allocations: 3.938 kB / 1.254 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5114/0.7932, allocations: 4.539 MB / 1.259 GB, free: 7.156 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.061/8.854, allocations: 11.25 kB / 1.259 GB, free: 7.148 MB / 0.9825 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)