Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.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.001333/0.001333, allocations: 100.9 kB / 15.05 MB, free: 1.105 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.001419/0.001419, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.337/1.337, allocations: 205.4 MB / 222.1 MB, free: 5.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.5761/0.5761, allocations: 95.58 MB / 366 MB, free: 10.41 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005247/0.0005247, allocations: 20 kB / 446.8 MB, free: 9.426 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2847, allocations: 70.33 MB / 0.505 GB, free: 16.54 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.002539/0.2873, allocations: 2.613 MB / 0.5075 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.2887, allocations: 0.9633 MB / 0.5085 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002558/0.289, allocations: 11.94 kB / 0.5085 GB, free: 12.92 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.301e-05/0.2891, allocations: 35.58 kB / 0.5085 GB, free: 12.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003643/0.2894, allocations: 111.6 kB / 0.5086 GB, free: 12.78 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003335/0.2898, allocations: 171.5 kB / 0.5088 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003441/0.2901, allocations: 336.5 kB / 0.5091 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002581/0.2904, allocations: 187.4 kB / 0.5093 GB, free: 12.1 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001433/0.2905, allocations: 139.2 kB / 0.5094 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/0.2907, allocations: 159 kB / 0.5096 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.162e-05/0.2907, allocations: 12 kB / 0.5096 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.447e-05/0.2908, allocations: 12 kB / 0.5096 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.507e-05/0.2908, allocations: 67.67 kB / 0.5097 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.875e-05/0.2909, allocations: 113.4 kB / 0.5098 GB, free: 11.6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002504/0.2911, allocations: 432.9 kB / 0.5102 GB, free: 11.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.2912, allocations: 0 / 0.5102 GB, free: 11.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2912, allocations: 0 / 0.5102 GB, free: 11.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.2912, allocations: 0 / 0.5102 GB, free: 11.18 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.0008426/0.292, allocations: 0.6953 MB / 0.5109 GB, free: 10.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.2921, allocations: 15.98 kB / 0.5109 GB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.046e-05/0.2922, allocations: 59.25 kB / 0.5109 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003709/0.2925, allocations: 385 kB / 0.5113 GB, free: 9.945 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.945e-05/0.2926, allocations: 36.94 kB / 0.5113 GB, free: 9.906 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.74e-05/0.2926, allocations: 40 kB / 0.5114 GB, free: 9.867 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005473/0.2932, allocations: 416.7 kB / 0.5118 GB, free: 9.438 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.2932, allocations: 0 / 0.5118 GB, free: 9.438 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.471e-05/0.2932, allocations: 16 kB / 0.5118 GB, free: 9.422 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.2933, allocations: 12 kB / 0.5118 GB, free: 9.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004893/0.2938, allocations: 307.8 kB / 0.5121 GB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001496/0.2953, allocations: 1.328 MB / 0.5134 GB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005886/0.2959, allocations: 351.2 kB / 0.5137 GB, free: 7.359 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.857e-05/0.2959, allocations: 4 kB / 0.5137 GB, free: 7.355 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003496/0.2963, allocations: 189.5 kB / 0.5139 GB, free: 7.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 2.936e-06/0.2963, allocations: 3.984 kB / 0.5139 GB, free: 7.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.0007363/0.297, allocations: 430.6 kB / 0.5143 GB, free: 6.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/0.2971, allocations: 122.7 kB / 0.5144 GB, free: 6.586 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002981/0.2974, allocations: 377.5 kB / 0.5148 GB, free: 6.207 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.729e-05/0.2974, allocations: 29.7 kB / 0.5148 GB, free: 6.172 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.2975, allocations: 252.4 kB / 0.5151 GB, free: 5.918 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.775e-05/0.2976, allocations: 98.56 kB / 0.5152 GB, free: 5.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.545e-05/0.2976, allocations: 4 kB / 0.5152 GB, free: 5.816 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.089e-05/0.2977, allocations: 354.8 kB / 0.5155 GB, free: 5.461 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001975/0.2979, allocations: 115.9 kB / 0.5156 GB, free: 5.348 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002334/0.2981, allocations: 173.9 kB / 0.5158 GB, free: 5.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002064/0.2984, allocations: 130.3 kB / 0.5159 GB, free: 5.035 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.2984, allocations: 0 / 0.5159 GB, free: 5.035 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004924/0.2989, allocations: 370.5 kB / 0.5163 GB, free: 4.668 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.341e-05/0.2989, allocations: 358.1 kB / 0.5166 GB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.299, allocations: 4 kB / 0.5166 GB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.299, allocations: 7.953 kB / 0.5166 GB, free: 4.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000253/0.2992, allocations: 67.91 kB / 0.5167 GB, free: 4.215 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.2992, allocations: 0 / 0.5167 GB, free: 4.215 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001965/0.2994, allocations: 55.66 kB / 0.5167 GB, free: 4.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.2995, allocations: 12 kB / 0.5167 GB, free: 4.148 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.512e-06/0.2995, allocations: 8 kB / 0.5168 GB, free: 4.141 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003651/0.2999, allocations: 268 kB / 0.517 GB, free: 3.879 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.185e-06/0.2999, allocations: 0 / 0.517 GB, free: 3.879 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.976e-06/0.2999, allocations: 4 kB / 0.517 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002115/0.3001, allocations: 55.91 kB / 0.5171 GB, free: 3.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.977e-06/0.3001, allocations: 4 kB / 0.5171 GB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001693/0.3003, allocations: 47.77 kB / 0.5171 GB, free: 3.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/0.3003, allocations: 8 kB / 0.5171 GB, free: 3.762 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,$PRE.con.offHys.entryTime,con.offHys.entryTime,$PRE.con.onTimer.entryTime,con.onTimer.entryTime,$PRE.con.offTimer.entryTime,con.offTimer.entryTime,con.on,$PRE.con.hys.y,con.hys.y,con.con.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001658/0.3005, allocations: 256.9 kB / 0.5174 GB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.478e-05/0.3005, allocations: 43.52 kB / 0.5174 GB, free: 3.457 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.144e-05/0.3006, allocations: 44.3 kB / 0.5175 GB, free: 3.414 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.3006, allocations: 4 kB / 0.5175 GB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3006, allocations: 4 kB / 0.5175 GB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.3006, allocations: 0 / 0.5175 GB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009497/0.3016, allocations: 0.8844 MB / 0.5183 GB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.3016, allocations: 0 / 0.5183 GB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002328/0.3018, allocations: 55.91 kB / 0.5184 GB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.3019, allocations: 0 / 0.5184 GB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.3019, allocations: 11.94 kB / 0.5184 GB, free: 2.398 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.3019, allocations: 0 / 0.5184 GB, free: 2.398 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3019, allocations: 0 / 0.5184 GB, free: 2.398 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007046/0.3026, allocations: 0.5734 MB / 0.5189 GB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001021/0.3027, allocations: 148.5 kB / 0.5191 GB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.588e-05/0.3028, allocations: 12.06 kB / 0.5191 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002018/0.303, allocations: 27.92 kB / 0.5191 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.163e-05/0.3031, allocations: 27.95 kB / 0.5192 GB, free: 1.578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.3031, allocations: 11.94 kB / 0.5192 GB, free: 1.566 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001911/0.3033, allocations: 263.2 kB / 0.5194 GB, free: 1.309 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3033, allocations: 0 / 0.5194 GB, free: 1.309 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004255/0.3037, allocations: 159.4 kB / 0.5196 GB, free: 1.152 MB / 382.1 MB 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.greaterEqualThreshold.y,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.423e-05/0.3038, allocations: 103.9 kB / 0.5197 GB, free: 1.043 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006662/0.3045, allocations: 455.9 kB / 0.5201 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3045, allocations: 0 / 0.5201 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002201/0.3047, allocations: 147.9 kB / 0.5202 GB, free: 464 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000422/0.3052, allocations: 91.23 kB / 0.5203 GB, free: 376 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001347/0.3065, allocations: 0.9761 MB / 0.5213 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.3069, allocations: 0.8315 MB / 0.5221 GB, free: 14.5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001795/0.3071, allocations: 43.27 kB / 0.5221 GB, free: 14.45 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.703e-05/0.3072, allocations: 31.42 kB / 0.5222 GB, free: 14.42 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3072, allocations: 0 / 0.5222 GB, free: 14.42 MB / 398.1 MB Notification: Performance of Templates: time 0.007308/0.3145, allocations: 3.716 MB / 0.5258 GB, free: 10.73 MB / 398.1 MB make -j1 -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.makefile Environment - environmentSimulation: (rm -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.sim & ./Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1) Environment - environmentSimulation: