Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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 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: translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001202/0.001202, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.008722/0.008723, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.566/1.566, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.173/3.173, allocations: 473.4 MB / 0.7469 GB, free: 6.078 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0006379/0.0006385, allocations: 9.125 kB / 0.9158 GB, free: 33.06 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4208/0.4215, allocations: 162.2 MB / 1.074 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.003955/0.4255, allocations: 3.307 MB / 1.077 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002904/0.4284, allocations: 1.305 MB / 1.079 GB, free: 2.93 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004451/0.4289, allocations: 23.88 kB / 1.079 GB, free: 2.906 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003119/0.4292, allocations: 91.11 kB / 1.079 GB, free: 2.816 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005019/0.4297, allocations: 143 kB / 1.079 GB, free: 2.676 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001066/0.4308, allocations: 0.5319 MB / 1.079 GB, free: 2.152 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0008254/0.4316, allocations: 0.8901 MB / 1.08 GB, free: 1.258 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000487/0.4321, allocations: 329.6 kB / 1.081 GB, free: 0.918 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003172/0.4325, allocations: 278.3 kB / 1.081 GB, free: 0.6445 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003124/0.4328, allocations: 282 kB / 1.081 GB, free: 376 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.694e-05/0.4329, allocations: 20 kB / 1.081 GB, free: 356 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.72e-05/0.4329, allocations: 20 kB / 1.081 GB, free: 336 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.666e-05/0.433, allocations: 115.3 kB / 1.081 GB, free: 220 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002507/0.4333, allocations: 323.5 kB / 1.082 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0006303/0.4339, allocations: 0.7823 MB / 1.082 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.4339, allocations: 0 / 1.082 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.003e-06/0.4339, allocations: 4 kB / 1.082 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.056e-05/0.434, allocations: 0 / 1.082 GB, free: 15.1 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001802/0.4358, allocations: 1.063 MB / 1.083 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.4358, allocations: 8.031 kB / 1.083 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000148/0.436, allocations: 91.81 kB / 1.083 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008871/0.4369, allocations: 0.6064 MB / 1.084 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/0.437, allocations: 96.97 kB / 1.084 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.385e-05/0.4371, allocations: 52.36 kB / 1.084 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.4382, allocations: 0.6159 MB / 1.085 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.4382, allocations: 4 kB / 1.085 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.29e-05/0.4383, allocations: 23.92 kB / 1.085 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/0.4383, allocations: 12 kB / 1.085 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009765/0.4393, allocations: 447.7 kB / 1.085 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002644/0.4419, allocations: 2.125 MB / 1.087 GB, free: 9.738 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001236/0.4432, allocations: 0.5225 MB / 1.088 GB, free: 9.203 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004809/0.4437, allocations: 232.7 kB / 1.088 GB, free: 8.973 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.179e-05/0.4437, allocations: 8 kB / 1.088 GB, free: 8.965 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006546/0.4444, allocations: 286.2 kB / 1.088 GB, free: 8.672 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=45): time 2.745e-06/0.4444, allocations: 0 / 1.088 GB, free: 8.672 MB / 0.8419 GB Notification: Performance of matching and sorting (n=45): time 0.001457/0.4458, allocations: 0.649 MB / 1.089 GB, free: 8.016 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.375e-05/0.4459, allocations: 88.86 kB / 1.089 GB, free: 7.91 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006517/0.4466, allocations: 0.6138 MB / 1.09 GB, free: 7.289 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.458e-05/0.4466, allocations: 37.7 kB / 1.09 GB, free: 7.246 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002477/0.4469, allocations: 356.7 kB / 1.09 GB, free: 6.895 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001245/0.447, allocations: 158.8 kB / 1.09 GB, free: 6.738 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.725e-05/0.4471, allocations: 49.69 kB / 1.09 GB, free: 6.684 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.487e-05/0.4472, allocations: 322 kB / 1.091 GB, free: 6.363 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004479/0.4476, allocations: 193 kB / 1.091 GB, free: 6.176 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004967/0.4481, allocations: 284.2 kB / 1.091 GB, free: 5.863 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009431/0.4491, allocations: 497.9 kB / 1.091 GB, free: 5.336 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.4491, allocations: 7.938 kB / 1.091 GB, free: 5.328 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001189/0.4503, allocations: 0.6216 MB / 1.092 GB, free: 4.691 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.000127/0.4504, allocations: 190.4 kB / 1.092 GB, free: 4.465 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.4505, allocations: 4 kB / 1.092 GB, free: 4.461 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/0.4505, allocations: 7.984 kB / 1.092 GB, free: 4.453 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004841/0.451, allocations: 111.8 kB / 1.092 GB, free: 4.344 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.451, allocations: 8 kB / 1.092 GB, free: 4.336 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000389/0.4514, allocations: 67.42 kB / 1.092 GB, free: 4.27 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.81e-05/0.4514, allocations: 23.98 kB / 1.092 GB, free: 4.246 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.506e-06/0.4514, allocations: 7.938 kB / 1.092 GB, free: 4.238 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009986/0.4524, allocations: 0.4999 MB / 1.093 GB, free: 3.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.4525, allocations: 7.984 kB / 1.093 GB, free: 3.723 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.03e-06/0.4525, allocations: 4 kB / 1.093 GB, free: 3.719 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004313/0.4529, allocations: 108.1 kB / 1.093 GB, free: 3.613 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.4529, allocations: 8 kB / 1.093 GB, free: 3.605 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003414/0.4533, allocations: 63.5 kB / 1.093 GB, free: 3.543 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.504e-05/0.4533, allocations: 16 kB / 1.093 GB, free: 3.527 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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.trigger_internal,limPID.I.trigger_internal) * 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.0002552/0.4536, allocations: 273 kB / 1.093 GB, free: 3.25 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.175e-05/0.4537, allocations: 78.98 kB / 1.094 GB, free: 3.172 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001585/0.4538, allocations: 83.2 kB / 1.094 GB, free: 3.086 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.4539, allocations: 8 kB / 1.094 GB, free: 3.078 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.4539, allocations: 0 / 1.094 GB, free: 3.078 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.4539, allocations: 0 / 1.094 GB, free: 3.078 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006263/0.4545, allocations: 0.6219 MB / 1.094 GB, free: 2.406 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.4545, allocations: 3.938 kB / 1.094 GB, free: 2.402 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004708/0.455, allocations: 83.89 kB / 1.094 GB, free: 2.32 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.455, allocations: 0 / 1.094 GB, free: 2.32 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.56e-05/0.455, allocations: 15.98 kB / 1.094 GB, free: 2.305 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.4551, allocations: 8 kB / 1.094 GB, free: 2.297 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.4551, allocations: 0 / 1.094 GB, free: 2.297 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001504/0.4566, allocations: 0.7525 MB / 1.095 GB, free: 1.527 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002082/0.4568, allocations: 192.1 kB / 1.095 GB, free: 1.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.029e-05/0.4569, allocations: 8 kB / 1.095 GB, free: 1.312 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004212/0.4573, allocations: 43.95 kB / 1.095 GB, free: 1.27 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.863e-05/0.4574, allocations: 31.95 kB / 1.095 GB, free: 1.238 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.632e-05/0.4574, allocations: 23.94 kB / 1.095 GB, free: 1.215 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000461/0.4579, allocations: 427 kB / 1.096 GB, free: 0.8047 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4579, allocations: 3.938 kB / 1.096 GB, free: 0.8008 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005771/0.4585, allocations: 219.3 kB / 1.096 GB, free: 0.5859 MB / 0.8419 GB 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 (45): * Single equations (assignments): 43 * 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.0001622/0.4587, allocations: 123 kB / 1.096 GB, free: 468 kB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001585/0.4603, allocations: 0.812 MB / 1.097 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.4603, allocations: 0 / 1.097 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004648/0.4607, allocations: 228.5 kB / 1.097 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009065/0.4617, allocations: 189.2 kB / 1.097 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00206/0.4637, allocations: 1.47 MB / 1.099 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004068/0.4641, allocations: 0.9144 MB / 1.1 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.000365/0.4645, allocations: 97.11 kB / 1.1 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/0.4647, allocations: 43.44 kB / 1.1 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of SimCode: time 3.8e-07/0.4647, allocations: 3.938 kB / 1.1 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of Templates: time 0.01284/0.4775, allocations: 7.133 MB / 1.107 GB, free: 5.582 MB / 0.8575 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_3.0.0_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_3.0.0_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1)