Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Sources.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.Sources.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.292/2.292, allocations: 391.2 MB / 407 MB, free: 10.86 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001584/0.001584, allocations: 192.4 kB / 499.1 MB, free: 4.684 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.68/1.68, allocations: 222.9 MB / 0.7948 GB, free: 15.84 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 103.7 kB / 0.9329 GB, free: 7.09 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 51.84 kB / 1.081 GB, free: 218.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3703/0.3714, allocations: 140.6 MB / 1.218 GB, free: 117.3 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.00312/0.3746, allocations: 1.49 MB / 1.22 GB, free: 115.8 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.0006717/0.3753, allocations: 272 kB / 1.22 GB, free: 115.5 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.169e-05/0.3754, allocations: 0 / 1.22 GB, free: 115.5 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.000177/0.3756, allocations: 11.88 kB / 1.22 GB, free: 115.5 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 5.443e-05/0.3756, allocations: 15.91 kB / 1.22 GB, free: 115.5 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003706/0.376, allocations: 87.86 kB / 1.22 GB, free: 115.4 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0002526/0.3763, allocations: 220 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 6.49e-05/0.3764, allocations: 13.11 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 6.166e-05/0.3764, allocations: 75.81 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001486/0.3766, allocations: 103.7 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 4.109e-05/0.3766, allocations: 8 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 3.556e-05/0.3767, allocations: 8 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.3768, allocations: 79.77 kB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.3769, allocations: 99.33 kB / 1.22 GB, free: 114.8 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0002197/0.3771, allocations: 239.2 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.3771, allocations: 0 / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of FrontEnd: time 2.856e-06/0.3771, allocations: 4 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.041e-06/0.3771, allocations: 0 / 1.221 GB, free: 114.5 MB / 0.823 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.0008804/0.378, allocations: 0.7 MB / 1.221 GB, free: 113.8 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.3781, allocations: 11.98 kB / 1.221 GB, free: 113.8 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.67e-05/0.3782, allocations: 28.56 kB / 1.221 GB, free: 113.7 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003453/0.3785, allocations: 270.7 kB / 1.222 GB, free: 113.4 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.647e-05/0.3786, allocations: 20.66 kB / 1.222 GB, free: 113.4 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.724e-05/0.3786, allocations: 16.38 kB / 1.222 GB, free: 113.4 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005375/0.3792, allocations: 459.3 kB / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.3792, allocations: 192 / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.24e-05/0.3792, allocations: 11.94 kB / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.337e-06/0.3792, allocations: 0 / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003321/0.3796, allocations: 329 kB / 1.222 GB, free: 112.6 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005329/0.3801, allocations: 0.5547 MB / 1.223 GB, free: 112 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000856/0.381, allocations: 1.037 MB / 1.224 GB, free: 110.9 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005212/0.3815, allocations: 0.6593 MB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.166e-05/0.3816, allocations: 8 kB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005243/0.3821, allocations: 482.2 kB / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of pre-optimization done (n=37): time 1.844e-06/0.3821, allocations: 0 / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of matching and sorting (n=37): time 0.00113/0.3832, allocations: 1.111 MB / 1.226 GB, free: 108.6 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.963e-05/0.3833, allocations: 140.5 kB / 1.226 GB, free: 108.4 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001864/0.3835, allocations: 257 kB / 1.227 GB, free: 108.2 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.301e-05/0.3835, allocations: 29.7 kB / 1.227 GB, free: 108.1 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 6.059e-05/0.3836, allocations: 129.1 kB / 1.227 GB, free: 108 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 6.108e-05/0.3836, allocations: 82.94 kB / 1.227 GB, free: 107.9 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/0.3838, allocations: 110.1 kB / 1.227 GB, free: 107.8 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 8.394e-05/0.3839, allocations: 342.8 kB / 1.227 GB, free: 107.5 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002891/0.3842, allocations: 332.7 kB / 1.228 GB, free: 107.2 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003279/0.3845, allocations: 422.4 kB / 1.228 GB, free: 106.7 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006274/0.3851, allocations: 0.7694 MB / 1.229 GB, free: 105.9 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.3851, allocations: 0 / 1.229 GB, free: 105.9 MB / 0.823 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007594/0.3859, allocations: 0.8329 MB / 1.23 GB, free: 105.1 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.3859, allocations: 15.92 kB / 1.23 GB, free: 105 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.3859, allocations: 4 kB / 1.23 GB, free: 105 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.386, allocations: 4.562 kB / 1.23 GB, free: 105 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000162/0.3861, allocations: 35.91 kB / 1.23 GB, free: 105 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.3862, allocations: 11.94 kB / 1.23 GB, free: 105 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002431/0.3864, allocations: 31.73 kB / 1.23 GB, free: 105 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002281/0.3866, allocations: 267.5 kB / 1.23 GB, free: 104.7 MB / 0.823 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.000169/0.3868, allocations: 190.4 kB / 1.23 GB, free: 104.5 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.448e-05/0.3869, allocations: 27.66 kB / 1.23 GB, free: 104.5 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.839e-05/0.3869, allocations: 38.17 kB / 1.23 GB, free: 104.4 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.387, allocations: 4 kB / 1.23 GB, free: 104.4 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/0.387, allocations: 4 kB / 1.23 GB, free: 104.4 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.76e-06/0.387, allocations: 3.984 kB / 1.23 GB, free: 104.4 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00152/0.3885, allocations: 1.723 MB / 1.232 GB, free: 102.6 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3885, allocations: 0 / 1.232 GB, free: 102.6 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.873e-05/0.3886, allocations: 23.91 kB / 1.232 GB, free: 102.6 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.3886, allocations: 4 kB / 1.232 GB, free: 102.6 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.647e-05/0.3886, allocations: 23.91 kB / 1.232 GB, free: 102.6 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.3886, allocations: 4 kB / 1.232 GB, free: 102.6 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3886, allocations: 0 / 1.232 GB, free: 102.6 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001289/0.3899, allocations: 2.182 MB / 1.234 GB, free: 100.4 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.6e-05/0.39, allocations: 104.8 kB / 1.234 GB, free: 100.2 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.572e-05/0.39, allocations: 12 kB / 1.234 GB, free: 100.2 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002303/0.3903, allocations: 11.94 kB / 1.234 GB, free: 100.2 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.3904, allocations: 51.88 kB / 1.234 GB, free: 100.2 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00022/0.3906, allocations: 283.6 kB / 1.234 GB, free: 99.88 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.0001145/0.3907, allocations: 172.5 kB / 1.235 GB, free: 99.71 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3907, allocations: 3.938 kB / 1.235 GB, free: 99.71 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0005286/0.3913, allocations: 64 kB / 1.235 GB, free: 99.64 MB / 0.823 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.0001538/0.3914, allocations: 135.2 kB / 1.235 GB, free: 99.5 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0007033/0.3921, allocations: 0.7452 MB / 1.236 GB, free: 98.75 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3922, allocations: 3.938 kB / 1.236 GB, free: 98.75 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003822/0.3925, allocations: 399.7 kB / 1.236 GB, free: 98.36 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001514/0.3941, allocations: 341.9 kB / 1.236 GB, free: 98.04 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.3953, allocations: 1.264 MB / 1.238 GB, free: 96.72 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002174/0.3955, allocations: 0.7723 MB / 1.238 GB, free: 95.93 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.0002448/0.3958, allocations: 82.94 kB / 1.238 GB, free: 95.85 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.3959, allocations: 67.38 kB / 1.238 GB, free: 95.78 MB / 0.823 GB Notification: Performance of SimCode: time 5.01e-07/0.3959, allocations: 0 / 1.238 GB, free: 95.78 MB / 0.823 GB Notification: Performance of Templates: time 0.01197/0.4079, allocations: 8.691 MB / 1.247 GB, free: 87.19 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_latest_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_latest_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)