Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.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.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer") translateModel(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008517/0.0008522, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.007199/0.007199, allocations: 168.5 kB / 16.26 MB, free: 6.652 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.53/1.53, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.062/3.062, allocations: 473.4 MB / 0.7469 GB, free: 6.055 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004395/0.0004395, allocations: 11.81 kB / 0.9158 GB, free: 33.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3997/0.4002, allocations: 162.2 MB / 1.074 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.003915/0.4041, allocations: 2.814 MB / 1.077 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00208/0.4063, allocations: 0.9271 MB / 1.078 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005557/0.4068, allocations: 11.94 kB / 1.078 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003187/0.4072, allocations: 55.5 kB / 1.078 GB, free: 3.707 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004286/0.4076, allocations: 83.41 kB / 1.078 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007296/0.4084, allocations: 215.2 kB / 1.078 GB, free: 3.418 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007597/0.4091, allocations: 0.5074 MB / 1.079 GB, free: 2.91 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004914/0.4096, allocations: 239.4 kB / 1.079 GB, free: 2.668 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000336/0.41, allocations: 147 kB / 1.079 GB, free: 2.523 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003251/0.4103, allocations: 147 kB / 1.079 GB, free: 2.379 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.634e-05/0.4104, allocations: 16 kB / 1.079 GB, free: 2.363 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.377e-05/0.4105, allocations: 12 kB / 1.079 GB, free: 2.352 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.188e-05/0.4106, allocations: 71.55 kB / 1.079 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002427/0.4108, allocations: 208.5 kB / 1.079 GB, free: 2.07 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005541/0.4114, allocations: 0.5216 MB / 1.08 GB, free: 1.547 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.4114, allocations: 4 kB / 1.08 GB, free: 1.543 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.575e-06/0.4114, allocations: 0 / 1.08 GB, free: 1.543 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.475e-05/0.4114, allocations: 0 / 1.08 GB, free: 1.543 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001235/0.4127, allocations: 0.6844 MB / 1.081 GB, free: 0.8086 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.4127, allocations: 12.03 kB / 1.081 GB, free: 0.7969 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.4128, allocations: 52.28 kB / 1.081 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006091/0.4134, allocations: 412.6 kB / 1.081 GB, free: 312 kB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.707e-05/0.4135, allocations: 33.31 kB / 1.081 GB, free: 276 kB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.193e-05/0.4136, allocations: 40.38 kB / 1.081 GB, free: 236 kB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006972/0.4143, allocations: 401.9 kB / 1.082 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.4143, allocations: 4 kB / 1.082 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.254e-05/0.4143, allocations: 12 kB / 1.082 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.4144, allocations: 12 kB / 1.082 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005468/0.4149, allocations: 271.8 kB / 1.082 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001812/0.4167, allocations: 1.32 MB / 1.083 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006966/0.4175, allocations: 314.6 kB / 1.083 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002637/0.4177, allocations: 149.8 kB / 1.084 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.55e-05/0.4178, allocations: 4 kB / 1.084 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004008/0.4182, allocations: 181.4 kB / 1.084 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=33): time 2.695e-06/0.4182, allocations: 0 / 1.084 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33): time 0.000826/0.419, allocations: 386.7 kB / 1.084 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.756e-05/0.4191, allocations: 89.66 kB / 1.084 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003772/0.4195, allocations: 349.6 kB / 1.084 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.68e-05/0.4195, allocations: 33.7 kB / 1.085 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/0.4197, allocations: 232.4 kB / 1.085 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.984e-05/0.4198, allocations: 102.5 kB / 1.085 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.078e-05/0.4199, allocations: 49.69 kB / 1.085 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001355/0.42, allocations: 346.8 kB / 1.085 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002169/0.4202, allocations: 104.7 kB / 1.085 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002619/0.4205, allocations: 168.6 kB / 1.085 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004599/0.421, allocations: 263.8 kB / 1.086 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.421, allocations: 0 / 1.086 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006119/0.4216, allocations: 366.3 kB / 1.086 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.4216, allocations: 4 kB / 1.086 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.4217, allocations: 4 kB / 1.086 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.4217, allocations: 4 kB / 1.086 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002497/0.4219, allocations: 64.09 kB / 1.086 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.422, allocations: 8 kB / 1.086 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000206/0.4222, allocations: 43.67 kB / 1.086 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.3e-05/0.4222, allocations: 15.94 kB / 1.086 GB, free: 10.78 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 (con.greaterEqualThreshold.y,con.hys.y,$PRE.con.hys.y,con.on,con.offTimer.entryTime,$PRE.con.offTimer.entryTime,con.onTimer.entryTime,$PRE.con.onTimer.entryTime,con.offHys.entryTime,$PRE.con.offHys.entryTime,$whenCondition1,$whenCondition2,$whenCondition3,con.con.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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.0002065/0.4224, allocations: 178 kB / 1.086 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.094e-05/0.4225, allocations: 39.53 kB / 1.086 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.45e-05/0.4226, allocations: 48.25 kB / 1.086 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.4226, allocations: 4 kB / 1.086 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.4226, allocations: 3.938 kB / 1.086 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.343e-06/0.4226, allocations: 3.984 kB / 1.086 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.4237, allocations: 0.8037 MB / 1.087 GB, free: 9.637 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.4237, allocations: 4 kB / 1.087 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000245/0.424, allocations: 51.91 kB / 1.087 GB, free: 9.582 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.424, allocations: 4 kB / 1.087 GB, free: 9.578 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.405e-05/0.424, allocations: 4 kB / 1.087 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.424, allocations: 4 kB / 1.087 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.424, allocations: 0 / 1.087 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008286/0.4249, allocations: 0.5183 MB / 1.088 GB, free: 9.035 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001419/0.425, allocations: 144.6 kB / 1.088 GB, free: 8.875 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.37e-05/0.4251, allocations: 4 kB / 1.088 GB, free: 8.871 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001855/0.4253, allocations: 19.98 kB / 1.088 GB, free: 8.852 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.484e-05/0.4254, allocations: 28.03 kB / 1.088 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.4254, allocations: 11.98 kB / 1.088 GB, free: 8.812 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002494/0.4256, allocations: 243.2 kB / 1.088 GB, free: 8.574 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.71e-07/0.4256, allocations: 0 / 1.088 GB, free: 8.574 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003512/0.426, allocations: 91.62 kB / 1.088 GB, free: 8.484 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y,con.greaterEqualThreshold.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001534/0.4262, allocations: 115.7 kB / 1.088 GB, free: 8.363 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005388/0.4267, allocations: 263.7 kB / 1.089 GB, free: 8.105 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4267, allocations: 0 / 1.089 GB, free: 8.105 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002436/0.427, allocations: 140.4 kB / 1.089 GB, free: 7.969 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005497/0.4275, allocations: 84.53 kB / 1.089 GB, free: 7.895 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/0.4291, allocations: 1.013 MB / 1.09 GB, free: 6.852 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003522/0.4294, allocations: 0.8152 MB / 1.091 GB, free: 6.008 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001763/0.4296, allocations: 39.27 kB / 1.091 GB, free: 5.969 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.881e-05/0.4297, allocations: 39.38 kB / 1.091 GB, free: 5.93 MB / 0.8419 GB Notification: Performance of SimCode: time 3.11e-07/0.4297, allocations: 4 kB / 1.091 GB, free: 5.926 MB / 0.8419 GB Notification: Performance of Templates: time 0.007556/0.4373, allocations: 3.357 MB / 1.094 GB, free: 2.598 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.makefile (rm -f Buildings_3.0.0_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_3.0.0_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_3.0.0_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.sim & ./Buildings_3.0.0_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)