Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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_8_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.00108/0.00108, allocations: 110.2 kB / 16.36 MB, free: 6.012 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.001119/0.001119, allocations: 193.8 kB / 17.3 MB, free: 5.613 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.406/1.406, allocations: 205.1 MB / 223.2 MB, free: 12.1 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.803/1.803, allocations: 292.3 MB / 0.5496 GB, free: 17.49 MB / 462.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: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 71.88 kB / 0.6729 GB, free: 5.871 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1901/0.1917, allocations: 114.5 MB / 0.7848 GB, free: 3.207 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.3567/0.5484, allocations: 3.721 MB / 0.7884 GB, free: 46.42 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.002155/0.5506, allocations: 1.369 MB / 0.7897 GB, free: 46.37 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003016/0.5509, allocations: 33.47 kB / 0.7898 GB, free: 46.37 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.000285/0.5513, allocations: 130 kB / 0.7899 GB, free: 46.37 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0004252/0.5517, allocations: 176.5 kB / 0.7901 GB, free: 46.37 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009017/0.5526, allocations: 0.5674 MB / 0.7906 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0007277/0.5534, allocations: 0.967 MB / 0.7916 GB, free: 46.34 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00042/0.5538, allocations: 355.2 kB / 0.7919 GB, free: 46.3 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000315/0.5541, allocations: 361.7 kB / 0.7922 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002795/0.5544, allocations: 356 kB / 0.7926 GB, free: 46.13 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.5545, allocations: 76.78 kB / 0.7927 GB, free: 46.13 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 9.656e-05/0.5546, allocations: 79.44 kB / 0.7927 GB, free: 46.13 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.000112/0.5547, allocations: 178.7 kB / 0.7929 GB, free: 46.1 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0002143/0.555, allocations: 379.5 kB / 0.7933 GB, free: 45.96 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0005829/0.5555, allocations: 0.901 MB / 0.7941 GB, free: 45.8 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.5556, allocations: 0.9375 kB / 0.7941 GB, free: 45.8 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.445e-06/0.5556, allocations: 0 / 0.7941 GB, free: 45.8 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.256e-05/0.5556, allocations: 0 / 0.7941 GB, free: 45.8 MB / 0.6544 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.001695/0.5573, allocations: 1.184 MB / 0.7953 GB, free: 45.12 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.041e-05/0.5573, allocations: 6.75 kB / 0.7953 GB, free: 45.12 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.5575, allocations: 97.59 kB / 0.7954 GB, free: 45.08 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007876/0.5583, allocations: 0.608 MB / 0.796 GB, free: 44.76 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.225e-05/0.5584, allocations: 97.56 kB / 0.7961 GB, free: 44.7 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.061e-05/0.5584, allocations: 53.06 kB / 0.7961 GB, free: 44.7 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008914/0.5593, allocations: 0.6038 MB / 0.7967 GB, free: 44.44 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.5594, allocations: 2.438 kB / 0.7967 GB, free: 44.44 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.102e-05/0.5594, allocations: 26.03 kB / 0.7968 GB, free: 44.43 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.5594, allocations: 11.61 kB / 0.7968 GB, free: 44.43 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008475/0.5603, allocations: 426 kB / 0.7972 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002306/0.5626, allocations: 2.101 MB / 0.7992 GB, free: 42.9 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/0.5637, allocations: 0.4911 MB / 0.7997 GB, free: 42.72 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004089/0.5641, allocations: 220.6 kB / 0.7999 GB, free: 42.63 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.736e-05/0.5642, allocations: 5.344 kB / 0.7999 GB, free: 42.63 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000615/0.5648, allocations: 288.2 kB / 0.8002 GB, free: 42.51 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=45): time 2.024e-06/0.5648, allocations: 0 / 0.8002 GB, free: 42.51 MB / 0.6544 GB Notification: Performance of matching and sorting (n=45): time 0.001352/0.5662, allocations: 0.6124 MB / 0.8008 GB, free: 42.27 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.614e-05/0.5662, allocations: 85.92 kB / 0.8009 GB, free: 42.17 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006435/0.5669, allocations: 0.6161 MB / 0.8015 GB, free: 41.9 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 4.263e-05/0.5669, allocations: 35.89 kB / 0.8015 GB, free: 41.86 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002137/0.5671, allocations: 365.4 kB / 0.8019 GB, free: 41.57 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.5673, allocations: 153.3 kB / 0.802 GB, free: 41.45 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/0.5674, allocations: 91.94 kB / 0.8021 GB, free: 41.4 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.618e-05/0.5675, allocations: 325.5 kB / 0.8024 GB, free: 41.09 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004448/0.5679, allocations: 185.7 kB / 0.8026 GB, free: 41.02 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004625/0.5684, allocations: 277.1 kB / 0.8028 GB, free: 40.85 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008422/0.5692, allocations: 480.3 kB / 0.8033 GB, free: 40.58 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.5693, allocations: 6.469 kB / 0.8033 GB, free: 40.57 MB / 0.6544 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001172/0.5704, allocations: 0.5972 MB / 0.8039 GB, free: 40.31 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.333e-05/0.5705, allocations: 34.41 kB / 0.8039 GB, free: 40.28 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.5705, allocations: 6.594 kB / 0.8039 GB, free: 40.28 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.5705, allocations: 7.016 kB / 0.8039 GB, free: 40.28 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004969/0.571, allocations: 105.8 kB / 0.804 GB, free: 40.27 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.344e-05/0.571, allocations: 9.312 kB / 0.8041 GB, free: 40.27 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003784/0.5714, allocations: 67.72 kB / 0.8041 GB, free: 40.23 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.773e-05/0.5715, allocations: 20.11 kB / 0.8041 GB, free: 40.23 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005384/0.572, allocations: 312.8 kB / 0.8044 GB, free: 40.05 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004486/0.5725, allocations: 263.9 kB / 0.8047 GB, free: 39.88 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008074/0.5733, allocations: 457.7 kB / 0.8051 GB, free: 39.6 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.044e-06/0.5733, allocations: 4.969 kB / 0.8051 GB, free: 39.59 MB / 0.6544 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001075/0.5744, allocations: 0.5756 MB / 0.8057 GB, free: 39.32 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/0.5744, allocations: 34.69 kB / 0.8057 GB, free: 39.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.5744, allocations: 3.594 kB / 0.8057 GB, free: 39.29 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.332e-06/0.5744, allocations: 4.781 kB / 0.8057 GB, free: 39.29 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004528/0.5749, allocations: 107.6 kB / 0.8058 GB, free: 39.27 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.5749, allocations: 7.297 kB / 0.8058 GB, free: 39.27 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003554/0.5753, allocations: 50.84 kB / 0.8059 GB, free: 39.25 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.427e-05/0.5753, allocations: 19.66 kB / 0.8059 GB, free: 39.24 MB / 0.6544 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.0001358/0.5755, allocations: 213.3 kB / 0.8061 GB, free: 39.04 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.5756, allocations: 70.91 kB / 0.8062 GB, free: 39 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001629/0.5757, allocations: 79.7 kB / 0.8063 GB, free: 38.95 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.5758, allocations: 10.42 kB / 0.8063 GB, free: 38.94 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.5758, allocations: 0 / 0.8063 GB, free: 38.94 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.5758, allocations: 3.469 kB / 0.8063 GB, free: 38.94 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006881/0.5765, allocations: 0.6284 MB / 0.8069 GB, free: 38.58 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.5765, allocations: 0 / 0.8069 GB, free: 38.58 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004682/0.577, allocations: 82.77 kB / 0.807 GB, free: 38.57 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.577, allocations: 2.281 kB / 0.807 GB, free: 38.57 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.642e-05/0.577, allocations: 12.06 kB / 0.807 GB, free: 38.57 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.577, allocations: 2.438 kB / 0.807 GB, free: 38.57 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.577, allocations: 9.062 kB / 0.807 GB, free: 38.56 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001503/0.5785, allocations: 0.7276 MB / 0.8077 GB, free: 38.22 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002343/0.5788, allocations: 191.4 kB / 0.8079 GB, free: 38.06 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.325e-05/0.5789, allocations: 11.45 kB / 0.8079 GB, free: 38.05 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004056/0.5793, allocations: 31.59 kB / 0.8079 GB, free: 38.05 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.5794, allocations: 30.81 kB / 0.8079 GB, free: 38.04 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.676e-05/0.5794, allocations: 17.59 kB / 0.808 GB, free: 38.04 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0005091/0.58, allocations: 433.7 kB / 0.8084 GB, free: 37.85 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.7e-07/0.58, allocations: 5.406 kB / 0.8084 GB, free: 37.85 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0006395/0.5806, allocations: 218.5 kB / 0.8086 GB, free: 37.79 MB / 0.6544 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.0001177/0.5807, allocations: 112 kB / 0.8087 GB, free: 37.69 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001521/0.5823, allocations: 0.7873 MB / 0.8095 GB, free: 37.34 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.5823, allocations: 0 / 0.8095 GB, free: 37.34 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0004713/0.5827, allocations: 222.9 kB / 0.8097 GB, free: 37.27 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009542/0.5837, allocations: 211.3 kB / 0.8099 GB, free: 37.21 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002463/0.5862, allocations: 1.181 MB / 0.811 GB, free: 36.56 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005449/0.5868, allocations: 0.9189 MB / 0.8119 GB, free: 35.85 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0005641/0.5873, allocations: 94.5 kB / 0.812 GB, free: 35.84 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000171/0.5875, allocations: 50.14 kB / 0.8121 GB, free: 35.82 MB / 0.6544 GB Notification: Performance of SimCode: time 9.22e-07/0.5875, allocations: 1.5 kB / 0.8121 GB, free: 35.82 MB / 0.6544 GB Notification: Performance of Templates: time 0.01824/0.6058, allocations: 7.588 MB / 0.8195 GB, free: 35.46 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_8_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1)