Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset") translateModel(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000973/0.000973, allocations: 100.4 kB / 15.05 MB, free: 1.105 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.0009828/0.0009829, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.037/1.037, allocations: 143.3 MB / 434.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003636/0.0003637, allocations: 8 kB / 0.5158 GB, free: 11.4 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.2116, allocations: 83.42 MB / 0.5973 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset): time 0.004127/0.2157, allocations: 3.379 MB / 0.6006 GB, free: 4.531 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00244/0.2182, allocations: 1.232 MB / 0.6018 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003857/0.2186, allocations: 23.88 kB / 0.6018 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001318/0.2188, allocations: 59.36 kB / 0.6019 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005958/0.2194, allocations: 223.3 kB / 0.6021 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007341/0.2201, allocations: 302.7 kB / 0.6024 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0007713/0.2209, allocations: 0.5822 MB / 0.6029 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004686/0.2214, allocations: 299.6 kB / 0.6032 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002798/0.2217, allocations: 234.9 kB / 0.6034 GB, free: 1.578 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002659/0.2219, allocations: 238.6 kB / 0.6037 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.723e-05/0.222, allocations: 24 kB / 0.6037 GB, free: 1.32 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.927e-05/0.2221, allocations: 27.94 kB / 0.6037 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.671e-05/0.2221, allocations: 95.53 kB / 0.6038 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001275/0.2223, allocations: 153.3 kB / 0.6039 GB, free: 1.043 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006686/0.223, allocations: 0.8611 MB / 0.6048 GB, free: 184 kB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.223, allocations: 0 / 0.6048 GB, free: 184 kB / 0.4981 GB Notification: Performance of FrontEnd: time 2.605e-06/0.223, allocations: 0 / 0.6048 GB, free: 184 kB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.17e-05/0.223, allocations: 7.938 kB / 0.6048 GB, free: 176 kB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.358/0.581, allocations: 0.9498 MB / 0.6057 GB, free: 40.66 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.5811, allocations: 8.906 kB / 0.6057 GB, free: 40.66 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001475/0.5812, allocations: 85.41 kB / 0.6058 GB, free: 40.62 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007506/0.582, allocations: 0.537 MB / 0.6063 GB, free: 40.36 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.267e-05/0.582, allocations: 44.38 kB / 0.6064 GB, free: 40.36 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.113e-05/0.5821, allocations: 57.94 kB / 0.6064 GB, free: 40.36 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009591/0.5831, allocations: 0.6057 MB / 0.607 GB, free: 40.27 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.142e-05/0.5831, allocations: 4.125 kB / 0.607 GB, free: 40.27 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.941e-05/0.5832, allocations: 19.41 kB / 0.607 GB, free: 40.27 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.5832, allocations: 16.75 kB / 0.6071 GB, free: 40.27 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008682/0.584, allocations: 467.5 kB / 0.6075 GB, free: 40.26 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002435/0.5865, allocations: 2.026 MB / 0.6095 GB, free: 39.61 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007996/0.5873, allocations: 457.7 kB / 0.6099 GB, free: 39.57 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.737e-05/0.5874, allocations: 6.281 kB / 0.6099 GB, free: 39.57 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000506/0.5879, allocations: 263.1 kB / 0.6102 GB, free: 39.51 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 2.665e-06/0.5879, allocations: 0 / 0.6102 GB, free: 39.51 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001128/0.589, allocations: 0.5956 MB / 0.6108 GB, free: 39.43 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/0.5891, allocations: 57.56 kB / 0.6108 GB, free: 39.37 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004086/0.5895, allocations: 446.2 kB / 0.6112 GB, free: 39.24 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.297e-05/0.5895, allocations: 35.11 kB / 0.6113 GB, free: 39.21 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002032/0.5897, allocations: 328.3 kB / 0.6116 GB, free: 39.04 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.5898, allocations: 161.8 kB / 0.6117 GB, free: 38.94 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.92e-05/0.5899, allocations: 11 kB / 0.6118 GB, free: 38.94 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.59, allocations: 363.8 kB / 0.6121 GB, free: 38.63 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003751/0.5904, allocations: 169.9 kB / 0.6123 GB, free: 38.63 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000389/0.5908, allocations: 251.2 kB / 0.6125 GB, free: 38.55 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003641/0.5911, allocations: 230.1 kB / 0.6127 GB, free: 38.51 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.5911, allocations: 0 / 0.6127 GB, free: 38.51 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008623/0.592, allocations: 0.5698 MB / 0.6133 GB, free: 38.39 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.276e-05/0.5921, allocations: 34.42 kB / 0.6133 GB, free: 38.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.5921, allocations: 0 / 0.6133 GB, free: 38.36 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.5921, allocations: 10.25 kB / 0.6133 GB, free: 38.36 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004561/0.5926, allocations: 117.6 kB / 0.6134 GB, free: 38.35 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.5926, allocations: 3.594 kB / 0.6134 GB, free: 38.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003275/0.5929, allocations: 74.7 kB / 0.6135 GB, free: 38.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.295e-05/0.5929, allocations: 23.55 kB / 0.6135 GB, free: 38.32 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.trigger.y,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * 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.0002275/0.5932, allocations: 206.2 kB / 0.6137 GB, free: 38.2 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.605e-05/0.5932, allocations: 57.56 kB / 0.6138 GB, free: 38.17 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001344/0.5934, allocations: 64.58 kB / 0.6138 GB, free: 38.16 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.5934, allocations: 7.25 kB / 0.6139 GB, free: 38.16 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.5934, allocations: 2.938 kB / 0.6139 GB, free: 38.16 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/0.5934, allocations: 3.328 kB / 0.6139 GB, free: 38.16 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001501/0.5949, allocations: 1.185 MB / 0.615 GB, free: 37.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.5949, allocations: 0.9375 kB / 0.615 GB, free: 37.68 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000431/0.5954, allocations: 106 kB / 0.6151 GB, free: 37.66 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.5954, allocations: 0.5625 kB / 0.6151 GB, free: 37.66 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.927e-05/0.5954, allocations: 14.42 kB / 0.6151 GB, free: 37.65 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.5954, allocations: 2.875 kB / 0.6151 GB, free: 37.65 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.5954, allocations: 3.953 kB / 0.6151 GB, free: 37.65 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001085/0.5965, allocations: 0.7711 MB / 0.6159 GB, free: 37.25 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001362/0.5967, allocations: 166.2 kB / 0.616 GB, free: 37.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.879e-05/0.5967, allocations: 14.83 kB / 0.6161 GB, free: 37.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002823/0.597, allocations: 35.69 kB / 0.6161 GB, free: 37.08 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.271e-05/0.5971, allocations: 34.34 kB / 0.6161 GB, free: 37.08 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.499e-05/0.5972, allocations: 16.55 kB / 0.6161 GB, free: 37.07 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002722/0.5974, allocations: 305.7 kB / 0.6164 GB, free: 36.92 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5975, allocations: 3.938 kB / 0.6164 GB, free: 36.91 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004085/0.5979, allocations: 138.7 kB / 0.6166 GB, free: 36.88 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * 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.0001112/0.598, allocations: 121.7 kB / 0.6167 GB, free: 36.77 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0007767/0.5988, allocations: 489.3 kB / 0.6172 GB, free: 36.57 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.5988, allocations: 0 / 0.6172 GB, free: 36.57 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003467/0.5991, allocations: 219.2 kB / 0.6174 GB, free: 36.5 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006036/0.5997, allocations: 136 kB / 0.6175 GB, free: 36.46 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002376/0.6021, allocations: 1.631 MB / 0.6191 GB, free: 35.47 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002812/0.6024, allocations: 0.9015 MB / 0.62 GB, free: 34.77 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002489/0.6027, allocations: 67.22 kB / 0.62 GB, free: 34.75 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.998e-05/0.6028, allocations: 41.45 kB / 0.6201 GB, free: 34.74 MB / 0.4981 GB Notification: Performance of SimCode: time 3.4e-07/0.6028, allocations: 0 / 0.6201 GB, free: 34.74 MB / 0.4981 GB Notification: Performance of Templates: time 0.009152/0.612, allocations: 5.358 MB / 0.6253 GB, free: 34.4 MB / 0.4981 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.makefile Environment - environmentSimulation: (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.sim & ./BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) Environment - environmentSimulation: