Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_Buildings.Controls.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001625/0.001625, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002386/0.002386, allocations: 192.1 kB / 16.14 MB, free: 6.695 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.637/1.637, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.363/3.363, allocations: 472.6 MB / 0.7447 GB, free: 4.969 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 58.25 kB / 0.9113 GB, free: 33.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4335/0.4348, allocations: 159.9 MB / 1.068 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.003053/0.4379, allocations: 1.479 MB / 1.069 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006222/0.4386, allocations: 267.2 kB / 1.069 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.802e-05/0.4386, allocations: 0 / 1.069 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.4388, allocations: 15.86 kB / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.503e-05/0.4388, allocations: 15.92 kB / 1.069 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003567/0.4392, allocations: 83.81 kB / 1.069 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000314/0.4395, allocations: 219.9 kB / 1.07 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.801e-05/0.4396, allocations: 13.06 kB / 1.07 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.11e-05/0.4397, allocations: 75.81 kB / 1.07 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001626/0.4399, allocations: 103.7 kB / 1.07 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.063e-05/0.4399, allocations: 8 kB / 1.07 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.777e-05/0.4399, allocations: 8 kB / 1.07 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.4401, allocations: 79.78 kB / 1.07 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.4402, allocations: 99.39 kB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000255/0.4404, allocations: 243.1 kB / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.4405, allocations: 0 / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of FrontEnd: time 7.82e-07/0.4405, allocations: 0 / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.4405, allocations: 0 / 1.07 GB, free: 8.223 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.001001/0.4415, allocations: 0.6956 MB / 1.071 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.4415, allocations: 8.031 kB / 1.071 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.475e-05/0.4416, allocations: 36.56 kB / 1.071 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003139/0.4419, allocations: 262.9 kB / 1.071 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.898e-05/0.442, allocations: 16.66 kB / 1.071 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.888e-05/0.442, allocations: 16.38 kB / 1.071 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006632/0.4427, allocations: 467.1 kB / 1.072 GB, free: 6.602 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.4427, allocations: 192 / 1.072 GB, free: 6.602 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.671e-05/0.4427, allocations: 11.94 kB / 1.072 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.655e-06/0.4427, allocations: 4 kB / 1.072 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003973/0.4431, allocations: 323.8 kB / 1.072 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006389/0.4438, allocations: 0.5741 MB / 1.072 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/0.445, allocations: 1.023 MB / 1.073 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007552/0.4457, allocations: 0.6687 MB / 1.074 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.528e-05/0.4458, allocations: 4 kB / 1.074 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006473/0.4464, allocations: 484.1 kB / 1.075 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=37): time 1.703e-06/0.4465, allocations: 0 / 1.075 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of matching and sorting (n=37): time 0.001605/0.4481, allocations: 1.11 MB / 1.076 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.528e-05/0.4482, allocations: 140.5 kB / 1.076 GB, free: 2.113 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002566/0.4484, allocations: 260.8 kB / 1.076 GB, free: 1.852 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.742e-05/0.4485, allocations: 37.7 kB / 1.076 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.364e-05/0.4486, allocations: 117.1 kB / 1.076 GB, free: 1.691 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.135e-05/0.4487, allocations: 83.14 kB / 1.076 GB, free: 1.609 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/0.4488, allocations: 106.1 kB / 1.076 GB, free: 1.496 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001613/0.449, allocations: 342.8 kB / 1.077 GB, free: 1.152 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004188/0.4494, allocations: 332.7 kB / 1.077 GB, free: 0.8281 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005135/0.4499, allocations: 422.5 kB / 1.077 GB, free: 392 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001027/0.451, allocations: 0.7702 MB / 1.078 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.451, allocations: 0 / 1.078 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001159/0.4522, allocations: 0.8365 MB / 1.079 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.969e-05/0.4522, allocations: 9.344 kB / 1.079 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.4522, allocations: 7.938 kB / 1.079 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.569e-05/0.4522, allocations: 4 kB / 1.079 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001916/0.4524, allocations: 47.78 kB / 1.079 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.4525, allocations: 8.062 kB / 1.079 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002439/0.4527, allocations: 35.67 kB / 1.079 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002976/0.453, allocations: 259.4 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.0002239/0.4532, allocations: 198.1 kB / 1.08 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.486e-05/0.4533, allocations: 31.66 kB / 1.08 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.416e-05/0.4534, allocations: 38.17 kB / 1.08 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.4534, allocations: 4 kB / 1.08 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.4534, allocations: 0 / 1.08 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.4534, allocations: 3.984 kB / 1.08 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002079/0.4555, allocations: 1.714 MB / 1.081 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.4555, allocations: 0 / 1.081 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.917e-05/0.4556, allocations: 27.91 kB / 1.081 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.4556, allocations: 0 / 1.081 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.174e-05/0.4556, allocations: 19.97 kB / 1.081 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.4556, allocations: 4 kB / 1.081 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.4556, allocations: 4 kB / 1.081 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001168/0.4568, allocations: 1.123 MB / 1.082 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.688e-05/0.4569, allocations: 104.8 kB / 1.083 GB, free: 11 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.451e-05/0.457, allocations: 15.94 kB / 1.083 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000254/0.4572, allocations: 8 kB / 1.083 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.4574, allocations: 51.94 kB / 1.083 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000324/0.4577, allocations: 275.5 kB / 1.083 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001882/0.4579, allocations: 180.4 kB / 1.083 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4579, allocations: 0 / 1.083 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004652/0.4584, allocations: 64 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.0002067/0.4586, allocations: 135.2 kB / 1.083 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001101/0.4597, allocations: 0.7375 MB / 1.084 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.4597, allocations: 0 / 1.084 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006205/0.4603, allocations: 411.8 kB / 1.084 GB, free: 9.137 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001566/0.4619, allocations: 330.1 kB / 1.085 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001379/0.4633, allocations: 1.031 MB / 1.086 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003948/0.4637, allocations: 0.7608 MB / 1.086 GB, free: 6.965 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002545/0.464, allocations: 98.92 kB / 1.087 GB, free: 6.871 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.4641, allocations: 71.31 kB / 1.087 GB, free: 6.801 MB / 0.8419 GB Notification: Performance of SimCode: time 7.82e-07/0.4642, allocations: 4 kB / 1.087 GB, free: 6.797 MB / 0.8419 GB Notification: Performance of Templates: time 0.01528/0.4794, allocations: 8.47 MB / 1.095 GB, free: 14.43 MB / 0.8575 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)