Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.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/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.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.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.001622/0.001622, 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.0019/0.0019, allocations: 193.9 kB / 16.14 MB, free: 6.664 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.508/1.508, allocations: 222.9 MB / 239.8 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.021/3.021, allocations: 472.6 MB / 0.7447 GB, free: 4.965 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001928, allocations: 65.84 kB / 0.9113 GB, free: 33.72 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3779/0.3799, allocations: 159.9 MB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005498/0.3854, allocations: 4.148 MB / 1.072 GB, free: 6.812 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002765/0.3882, allocations: 1.293 MB / 1.073 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004361/0.3887, allocations: 23.88 kB / 1.073 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003435/0.3891, allocations: 91.22 kB / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003378/0.3894, allocations: 150.8 kB / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008262/0.3903, allocations: 383.3 kB / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007674/0.3911, allocations: 0.8773 MB / 1.074 GB, free: 4 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005815/0.3916, allocations: 426.1 kB / 1.075 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003158/0.392, allocations: 278.6 kB / 1.075 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002972/0.3923, allocations: 302.4 kB / 1.075 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.664e-05/0.3924, allocations: 40 kB / 1.075 GB, free: 2.953 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.822e-05/0.3925, allocations: 48 kB / 1.075 GB, free: 2.906 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001153/0.3926, allocations: 127.4 kB / 1.075 GB, free: 2.781 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002759/0.3929, allocations: 338.1 kB / 1.076 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007725/0.3936, allocations: 1.005 MB / 1.077 GB, free: 1.441 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3937, allocations: 0 / 1.077 GB, free: 1.441 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.012e-06/0.3937, allocations: 0 / 1.077 GB, free: 1.441 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.083e-05/0.3937, allocations: 0 / 1.077 GB, free: 1.441 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001859/0.3955, allocations: 1.077 MB / 1.078 GB, free: 312 kB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/0.3956, allocations: 16.02 kB / 1.078 GB, free: 296 kB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000148/0.3958, allocations: 80 kB / 1.078 GB, free: 216 kB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000825/0.3966, allocations: 0.5417 MB / 1.078 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.978e-05/0.3966, allocations: 45.69 kB / 1.078 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.949e-05/0.3967, allocations: 56.38 kB / 1.079 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.3978, allocations: 0.6117 MB / 1.079 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.033e-05/0.3978, allocations: 0 / 1.079 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.615e-05/0.3979, allocations: 28 kB / 1.079 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/0.3979, allocations: 12 kB / 1.079 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009515/0.3989, allocations: 457 kB / 1.08 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002799/0.4017, allocations: 2.024 MB / 1.082 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009166/0.4026, allocations: 445 kB / 1.082 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000437/0.4031, allocations: 238.1 kB / 1.082 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.148e-05/0.4031, allocations: 4.438 kB / 1.082 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006481/0.4038, allocations: 269.2 kB / 1.082 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=49): time 2.635e-06/0.4038, allocations: 3.938 kB / 1.082 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of matching and sorting (n=49): time 0.001299/0.4051, allocations: 0.5811 MB / 1.083 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.4052, allocations: 59.83 kB / 1.083 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004724/0.4056, allocations: 449.9 kB / 1.084 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.539e-05/0.4057, allocations: 33.7 kB / 1.084 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002228/0.4059, allocations: 328.2 kB / 1.084 GB, free: 9.883 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/0.406, allocations: 165.6 kB / 1.084 GB, free: 9.719 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001468/0.4062, allocations: 94.25 kB / 1.084 GB, free: 9.621 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001366/0.4063, allocations: 370.8 kB / 1.084 GB, free: 9.25 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003843/0.4067, allocations: 161 kB / 1.085 GB, free: 9.09 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004212/0.4072, allocations: 249.8 kB / 1.085 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008039/0.408, allocations: 452 kB / 1.085 GB, free: 8.348 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.408, allocations: 4 kB / 1.085 GB, free: 8.344 MB / 0.8419 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001028/0.409, allocations: 0.5585 MB / 1.086 GB, free: 7.77 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/0.4091, allocations: 37.64 kB / 1.086 GB, free: 7.727 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.4091, allocations: 4 kB / 1.086 GB, free: 7.723 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.4091, allocations: 4.25 kB / 1.086 GB, free: 7.719 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004979/0.4096, allocations: 115.8 kB / 1.086 GB, free: 7.605 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.4096, allocations: 4 kB / 1.086 GB, free: 7.602 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003598/0.41, allocations: 67.41 kB / 1.086 GB, free: 7.535 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.909e-05/0.41, allocations: 23.94 kB / 1.086 GB, free: 7.512 MB / 0.8419 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 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000275/0.4103, allocations: 214.8 kB / 1.086 GB, free: 7.293 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.054e-05/0.4104, allocations: 55.28 kB / 1.086 GB, free: 7.238 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001311/0.4105, allocations: 65.59 kB / 1.086 GB, free: 7.172 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.4106, allocations: 4 kB / 1.086 GB, free: 7.168 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.824e-06/0.4106, allocations: 0 / 1.086 GB, free: 7.168 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.4106, allocations: 3.984 kB / 1.086 GB, free: 7.164 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001713/0.4123, allocations: 1.181 MB / 1.088 GB, free: 5.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.4123, allocations: 0 / 1.088 GB, free: 5.93 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004635/0.4128, allocations: 95.88 kB / 1.088 GB, free: 5.836 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.251e-06/0.4128, allocations: 4 kB / 1.088 GB, free: 5.832 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.151e-05/0.4128, allocations: 8 kB / 1.088 GB, free: 5.824 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.4128, allocations: 0 / 1.088 GB, free: 5.824 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.4128, allocations: 3.984 kB / 1.088 GB, free: 5.82 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001333/0.4142, allocations: 0.764 MB / 1.088 GB, free: 5.039 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001794/0.4144, allocations: 172.2 kB / 1.089 GB, free: 4.852 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.807e-05/0.4145, allocations: 16.11 kB / 1.089 GB, free: 4.836 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003069/0.4148, allocations: 31.92 kB / 1.089 GB, free: 4.805 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.4149, allocations: 40.38 kB / 1.089 GB, free: 4.766 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.769e-05/0.4149, allocations: 12 kB / 1.089 GB, free: 4.754 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003471/0.4153, allocations: 306.9 kB / 1.089 GB, free: 4.457 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4153, allocations: 0 / 1.089 GB, free: 4.457 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005038/0.4158, allocations: 143.5 kB / 1.089 GB, free: 4.316 MB / 0.8419 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 (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.0001567/0.4159, allocations: 111.7 kB / 1.089 GB, free: 4.195 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009713/0.4169, allocations: 485 kB / 1.09 GB, free: 3.711 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.4169, allocations: 0 / 1.09 GB, free: 3.711 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004248/0.4174, allocations: 214.4 kB / 1.09 GB, free: 3.496 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008147/0.4182, allocations: 147.5 kB / 1.09 GB, free: 3.355 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002812/0.421, allocations: 1.616 MB / 1.092 GB, free: 1.711 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004408/0.4215, allocations: 0.8863 MB / 1.092 GB, free: 0.8008 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002901/0.4218, allocations: 60.59 kB / 1.093 GB, free: 0.7383 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.4219, allocations: 39.44 kB / 1.093 GB, free: 0.6992 MB / 0.8419 GB Notification: Performance of SimCode: time 2.304e-06/0.4219, allocations: 0 / 1.093 GB, free: 0.6992 MB / 0.8419 GB Notification: Performance of Templates: time 0.01173/0.4336, allocations: 5.58 MB / 1.098 GB, free: 11.19 MB / 0.8575 GB make -j1 -f Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)