Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID") translateModel(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.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.001049/0.00105, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001574/0.001574, allocations: 183.7 kB / 16.92 MB, free: 6.77 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.394/1.394, allocations: 223.3 MB / 241 MB, free: 5.242 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 1.001/1.001, allocations: 143.2 MB / 435.3 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003488/0.0003488, allocations: 8 kB / 0.517 GB, free: 11.19 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2319, allocations: 83.42 MB / 0.5985 GB, free: 7.723 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID): time 0.007085/0.2391, allocations: 3.297 MB / 0.6017 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004498/0.2436, allocations: 1.282 MB / 0.603 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009323/0.2446, allocations: 27.88 kB / 0.603 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000554/0.2452, allocations: 91.11 kB / 0.6031 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001191/0.2464, allocations: 144.1 kB / 0.6032 GB, free: 2.855 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002386/0.2488, allocations: 0.5333 MB / 0.6037 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001931/0.2508, allocations: 0.894 MB / 0.6046 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009843/0.2518, allocations: 325.6 kB / 0.6049 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000747/0.2525, allocations: 286.3 kB / 0.6052 GB, free: 0.8203 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006673/0.2532, allocations: 270.1 kB / 0.6055 GB, free: 0.5547 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001928/0.2534, allocations: 31.92 kB / 0.6055 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000144/0.2536, allocations: 24 kB / 0.6055 GB, free: 0.5 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001912/0.2538, allocations: 107.3 kB / 0.6056 GB, free: 404 kB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005233/0.2544, allocations: 331.4 kB / 0.6059 GB, free: 64 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.319/0.5734, allocations: 0.6458 MB / 0.6066 GB, free: 36.96 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.5734, allocations: 0 / 0.6066 GB, free: 36.96 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.747e-06/0.5734, allocations: 0 / 0.6066 GB, free: 36.96 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.564e-05/0.5735, allocations: 0 / 0.6066 GB, free: 36.96 MB / 0.4981 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.001688/0.5751, allocations: 1.053 MB / 0.6076 GB, free: 36.31 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.5752, allocations: 12.61 kB / 0.6076 GB, free: 36.31 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.5753, allocations: 95.03 kB / 0.6077 GB, free: 36.26 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007711/0.5761, allocations: 0.5967 MB / 0.6083 GB, free: 35.95 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/0.5762, allocations: 102.7 kB / 0.6084 GB, free: 35.89 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.126e-05/0.5763, allocations: 50.78 kB / 0.6084 GB, free: 35.89 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009479/0.5773, allocations: 0.6207 MB / 0.609 GB, free: 35.75 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.5773, allocations: 0 / 0.609 GB, free: 35.75 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.865e-05/0.5773, allocations: 22.72 kB / 0.609 GB, free: 35.75 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.952e-05/0.5774, allocations: 12.06 kB / 0.6091 GB, free: 35.75 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008712/0.5782, allocations: 447.3 kB / 0.6095 GB, free: 35.75 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002281/0.5805, allocations: 2.13 MB / 0.6116 GB, free: 34.72 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/0.5816, allocations: 0.5149 MB / 0.6121 GB, free: 34.69 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004105/0.5821, allocations: 230.1 kB / 0.6123 GB, free: 34.68 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.05e-05/0.5821, allocations: 10.08 kB / 0.6123 GB, free: 34.67 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006136/0.5827, allocations: 294.3 kB / 0.6126 GB, free: 34.62 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 2.555e-06/0.5828, allocations: 0 / 0.6126 GB, free: 34.62 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.001304/0.5841, allocations: 0.6362 MB / 0.6132 GB, free: 34.54 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.019e-05/0.5841, allocations: 87.08 kB / 0.6133 GB, free: 34.44 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005612/0.5847, allocations: 0.6171 MB / 0.6139 GB, free: 34.3 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.944e-05/0.5847, allocations: 36.55 kB / 0.6139 GB, free: 34.27 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002251/0.585, allocations: 353.2 kB / 0.6143 GB, free: 34.13 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.5851, allocations: 152.8 kB / 0.6144 GB, free: 34.04 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.293e-05/0.5851, allocations: 51.11 kB / 0.6144 GB, free: 34.02 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.057e-05/0.5852, allocations: 327.2 kB / 0.6148 GB, free: 33.71 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004575/0.5857, allocations: 188.6 kB / 0.6149 GB, free: 33.71 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004842/0.5862, allocations: 291.3 kB / 0.6152 GB, free: 33.61 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008096/0.587, allocations: 490.5 kB / 0.6157 GB, free: 33.48 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.587, allocations: 0 / 0.6157 GB, free: 33.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00102/0.588, allocations: 0.6271 MB / 0.6163 GB, free: 33.36 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.956e-05/0.5881, allocations: 187.5 kB / 0.6165 GB, free: 33.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.5881, allocations: 3.531 kB / 0.6165 GB, free: 33.16 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.5882, allocations: 10.48 kB / 0.6165 GB, free: 33.15 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004366/0.5886, allocations: 111.1 kB / 0.6166 GB, free: 33.15 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.5886, allocations: 5.688 kB / 0.6166 GB, free: 33.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003663/0.589, allocations: 71.78 kB / 0.6167 GB, free: 33.12 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.299e-05/0.589, allocations: 21.75 kB / 0.6167 GB, free: 33.12 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.061e-06/0.589, allocations: 4.062 kB / 0.6167 GB, free: 33.12 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009904/0.59, allocations: 0.5106 MB / 0.6172 GB, free: 33.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.59, allocations: 2.906 kB / 0.6172 GB, free: 33.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.18e-06/0.5901, allocations: 5.594 kB / 0.6172 GB, free: 33.07 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003905/0.5905, allocations: 105 kB / 0.6173 GB, free: 33.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.5905, allocations: 10 kB / 0.6173 GB, free: 33.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003232/0.5908, allocations: 61 kB / 0.6174 GB, free: 33.04 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.811e-05/0.5908, allocations: 20.22 kB / 0.6174 GB, free: 33.04 MB / 0.4981 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.0002526/0.5911, allocations: 273.4 kB / 0.6176 GB, free: 32.86 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.999e-05/0.5912, allocations: 80.47 kB / 0.6177 GB, free: 32.81 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001444/0.5913, allocations: 80.8 kB / 0.6178 GB, free: 32.8 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.5913, allocations: 10.05 kB / 0.6178 GB, free: 32.8 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.5914, allocations: 0 / 0.6178 GB, free: 32.8 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.5914, allocations: 4 kB / 0.6178 GB, free: 32.79 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005394/0.5919, allocations: 0.6162 MB / 0.6184 GB, free: 32.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.5919, allocations: 0 / 0.6184 GB, free: 32.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004216/0.5923, allocations: 91.81 kB / 0.6185 GB, free: 32.59 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.5924, allocations: 2.812 kB / 0.6185 GB, free: 32.59 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.972e-05/0.5924, allocations: 14.89 kB / 0.6185 GB, free: 32.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.5924, allocations: 0 / 0.6185 GB, free: 32.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.5924, allocations: 0 / 0.6185 GB, free: 32.59 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00133/0.5937, allocations: 0.7535 MB / 0.6193 GB, free: 32.46 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001738/0.5939, allocations: 196.4 kB / 0.6194 GB, free: 32.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.747e-05/0.594, allocations: 10.09 kB / 0.6195 GB, free: 32.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003955/0.5944, allocations: 50.78 kB / 0.6195 GB, free: 32.32 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.093e-05/0.5945, allocations: 27.2 kB / 0.6195 GB, free: 32.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.19e-05/0.5945, allocations: 19.09 kB / 0.6195 GB, free: 32.32 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003828/0.5949, allocations: 432.7 kB / 0.62 GB, free: 32.23 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5949, allocations: 4 kB / 0.62 GB, free: 32.23 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005292/0.5955, allocations: 215.5 kB / 0.6202 GB, free: 32.19 MB / 0.4981 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.0001207/0.5956, allocations: 113.8 kB / 0.6203 GB, free: 32.11 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001354/0.5969, allocations: 0.8126 MB / 0.6211 GB, free: 31.96 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.597, allocations: 0 / 0.6211 GB, free: 31.96 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000428/0.5974, allocations: 229.7 kB / 0.6213 GB, free: 31.95 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008856/0.5983, allocations: 197.5 kB / 0.6215 GB, free: 31.94 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001929/0.6002, allocations: 1.497 MB / 0.6229 GB, free: 31.11 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002833/0.6005, allocations: 0.9176 MB / 0.6238 GB, free: 30.4 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001696/0.6007, allocations: 48.94 kB / 0.6239 GB, free: 30.39 MB / 0.4981 GB Notification: Performance of SimCode: time 3.71e-07/0.6007, allocations: 0 / 0.6239 GB, free: 30.39 MB / 0.4981 GB Notification: Performance of Templates: time 0.01114/0.6119, allocations: 8.536 MB / 0.6322 GB, free: 29.76 MB / 0.4981 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.sim & ./BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe 2>&1)