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.001192/0.001192, allocations: 111.3 kB / 15.24 MB, free: 0.6484 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.001693/0.001693, allocations: 196.8 kB / 16.14 MB, free: 6.07 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.648/1.648, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.175/3.175, allocations: 472.6 MB / 0.7447 GB, free: 4.961 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 60.41 kB / 0.9113 GB, free: 33.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4434/0.4448, allocations: 159.9 MB / 1.068 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.003026/0.4479, allocations: 1.483 MB / 1.069 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0005912/0.4485, allocations: 267.2 kB / 1.069 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.901e-05/0.4486, allocations: 0 / 1.069 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001373/0.4487, allocations: 15.86 kB / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.478e-05/0.4488, allocations: 19.91 kB / 1.069 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003136/0.4491, allocations: 75.88 kB / 1.069 GB, free: 9.059 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002589/0.4494, allocations: 224 kB / 1.07 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.019e-05/0.4494, allocations: 5.125 kB / 1.07 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001319/0.4496, allocations: 83.75 kB / 1.07 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001426/0.4497, allocations: 99.69 kB / 1.07 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.861e-05/0.4498, allocations: 12 kB / 1.07 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.548e-05/0.4498, allocations: 8 kB / 1.07 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001699/0.45, allocations: 75.78 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001133/0.4501, allocations: 103.4 kB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002375/0.4503, allocations: 239.2 kB / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.4503, allocations: 0 / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.042e-06/0.4503, allocations: 0 / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.4504, allocations: 0 / 1.07 GB, free: 8.227 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.000948/0.4513, allocations: 0.6943 MB / 1.071 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.4514, allocations: 12.03 kB / 1.071 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.05e-05/0.4514, allocations: 28.56 kB / 1.071 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000305/0.4518, allocations: 262.9 kB / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.062e-05/0.4518, allocations: 12.66 kB / 1.071 GB, free: 7.102 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.05e-05/0.4518, allocations: 20.38 kB / 1.071 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000609/0.4525, allocations: 471.1 kB / 1.072 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.4525, allocations: 4.188 kB / 1.072 GB, free: 6.602 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.621e-05/0.4525, allocations: 7.938 kB / 1.072 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.4525, allocations: 8 kB / 1.072 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003685/0.4529, allocations: 315.8 kB / 1.072 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005937/0.4535, allocations: 0.5741 MB / 1.072 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00127/0.4548, allocations: 1.021 MB / 1.073 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008148/0.4556, allocations: 0.6751 MB / 1.074 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.254e-05/0.4556, allocations: 8 kB / 1.074 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006196/0.4563, allocations: 480.1 kB / 1.075 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=37): time 1.813e-06/0.4563, allocations: 0 / 1.075 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of matching and sorting (n=37): time 0.001525/0.4578, allocations: 1.116 MB / 1.076 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.4579, allocations: 140.4 kB / 1.076 GB, free: 2.113 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002445/0.4582, allocations: 252.8 kB / 1.076 GB, free: 1.859 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.49e-05/0.4582, allocations: 37.7 kB / 1.076 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.806e-05/0.4583, allocations: 125.1 kB / 1.076 GB, free: 1.691 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/0.4585, allocations: 79.14 kB / 1.076 GB, free: 1.613 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/0.4586, allocations: 110.1 kB / 1.076 GB, free: 1.496 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.4588, allocations: 342.8 kB / 1.077 GB, free: 1.152 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003851/0.4592, allocations: 324.8 kB / 1.077 GB, free: 0.8359 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004746/0.4596, allocations: 434.5 kB / 1.077 GB, free: 388 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008694/0.4605, allocations: 0.7634 MB / 1.078 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.4605, allocations: 0 / 1.078 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001057/0.4616, allocations: 0.8287 MB / 1.079 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.4616, allocations: 7.938 kB / 1.079 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.4617, allocations: 8.125 kB / 1.079 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.4617, allocations: 4 kB / 1.079 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002497/0.4619, allocations: 47.89 kB / 1.079 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/0.462, allocations: 7.938 kB / 1.079 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002711/0.4622, allocations: 31.62 kB / 1.079 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003061/0.4626, allocations: 271.5 kB / 1.079 GB, free: 14.37 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.0001958/0.4628, allocations: 190 kB / 1.08 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.006e-05/0.4628, allocations: 31.66 kB / 1.08 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.08e-05/0.4629, allocations: 38.17 kB / 1.08 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.4629, allocations: 8 kB / 1.08 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.4629, allocations: 0 / 1.08 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.4629, allocations: 4 kB / 1.08 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002166/0.4651, allocations: 1.714 MB / 1.081 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.4651, allocations: 0 / 1.081 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.032e-05/0.4652, allocations: 27.91 kB / 1.081 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.4652, allocations: 4 kB / 1.081 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.207e-05/0.4652, allocations: 15.98 kB / 1.081 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.4652, allocations: 7.984 kB / 1.081 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.4652, allocations: 0 / 1.081 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/0.4664, allocations: 1.123 MB / 1.082 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.442e-05/0.4664, allocations: 104.8 kB / 1.083 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.354e-05/0.4665, allocations: 8 kB / 1.083 GB, free: 11 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002489/0.4668, allocations: 16.11 kB / 1.083 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.4669, allocations: 47.94 kB / 1.083 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002723/0.4672, allocations: 283.3 kB / 1.083 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002191/0.4674, allocations: 180.3 kB / 1.083 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4674, allocations: 0 / 1.083 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004653/0.4679, allocations: 60 kB / 1.083 GB, free: 10.42 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.0001681/0.468, allocations: 142 kB / 1.083 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009709/0.469, allocations: 0.7397 MB / 1.084 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.469, allocations: 0 / 1.084 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005542/0.4696, allocations: 403.8 kB / 1.084 GB, free: 9.145 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001585/0.4712, allocations: 327.8 kB / 1.085 GB, free: 8.836 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001351/0.4725, allocations: 1.042 MB / 1.086 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.4729, allocations: 0.7569 MB / 1.086 GB, free: 6.969 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002856/0.4732, allocations: 98.91 kB / 1.087 GB, free: 6.875 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/0.4734, allocations: 67.38 kB / 1.087 GB, free: 6.809 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.4734, allocations: 0 / 1.087 GB, free: 6.809 MB / 0.8419 GB Notification: Performance of Templates: time 0.01346/0.4868, allocations: 8.475 MB / 1.095 GB, free: 14.43 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)