Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.Sources.Examples.DayType.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.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Sources.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000972/0.0009723, allocations: 97.64 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.008158/0.008158, allocations: 170.1 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.683/1.683, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.634/3.634, allocations: 473.4 MB / 0.7469 GB, free: 6.027 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004129/0.0004129, allocations: 7.812 kB / 0.9158 GB, free: 33.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5055/0.5059, allocations: 162.2 MB / 1.074 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.00263/0.5087, allocations: 1.148 MB / 1.075 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008508/0.5096, allocations: 263.3 kB / 1.076 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.76e-05/0.5096, allocations: 0 / 1.076 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000208/0.5099, allocations: 11.88 kB / 1.076 GB, free: 6.125 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.672e-05/0.5099, allocations: 15.92 kB / 1.076 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004761/0.5104, allocations: 83.86 kB / 1.076 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000459/0.5109, allocations: 220 kB / 1.076 GB, free: 5.812 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.264e-05/0.511, allocations: 9.109 kB / 1.076 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001136/0.5111, allocations: 75.83 kB / 1.076 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002112/0.5113, allocations: 99.67 kB / 1.076 GB, free: 5.633 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.24e-05/0.5114, allocations: 12 kB / 1.076 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.675e-05/0.5114, allocations: 12 kB / 1.076 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001466/0.5116, allocations: 75.73 kB / 1.076 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002639/0.5119, allocations: 129.1 kB / 1.076 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005082/0.5124, allocations: 239.2 kB / 1.076 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.5124, allocations: 3.938 kB / 1.076 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.336e-06/0.5124, allocations: 0 / 1.076 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.316e-06/0.5124, allocations: 0 / 1.076 GB, free: 5.164 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.00137/0.5138, allocations: 0.6203 MB / 1.077 GB, free: 4.461 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 7.02e-05/0.5139, allocations: 8.031 kB / 1.077 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000101/0.514, allocations: 36.56 kB / 1.077 GB, free: 4.418 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004298/0.5144, allocations: 262.8 kB / 1.077 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.644e-05/0.5145, allocations: 12.66 kB / 1.077 GB, free: 4.109 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.449e-05/0.5145, allocations: 20.36 kB / 1.077 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009526/0.5155, allocations: 463.2 kB / 1.078 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.5155, allocations: 192 / 1.078 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.938e-05/0.5156, allocations: 15.92 kB / 1.078 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.5156, allocations: 4 kB / 1.078 GB, free: 3.602 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004914/0.5161, allocations: 319.8 kB / 1.078 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008539/0.517, allocations: 0.5663 MB / 1.079 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001419/0.5184, allocations: 1.027 MB / 1.08 GB, free: 1.602 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009036/0.5193, allocations: 0.6632 MB / 1.08 GB, free: 0.9258 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 5.674e-05/0.5194, allocations: 7.984 kB / 1.08 GB, free: 0.918 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001025/0.5204, allocations: 480.1 kB / 1.081 GB, free: 436 kB / 0.8262 GB Notification: Performance of pre-optimization done (n=37): time 1.924e-06/0.5204, allocations: 4 kB / 1.081 GB, free: 432 kB / 0.8262 GB Notification: Performance of matching and sorting (n=37): time 0.001828/0.5223, allocations: 1.111 MB / 1.082 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001345/0.5224, allocations: 152.4 kB / 1.082 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004341/0.5229, allocations: 260.8 kB / 1.082 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.979e-05/0.523, allocations: 37.7 kB / 1.082 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.5231, allocations: 121.1 kB / 1.082 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.5232, allocations: 79.12 kB / 1.083 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.142e-05/0.5233, allocations: 53.69 kB / 1.083 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001774/0.5235, allocations: 338.8 kB / 1.083 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004395/0.5239, allocations: 332.7 kB / 1.083 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005131/0.5244, allocations: 422.5 kB / 1.084 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.5256, allocations: 0.7699 MB / 1.084 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.5256, allocations: 0 / 1.084 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001154/0.5267, allocations: 0.8327 MB / 1.085 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/0.5268, allocations: 7.938 kB / 1.085 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.5268, allocations: 4 kB / 1.085 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.55e-05/0.5268, allocations: 4 kB / 1.085 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002033/0.527, allocations: 43.89 kB / 1.085 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.395e-05/0.5271, allocations: 7.938 kB / 1.085 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000264/0.5273, allocations: 35.75 kB / 1.085 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003523/0.5277, allocations: 271.9 kB / 1.086 GB, free: 11.44 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 45 (dayTypMonThr.skipIDayIncrement,$PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.iDay,$PRE.dayTypMonThr.iDay,dayTypMonThr.y[3],dayTypMonThr.y[2],dayTypMonThr.y[1],dayTypTwoWeeks.skipIDayIncrement,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.iDay,$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.y[14],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[1],dayTypSat.skipIDayIncrement,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.iDay,$PRE.dayTypSat.iDay,dayTypSat.y[2],dayTypSat.y[1],dayTypMon.skipIDayIncrement,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.iDay,$PRE.dayTypMon.iDay,dayTypMon.y[2],dayTypMon.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * 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.0002731/0.528, allocations: 190.7 kB / 1.086 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.416e-05/0.528, allocations: 35.64 kB / 1.086 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.096e-05/0.5281, allocations: 34.19 kB / 1.086 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.5281, allocations: 4 kB / 1.086 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/0.5282, allocations: 3.984 kB / 1.086 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.5282, allocations: 4 kB / 1.086 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002302/0.5305, allocations: 1.714 MB / 1.087 GB, free: 9.391 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.5305, allocations: 0 / 1.087 GB, free: 9.391 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.291e-05/0.5306, allocations: 27.91 kB / 1.087 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.5306, allocations: 0 / 1.087 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.55e-05/0.5307, allocations: 19.98 kB / 1.088 GB, free: 9.344 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.5307, allocations: 7.984 kB / 1.088 GB, free: 9.336 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.5307, allocations: 0 / 1.088 GB, free: 9.336 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001337/0.532, allocations: 1.123 MB / 1.089 GB, free: 8.195 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.196e-05/0.5321, allocations: 100.8 kB / 1.089 GB, free: 8.078 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.411e-05/0.5322, allocations: 12.12 kB / 1.089 GB, free: 8.066 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002638/0.5325, allocations: 19.98 kB / 1.089 GB, free: 8.047 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.5326, allocations: 47.94 kB / 1.089 GB, free: 8 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003235/0.5329, allocations: 279.4 kB / 1.089 GB, free: 7.727 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001596/0.5331, allocations: 176.4 kB / 1.089 GB, free: 7.555 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5331, allocations: 0 / 1.089 GB, free: 7.555 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004612/0.5335, allocations: 60 kB / 1.089 GB, free: 7.496 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 37 (dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.y[1],dayTypMon.y[2],dayTypMon.iDay,dayTypMon.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.y[1],dayTypSat.y[2],dayTypSat.iDay,dayTypSat.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],dayTypTwoWeeks.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],dayTypMonThr.iDay,dayTypMonThr.skipIDayIncrement) * Number of discrete states: 8 (dayTypMonThr.skipIDayIncrement,dayTypMonThr.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.iDay,dayTypSat.skipIDayIncrement,dayTypSat.iDay,dayTypMon.skipIDayIncrement,dayTypMon.iDay) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0001934/0.5337, allocations: 138 kB / 1.089 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009882/0.5347, allocations: 0.7375 MB / 1.09 GB, free: 6.617 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.5348, allocations: 3.938 kB / 1.09 GB, free: 6.613 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005869/0.5353, allocations: 411.8 kB / 1.091 GB, free: 6.211 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001788/0.5371, allocations: 328.8 kB / 1.091 GB, free: 5.895 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001609/0.5388, allocations: 1.035 MB / 1.092 GB, free: 4.82 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004945/0.5393, allocations: 0.7536 MB / 1.093 GB, free: 4.039 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002952/0.5396, allocations: 98.91 kB / 1.093 GB, free: 3.945 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001396/0.5397, allocations: 71.38 kB / 1.093 GB, free: 3.875 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.5397, allocations: 4 kB / 1.093 GB, free: 3.871 MB / 0.8419 GB Notification: Performance of Templates: time 0.01435/0.5541, allocations: 8.431 MB / 1.101 GB, free: 11.54 MB / 0.8575 GB make -j1 -f Buildings_1.6_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_1.6_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_1.6_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_1.6_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)