Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.607/1.607, allocations: 297.8 MB / 313.7 MB, free: 140 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009875/0.0009877, allocations: 172.5 kB / 384.6 MB, free: 10.87 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 223.2 MB / 0.6626 GB, free: 4.328 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008126/0.0008126, allocations: 97.22 kB / 0.7808 GB, free: 43.83 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0003907/0.0003907, allocations: 12.78 kB / 0.9088 GB, free: 0.6914 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6638/0.6642, allocations: 120.3 MB / 1.026 GB, free: 57.2 MB / 0.698 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2052/0.8695, allocations: 149.2 MB / 1.172 GB, free: 8.98 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002544/0.8698, allocations: 79.95 kB / 1.172 GB, free: 8.902 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.04508/0.9149, allocations: 16.93 MB / 1.189 GB, free: 8.031 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.843e-06/0.9149, allocations: 4 kB / 1.189 GB, free: 8.027 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 9.45e-05/0.9151, allocations: 23.94 kB / 1.189 GB, free: 8.004 MB / 0.7605 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.002392/0.9175, allocations: 1.064 MB / 1.19 GB, free: 6.879 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.9175, allocations: 8.031 kB / 1.19 GB, free: 6.871 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003391/0.9179, allocations: 95.81 kB / 1.19 GB, free: 6.777 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001167/0.919, allocations: 0.6027 MB / 1.19 GB, free: 6.133 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/0.9192, allocations: 105 kB / 1.19 GB, free: 6.016 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.9193, allocations: 52.38 kB / 1.191 GB, free: 5.965 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.9205, allocations: 0.6724 MB / 1.191 GB, free: 5.242 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.9206, allocations: 0 / 1.191 GB, free: 5.242 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.632e-05/0.9206, allocations: 24 kB / 1.191 GB, free: 5.219 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.9207, allocations: 12 kB / 1.191 GB, free: 5.207 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.9218, allocations: 495.6 kB / 1.192 GB, free: 4.723 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00317/0.9249, allocations: 2.215 MB / 1.194 GB, free: 2.426 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001283/0.9262, allocations: 0.5904 MB / 1.194 GB, free: 1.82 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004617/0.9267, allocations: 232.9 kB / 1.195 GB, free: 1.59 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 4.453e-05/0.9268, allocations: 7.984 kB / 1.195 GB, free: 1.582 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007188/0.9275, allocations: 324.1 kB / 1.195 GB, free: 1.254 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=45): time 2.545e-06/0.9275, allocations: 4 kB / 1.195 GB, free: 1.25 MB / 0.7605 GB Notification: Performance of matching and sorting (n=45): time 0.00158/0.9291, allocations: 0.7167 MB / 1.196 GB, free: 0.5273 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/0.9292, allocations: 191.7 kB / 1.196 GB, free: 304 kB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007566/0.93, allocations: 0.6178 MB / 1.196 GB, free: 15.67 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 6.581e-05/0.9301, allocations: 33.7 kB / 1.196 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002624/0.9303, allocations: 360.7 kB / 1.197 GB, free: 15.27 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.9305, allocations: 157.8 kB / 1.197 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.513e-05/0.9305, allocations: 8 kB / 1.197 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.9307, allocations: 330 kB / 1.197 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004725/0.9311, allocations: 209 kB / 1.198 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005524/0.9317, allocations: 343.7 kB / 1.198 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009797/0.9327, allocations: 0.5291 MB / 1.198 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.9327, allocations: 0 / 1.198 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001296/0.934, allocations: 0.6609 MB / 1.199 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001369/0.9342, allocations: 196.9 kB / 1.199 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.9342, allocations: 4 kB / 1.199 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.9342, allocations: 4 kB / 1.199 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004929/0.9347, allocations: 127.8 kB / 1.199 GB, free: 12.58 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.607e-05/0.9347, allocations: 4 kB / 1.199 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005098/0.9352, allocations: 83.48 kB / 1.199 GB, free: 12.49 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.379e-05/0.9353, allocations: 20 kB / 1.199 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/0.9353, allocations: 4 kB / 1.199 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001044/0.9364, allocations: 0.5506 MB / 1.2 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.9364, allocations: 4 kB / 1.2 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.534e-06/0.9364, allocations: 4 kB / 1.2 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000439/0.9368, allocations: 120.1 kB / 1.2 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.9369, allocations: 4 kB / 1.2 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004975/0.9374, allocations: 79.48 kB / 1.2 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.331e-05/0.9374, allocations: 24 kB / 1.2 GB, free: 11.68 MB / 0.7761 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004126/0.9378, allocations: 281.9 kB / 1.2 GB, free: 11.4 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.938, allocations: 71.09 kB / 1.201 GB, free: 11.33 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001836/0.9382, allocations: 83.2 kB / 1.201 GB, free: 11.25 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.9382, allocations: 4 kB / 1.201 GB, free: 11.24 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.9382, allocations: 0 / 1.201 GB, free: 11.24 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.9382, allocations: 0 / 1.201 GB, free: 11.24 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007838/0.939, allocations: 0.6491 MB / 1.201 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.939, allocations: 0 / 1.201 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004789/0.9395, allocations: 111.9 kB / 1.201 GB, free: 10.43 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.9395, allocations: 0 / 1.201 GB, free: 10.43 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.309e-05/0.9396, allocations: 15.98 kB / 1.201 GB, free: 10.42 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.9396, allocations: 0 / 1.201 GB, free: 10.42 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.9396, allocations: 0 / 1.201 GB, free: 10.42 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001568/0.9412, allocations: 0.8332 MB / 1.202 GB, free: 9.562 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002815/0.9415, allocations: 204 kB / 1.202 GB, free: 9.344 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.964e-05/0.9416, allocations: 12 kB / 1.202 GB, free: 9.332 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000464/0.942, allocations: 59.95 kB / 1.202 GB, free: 9.273 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.9421, allocations: 35.94 kB / 1.202 GB, free: 9.238 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.23e-05/0.9422, allocations: 15.98 kB / 1.202 GB, free: 9.223 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0005338/0.9427, allocations: 431.1 kB / 1.203 GB, free: 8.805 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9427, allocations: 4 kB / 1.203 GB, free: 8.801 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.000678/0.9434, allocations: 235.3 kB / 1.203 GB, free: 8.57 MB / 0.7761 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001915/0.9436, allocations: 119.7 kB / 1.203 GB, free: 8.445 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.001713/0.9453, allocations: 0.8945 MB / 1.204 GB, free: 7.527 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.9454, allocations: 0 / 1.204 GB, free: 7.527 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0004886/0.9459, allocations: 256 kB / 1.204 GB, free: 7.277 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000909/0.9468, allocations: 183.4 kB / 1.205 GB, free: 7.109 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002307/0.9491, allocations: 1.388 MB / 1.206 GB, free: 5.684 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004604/0.9496, allocations: 0.9221 MB / 1.207 GB, free: 4.734 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0004712/0.95, allocations: 93.16 kB / 1.207 GB, free: 4.641 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001444/0.9502, allocations: 47.42 kB / 1.207 GB, free: 4.594 MB / 0.7761 GB Notification: Performance of SimCode: time 1.443e-06/0.9502, allocations: 0 / 1.207 GB, free: 4.594 MB / 0.7761 GB Notification: Performance of Templates: time 0.01495/0.9652, allocations: 7.873 MB / 1.215 GB, free: 12.83 MB / 0.7917 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1)