Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer") translateModel(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.0008787/0.0008789, allocations: 97.41 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.007942/0.007943, allocations: 170.7 kB / 16.27 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.497/1.497, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.971/2.971, allocations: 473.4 MB / 0.7469 GB, free: 6.102 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004593/0.0004594, allocations: 7 kB / 0.9158 GB, free: 33.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4138/0.4143, allocations: 162.2 MB / 1.074 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.003954/0.4183, allocations: 2.81 MB / 1.077 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001946/0.4203, allocations: 0.9349 MB / 1.078 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000293/0.4206, allocations: 11.94 kB / 1.078 GB, free: 3.781 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002331/0.4208, allocations: 55.5 kB / 1.078 GB, free: 3.727 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001996/0.421, allocations: 75.42 kB / 1.078 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005625/0.4216, allocations: 211.7 kB / 1.078 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004997/0.4221, allocations: 0.5074 MB / 1.079 GB, free: 2.938 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004166/0.4225, allocations: 235.4 kB / 1.079 GB, free: 2.699 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00022/0.4228, allocations: 151 kB / 1.079 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002048/0.423, allocations: 151 kB / 1.079 GB, free: 2.402 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.052e-05/0.423, allocations: 12 kB / 1.079 GB, free: 2.391 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.75e-05/0.4231, allocations: 16 kB / 1.079 GB, free: 2.375 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.299e-05/0.4232, allocations: 67.56 kB / 1.079 GB, free: 2.309 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001841/0.4233, allocations: 208.4 kB / 1.079 GB, free: 2.098 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004774/0.4238, allocations: 0.5217 MB / 1.08 GB, free: 1.574 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.4238, allocations: 0 / 1.08 GB, free: 1.574 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.783e-06/0.4238, allocations: 3.938 kB / 1.08 GB, free: 1.57 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.602e-06/0.4239, allocations: 0 / 1.08 GB, free: 1.57 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.001156/0.425, allocations: 0.6844 MB / 1.081 GB, free: 0.8359 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.4251, allocations: 8.031 kB / 1.081 GB, free: 0.8281 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.4252, allocations: 56.28 kB / 1.081 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005648/0.4257, allocations: 412.6 kB / 1.081 GB, free: 340 kB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.635e-05/0.4258, allocations: 33.38 kB / 1.081 GB, free: 304 kB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.529e-05/0.4259, allocations: 36.38 kB / 1.081 GB, free: 268 kB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007044/0.4266, allocations: 409.9 kB / 1.082 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.4266, allocations: 3.984 kB / 1.082 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.224e-05/0.4267, allocations: 16 kB / 1.082 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.571e-05/0.4267, allocations: 8 kB / 1.082 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005567/0.4273, allocations: 267.8 kB / 1.082 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001766/0.429, allocations: 1.328 MB / 1.083 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006995/0.4297, allocations: 314.6 kB / 1.083 GB, free: 13.83 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002667/0.43, allocations: 140.8 kB / 1.084 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.039e-05/0.4301, allocations: 4 kB / 1.084 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003685/0.4304, allocations: 177.4 kB / 1.084 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=33): time 2.184e-06/0.4304, allocations: 4 kB / 1.084 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33): time 0.0008001/0.4313, allocations: 382.7 kB / 1.084 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.262e-05/0.4313, allocations: 85.11 kB / 1.084 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003792/0.4317, allocations: 353.6 kB / 1.084 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.555e-05/0.4318, allocations: 33.7 kB / 1.085 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001694/0.4319, allocations: 233 kB / 1.085 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.428e-05/0.432, allocations: 106.5 kB / 1.085 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.734e-05/0.4321, allocations: 41.7 kB / 1.085 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.4322, allocations: 350.7 kB / 1.085 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002208/0.4325, allocations: 104.7 kB / 1.085 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002658/0.4327, allocations: 168.6 kB / 1.085 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004529/0.4332, allocations: 259.9 kB / 1.086 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.4332, allocations: 0 / 1.086 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006197/0.4338, allocations: 366.3 kB / 1.086 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.4339, allocations: 5.562 kB / 1.086 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.4339, allocations: 3.984 kB / 1.086 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.4339, allocations: 4 kB / 1.086 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002557/0.4342, allocations: 67.91 kB / 1.086 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.4342, allocations: 4 kB / 1.086 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002022/0.4344, allocations: 43.86 kB / 1.086 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.348e-05/0.4344, allocations: 16 kB / 1.086 GB, free: 10.81 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.0002012/0.4346, allocations: 181.9 kB / 1.086 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.278e-05/0.4347, allocations: 43.45 kB / 1.086 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.75e-05/0.4348, allocations: 48.25 kB / 1.086 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.4348, allocations: 7.938 kB / 1.086 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.4348, allocations: 4 kB / 1.086 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.4348, allocations: 4 kB / 1.086 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001115/0.436, allocations: 0.8114 MB / 1.087 GB, free: 9.652 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.436, allocations: 0 / 1.087 GB, free: 9.652 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002327/0.4362, allocations: 47.97 kB / 1.087 GB, free: 9.605 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.4362, allocations: 4 kB / 1.087 GB, free: 9.602 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.07e-05/0.4362, allocations: 8 kB / 1.087 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.4363, allocations: 3.984 kB / 1.087 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4363, allocations: 0 / 1.087 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008387/0.4371, allocations: 0.5222 MB / 1.088 GB, free: 9.051 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/0.4373, allocations: 136.6 kB / 1.088 GB, free: 8.898 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.654e-05/0.4373, allocations: 11.98 kB / 1.088 GB, free: 8.887 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001906/0.4375, allocations: 19.98 kB / 1.088 GB, free: 8.867 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.803e-05/0.4376, allocations: 23.97 kB / 1.088 GB, free: 8.844 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.4376, allocations: 8 kB / 1.088 GB, free: 8.836 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002457/0.4379, allocations: 243.2 kB / 1.088 GB, free: 8.598 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4379, allocations: 4.062 kB / 1.088 GB, free: 8.594 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003436/0.4382, allocations: 87.62 kB / 1.088 GB, free: 8.508 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.0001484/0.4384, allocations: 119.7 kB / 1.088 GB, free: 8.383 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005471/0.4389, allocations: 264.1 kB / 1.089 GB, free: 8.125 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4389, allocations: 4 kB / 1.089 GB, free: 8.121 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002505/0.4392, allocations: 132.4 kB / 1.089 GB, free: 7.992 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005573/0.4398, allocations: 77.5 kB / 1.089 GB, free: 7.918 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001578/0.4413, allocations: 1.016 MB / 1.09 GB, free: 6.875 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000376/0.4417, allocations: 0.8113 MB / 1.091 GB, free: 6.035 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001715/0.4419, allocations: 47.25 kB / 1.091 GB, free: 5.988 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.302e-05/0.442, allocations: 31.42 kB / 1.091 GB, free: 5.957 MB / 0.8419 GB Notification: Performance of SimCode: time 5.81e-07/0.442, allocations: 0 / 1.091 GB, free: 5.957 MB / 0.8419 GB Notification: Performance of Templates: time 0.007716/0.4497, allocations: 3.367 MB / 1.094 GB, free: 2.621 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.makefile (rm -f Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.sim & ./Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)