Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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_1.6_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.00168/0.00168, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002008/0.002008, allocations: 192.9 kB / 16.13 MB, free: 6.656 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.497/1.497, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.957/2.957, allocations: 472.6 MB / 0.7447 GB, free: 5.008 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 60.11 kB / 0.9113 GB, free: 33.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3859/0.3871, allocations: 159.9 MB / 1.067 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005029/0.3922, allocations: 3.735 MB / 1.071 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002469/0.3947, allocations: 1.297 MB / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004078/0.3951, allocations: 27.81 kB / 1.072 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003502/0.3955, allocations: 95.09 kB / 1.073 GB, free: 5.793 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005175/0.3961, allocations: 147 kB / 1.073 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001192/0.3973, allocations: 0.526 MB / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0008744/0.3981, allocations: 0.8978 MB / 1.074 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00055/0.3987, allocations: 345.6 kB / 1.074 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004086/0.3991, allocations: 318.2 kB / 1.075 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00036/0.3995, allocations: 322.1 kB / 1.075 GB, free: 3.246 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.824e-05/0.3996, allocations: 44 kB / 1.075 GB, free: 3.203 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.695e-05/0.3997, allocations: 36 kB / 1.075 GB, free: 3.168 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001302/0.3998, allocations: 139.3 kB / 1.075 GB, free: 3.031 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003033/0.4001, allocations: 333.7 kB / 1.076 GB, free: 2.703 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007061/0.4009, allocations: 0.8176 MB / 1.076 GB, free: 1.883 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.4009, allocations: 0 / 1.076 GB, free: 1.883 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.31e-07/0.4009, allocations: 0 / 1.076 GB, free: 1.883 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.091e-05/0.4009, allocations: 0 / 1.076 GB, free: 1.883 MB / 0.8262 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.002176/0.4031, allocations: 1.191 MB / 1.077 GB, free: 0.6367 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.4031, allocations: 11.97 kB / 1.078 GB, free: 0.625 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001498/0.4033, allocations: 95.81 kB / 1.078 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009693/0.4043, allocations: 0.5831 MB / 1.078 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001063/0.4044, allocations: 101 kB / 1.078 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.039e-05/0.4045, allocations: 56.38 kB / 1.078 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/0.4056, allocations: 0.6003 MB / 1.079 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.4057, allocations: 3.938 kB / 1.079 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.918e-05/0.4057, allocations: 24 kB / 1.079 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.355e-05/0.4058, allocations: 12 kB / 1.079 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001005/0.4068, allocations: 427.6 kB / 1.079 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002824/0.4096, allocations: 2.11 MB / 1.081 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/0.4109, allocations: 0.4952 MB / 1.082 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004772/0.4114, allocations: 220.7 kB / 1.082 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.524e-05/0.4114, allocations: 7.984 kB / 1.082 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007488/0.4122, allocations: 282.2 kB / 1.082 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=45): time 2.685e-06/0.4122, allocations: 0 / 1.082 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of matching and sorting (n=45): time 0.001529/0.4137, allocations: 0.6138 MB / 1.083 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.623e-05/0.4138, allocations: 92.86 kB / 1.083 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000709/0.4145, allocations: 0.6138 MB / 1.084 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.479e-05/0.4146, allocations: 34.8 kB / 1.084 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002895/0.4149, allocations: 360.8 kB / 1.084 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.415, allocations: 153.7 kB / 1.084 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001549/0.4152, allocations: 98.16 kB / 1.084 GB, free: 9.426 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001137/0.4153, allocations: 326 kB / 1.085 GB, free: 9.102 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004826/0.4158, allocations: 183 kB / 1.085 GB, free: 8.918 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005186/0.4163, allocations: 280.2 kB / 1.085 GB, free: 8.613 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009548/0.4173, allocations: 481.9 kB / 1.085 GB, free: 8.102 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.4173, allocations: 3.938 kB / 1.085 GB, free: 8.098 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001246/0.4185, allocations: 0.5984 MB / 1.086 GB, free: 7.484 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.104e-05/0.4186, allocations: 33.7 kB / 1.086 GB, free: 7.445 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.4186, allocations: 4 kB / 1.086 GB, free: 7.441 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.4186, allocations: 4 kB / 1.086 GB, free: 7.438 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000491/0.4191, allocations: 107.8 kB / 1.086 GB, free: 7.332 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.4191, allocations: 7.984 kB / 1.086 GB, free: 7.324 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003962/0.4195, allocations: 59.52 kB / 1.086 GB, free: 7.266 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.733e-05/0.4196, allocations: 20.08 kB / 1.086 GB, free: 7.246 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005666/0.4202, allocations: 313.2 kB / 1.087 GB, free: 6.934 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004556/0.4206, allocations: 264.3 kB / 1.087 GB, free: 6.641 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008503/0.4215, allocations: 453.9 kB / 1.087 GB, free: 6.156 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.254e-06/0.4215, allocations: 0 / 1.087 GB, free: 6.156 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001122/0.4226, allocations: 0.5787 MB / 1.088 GB, free: 5.562 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/0.4227, allocations: 35.25 kB / 1.088 GB, free: 5.523 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.4227, allocations: 4.312 kB / 1.088 GB, free: 5.52 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.715e-06/0.4227, allocations: 8 kB / 1.088 GB, free: 5.512 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000456/0.4232, allocations: 103.8 kB / 1.088 GB, free: 5.41 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.4232, allocations: 7.938 kB / 1.088 GB, free: 5.402 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003787/0.4236, allocations: 51.56 kB / 1.088 GB, free: 5.352 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.461e-05/0.4236, allocations: 20 kB / 1.088 GB, free: 5.332 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.0001998/0.4238, allocations: 212.6 kB / 1.088 GB, free: 5.117 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.472e-05/0.4239, allocations: 75.09 kB / 1.088 GB, free: 5.043 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001694/0.4241, allocations: 83.2 kB / 1.088 GB, free: 4.957 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.4241, allocations: 8 kB / 1.088 GB, free: 4.949 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.4241, allocations: 0 / 1.088 GB, free: 4.949 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.4241, allocations: 3.984 kB / 1.088 GB, free: 4.945 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007215/0.4249, allocations: 0.6218 MB / 1.089 GB, free: 4.273 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.4249, allocations: 0 / 1.089 GB, free: 4.273 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004735/0.4254, allocations: 75.89 kB / 1.089 GB, free: 4.199 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.304e-06/0.4254, allocations: 4 kB / 1.089 GB, free: 4.195 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.648e-05/0.4254, allocations: 19.98 kB / 1.089 GB, free: 4.176 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.4254, allocations: 3.938 kB / 1.089 GB, free: 4.172 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4254, allocations: 0 / 1.089 GB, free: 4.172 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001506/0.4269, allocations: 0.7289 MB / 1.09 GB, free: 3.426 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002234/0.4272, allocations: 196 kB / 1.09 GB, free: 3.215 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.571e-05/0.4273, allocations: 8 kB / 1.09 GB, free: 3.207 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004105/0.4277, allocations: 35.95 kB / 1.09 GB, free: 3.172 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.689e-05/0.4278, allocations: 31.95 kB / 1.09 GB, free: 3.141 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.263e-05/0.4278, allocations: 12 kB / 1.09 GB, free: 3.129 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004831/0.4283, allocations: 435 kB / 1.091 GB, free: 2.711 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.523e-06/0.4283, allocations: 0 / 1.091 GB, free: 2.711 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005989/0.4289, allocations: 219.3 kB / 1.091 GB, free: 2.496 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.000151/0.4291, allocations: 111.2 kB / 1.091 GB, free: 2.379 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001563/0.4307, allocations: 0.7818 MB / 1.092 GB, free: 1.574 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.4307, allocations: 0 / 1.092 GB, free: 1.574 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004758/0.4312, allocations: 227.8 kB / 1.092 GB, free: 1.352 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009204/0.4321, allocations: 190.3 kB / 1.092 GB, free: 1.168 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/0.4343, allocations: 1.451 MB / 1.093 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004551/0.4348, allocations: 0.9182 MB / 1.094 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0004076/0.4352, allocations: 93.23 kB / 1.094 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.4353, allocations: 51.44 kB / 1.094 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of SimCode: time 5.61e-07/0.4353, allocations: 0 / 1.094 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of Templates: time 0.01349/0.4488, allocations: 7.181 MB / 1.101 GB, free: 7.5 MB / 0.8575 GB make -j1 -f Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1)