Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008955/0.0008957, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005869/0.005869, allocations: 169.6 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.595/1.595, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6563/0.6563, allocations: 95.62 MB / 366.4 MB, free: 10.23 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006711/0.0006711, allocations: 20 kB / 447.5 MB, free: 8.969 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3974/0.3981, allocations: 70.33 MB / 0.5057 GB, free: 16.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004062/0.4022, allocations: 3.322 MB / 0.5089 GB, free: 12.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002771/0.405, allocations: 1.36 MB / 0.5102 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003703/0.4054, allocations: 23.88 kB / 0.5103 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002766/0.4057, allocations: 99.03 kB / 0.5104 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004741/0.4062, allocations: 139 kB / 0.5105 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.4072, allocations: 0.5291 MB / 0.511 GB, free: 10.83 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007016/0.4079, allocations: 0.9211 MB / 0.5119 GB, free: 9.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000452/0.4084, allocations: 343.8 kB / 0.5122 GB, free: 9.562 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002707/0.4087, allocations: 290.2 kB / 0.5125 GB, free: 9.277 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002647/0.4089, allocations: 293.9 kB / 0.5128 GB, free: 8.988 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.631e-05/0.409, allocations: 24 kB / 0.5128 GB, free: 8.965 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.562e-05/0.4091, allocations: 24 kB / 0.5128 GB, free: 8.941 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.357e-05/0.4092, allocations: 127.2 kB / 0.513 GB, free: 8.816 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000208/0.4094, allocations: 343.3 kB / 0.5133 GB, free: 8.473 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005314/0.4099, allocations: 0.8326 MB / 0.5141 GB, free: 7.637 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.4099, allocations: 0 / 0.5141 GB, free: 7.637 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.4099, allocations: 0 / 0.5141 GB, free: 7.637 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.185e-05/0.41, allocations: 4 kB / 0.5141 GB, free: 7.633 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.00172/0.4117, allocations: 1.079 MB / 0.5152 GB, free: 6.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.4117, allocations: 15.98 kB / 0.5152 GB, free: 6.484 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001666/0.4119, allocations: 103.7 kB / 0.5153 GB, free: 6.383 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006891/0.4126, allocations: 0.5972 MB / 0.5158 GB, free: 5.742 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/0.4127, allocations: 101.3 kB / 0.5159 GB, free: 5.633 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.705e-05/0.4128, allocations: 56.38 kB / 0.516 GB, free: 5.578 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/0.4139, allocations: 0.6618 MB / 0.5166 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.414, allocations: 7.938 kB / 0.5167 GB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.776e-05/0.414, allocations: 23.98 kB / 0.5167 GB, free: 4.848 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.397e-05/0.414, allocations: 12 kB / 0.5167 GB, free: 4.836 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.4151, allocations: 0.5048 MB / 0.5172 GB, free: 4.332 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003137/0.4183, allocations: 2.134 MB / 0.5193 GB, free: 2.117 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001224/0.4195, allocations: 0.5973 MB / 0.5198 GB, free: 1.512 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004351/0.42, allocations: 241.5 kB / 0.5201 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.214e-05/0.42, allocations: 8.359 kB / 0.5201 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006991/0.4207, allocations: 333.2 kB / 0.5204 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of pre-optimization done (n=47): time 3.827e-06/0.4207, allocations: 4 kB / 0.5204 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of matching and sorting (n=47): time 0.001452/0.4222, allocations: 0.744 MB / 0.5211 GB, free: 176 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.376e-05/0.4223, allocations: 133 kB / 0.5213 GB, free: 12 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008974/0.4232, allocations: 0.6493 MB / 0.5219 GB, free: 15.35 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.636e-05/0.4232, allocations: 41.64 kB / 0.5219 GB, free: 15.3 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003142/0.4236, allocations: 376.9 kB / 0.5223 GB, free: 14.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.4237, allocations: 165.6 kB / 0.5225 GB, free: 14.76 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.574e-05/0.4238, allocations: 49.69 kB / 0.5225 GB, free: 14.71 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.4239, allocations: 325.9 kB / 0.5228 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004999/0.4244, allocations: 221 kB / 0.523 GB, free: 14.17 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005659/0.425, allocations: 328.4 kB / 0.5233 GB, free: 13.81 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001011/0.426, allocations: 0.539 MB / 0.5239 GB, free: 13.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.4261, allocations: 3.938 kB / 0.5239 GB, free: 13.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001308/0.4274, allocations: 0.687 MB / 0.5245 GB, free: 12.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001293/0.4275, allocations: 183.9 kB / 0.5247 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.4275, allocations: 0 / 0.5247 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/0.4276, allocations: 4 kB / 0.5247 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000491/0.4281, allocations: 123.8 kB / 0.5248 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.4281, allocations: 7.938 kB / 0.5248 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004323/0.4285, allocations: 83.41 kB / 0.5249 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.839e-05/0.4286, allocations: 20 kB / 0.5249 GB, free: 12.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.196e-06/0.4286, allocations: 7.984 kB / 0.5249 GB, free: 12.08 MB / 398.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008542/0.4294, allocations: 0.4951 MB / 0.5254 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.4295, allocations: 7.984 kB / 0.5254 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.859e-06/0.4295, allocations: 4 kB / 0.5254 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003914/0.4299, allocations: 99.83 kB / 0.5255 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.4299, allocations: 4 kB / 0.5255 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003422/0.4302, allocations: 63.5 kB / 0.5256 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.184e-05/0.4303, allocations: 20.19 kB / 0.5256 GB, free: 11.38 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.local_reset,limPID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * 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.0003752/0.4307, allocations: 280.9 kB / 0.5259 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.4308, allocations: 83.06 kB / 0.526 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001898/0.431, allocations: 84.02 kB / 0.526 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.431, allocations: 4 kB / 0.5261 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/0.431, allocations: 0 / 0.5261 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.431, allocations: 0 / 0.5261 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008248/0.4319, allocations: 0.673 MB / 0.5267 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.4319, allocations: 0 / 0.5267 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004772/0.4324, allocations: 103.8 kB / 0.5268 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.211e-06/0.4324, allocations: 4 kB / 0.5268 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.351e-05/0.4324, allocations: 8 kB / 0.5268 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.4324, allocations: 4 kB / 0.5268 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.4324, allocations: 3.984 kB / 0.5268 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00168/0.4341, allocations: 0.8662 MB / 0.5277 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002815/0.4344, allocations: 208 kB / 0.5279 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.755e-05/0.4345, allocations: 12.12 kB / 0.5279 GB, free: 8.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004755/0.435, allocations: 63.94 kB / 0.5279 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.948e-05/0.4351, allocations: 32.39 kB / 0.528 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.363e-05/0.4351, allocations: 12 kB / 0.528 GB, free: 8.855 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005345/0.4357, allocations: 463 kB / 0.5284 GB, free: 8.406 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4357, allocations: 0 / 0.5284 GB, free: 8.406 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006327/0.4363, allocations: 231.3 kB / 0.5286 GB, free: 8.18 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 45 * 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.0001618/0.4365, allocations: 119.1 kB / 0.5288 GB, free: 8.055 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001602/0.4381, allocations: 0.8787 MB / 0.5296 GB, free: 7.156 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4381, allocations: 0 / 0.5296 GB, free: 7.156 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005072/0.4386, allocations: 266.9 kB / 0.5299 GB, free: 6.895 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000978/0.4396, allocations: 185.4 kB / 0.53 GB, free: 6.715 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002338/0.442, allocations: 1.577 MB / 0.5316 GB, free: 5.109 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004449/0.4424, allocations: 0.9342 MB / 0.5325 GB, free: 4.148 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003574/0.4428, allocations: 81.08 kB / 0.5326 GB, free: 4.066 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/0.4429, allocations: 55.36 kB / 0.5326 GB, free: 4.012 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.443, allocations: 0 / 0.5326 GB, free: 4.012 MB / 398.1 MB Notification: Performance of Templates: time 0.01492/0.4579, allocations: 7.945 MB / 0.5404 GB, free: 12.14 MB / 414.1 MB make -j1 -f Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.makefile Environment - environmentSimulation: (rm -f Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) Environment - environmentSimulation: