Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Obsolete.Controls.OBC.CDL.Discrete.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.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType") translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001177/0.001177, allocations: 193.1 kB / 16.13 MB, free: 6.656 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.401/1.401, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.879/2.879, allocations: 472.6 MB / 0.7447 GB, free: 4.953 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 67.33 kB / 0.9114 GB, free: 33.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.363/0.3643, allocations: 159.9 MB / 1.068 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType): time 0.001905/0.3663, allocations: 0.7488 MB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0005758/0.3668, allocations: 271.2 kB / 1.069 GB, free: 9.922 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.464e-05/0.3669, allocations: 4 kB / 1.069 GB, free: 9.918 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001256/0.367, allocations: 7.922 kB / 1.069 GB, free: 9.91 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.041e-05/0.3671, allocations: 15.88 kB / 1.069 GB, free: 9.895 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003175/0.3674, allocations: 79.91 kB / 1.069 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000251/0.3677, allocations: 231.9 kB / 1.069 GB, free: 9.59 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.988e-05/0.3677, allocations: 9.109 kB / 1.069 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.239e-05/0.3678, allocations: 79.81 kB / 1.069 GB, free: 9.504 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001454/0.368, allocations: 99.69 kB / 1.069 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.01e-05/0.368, allocations: 8 kB / 1.069 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.597e-05/0.3681, allocations: 12 kB / 1.069 GB, free: 9.387 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.908e-05/0.3682, allocations: 75.72 kB / 1.069 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001015/0.3683, allocations: 103.4 kB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002631/0.3685, allocations: 271.1 kB / 1.069 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.3685, allocations: 0 / 1.069 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.52e-07/0.3686, allocations: 4 kB / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.681e-06/0.3686, allocations: 0 / 1.069 GB, free: 8.941 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.0009511/0.3695, allocations: 0.706 MB / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.3696, allocations: 12.02 kB / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.313e-05/0.3697, allocations: 28.56 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002963/0.37, allocations: 266.8 kB / 1.07 GB, free: 7.812 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.147e-05/0.37, allocations: 12.66 kB / 1.07 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.764e-05/0.37, allocations: 24.36 kB / 1.07 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005723/0.3706, allocations: 467.1 kB / 1.071 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.3706, allocations: 192 / 1.071 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.838e-05/0.3707, allocations: 11.94 kB / 1.071 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.3707, allocations: 0 / 1.071 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003904/0.3711, allocations: 327.8 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006043/0.3717, allocations: 0.5585 MB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001171/0.3729, allocations: 1.031 MB / 1.073 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007558/0.3736, allocations: 0.6594 MB / 1.073 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.972e-05/0.3737, allocations: 8 kB / 1.073 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006319/0.3743, allocations: 480.1 kB / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=37): time 2.144e-06/0.3743, allocations: 0 / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of matching and sorting (n=37): time 0.001495/0.3758, allocations: 1.111 MB / 1.075 GB, free: 3 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.526e-05/0.3759, allocations: 148.5 kB / 1.075 GB, free: 2.824 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002289/0.3762, allocations: 248.8 kB / 1.075 GB, free: 2.574 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.616e-05/0.3762, allocations: 41.69 kB / 1.075 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.878e-05/0.3763, allocations: 129.1 kB / 1.076 GB, free: 2.398 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.562e-05/0.3764, allocations: 79.08 kB / 1.076 GB, free: 2.32 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/0.3766, allocations: 114 kB / 1.076 GB, free: 2.199 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.3767, allocations: 346.8 kB / 1.076 GB, free: 1.852 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003912/0.3771, allocations: 328.7 kB / 1.076 GB, free: 1.531 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004542/0.3776, allocations: 422.5 kB / 1.077 GB, free: 1.086 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009086/0.3785, allocations: 0.7655 MB / 1.078 GB, free: 292 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.3785, allocations: 0 / 1.078 GB, free: 292 kB / 0.8262 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00106/0.3796, allocations: 0.8327 MB / 1.078 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.3796, allocations: 11.94 kB / 1.078 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.3796, allocations: 4.562 kB / 1.078 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.3796, allocations: 4 kB / 1.078 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001784/0.3798, allocations: 43.89 kB / 1.078 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.417e-05/0.3798, allocations: 8 kB / 1.078 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002587/0.3801, allocations: 31.69 kB / 1.078 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002954/0.3804, allocations: 267.5 kB / 1.079 GB, free: 15.08 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.0002089/0.3806, allocations: 193.7 kB / 1.079 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.917e-05/0.3807, allocations: 27.66 kB / 1.079 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.804e-05/0.3807, allocations: 38.17 kB / 1.079 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.3808, allocations: 4 kB / 1.079 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.3808, allocations: 4 kB / 1.079 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.3808, allocations: 0 / 1.079 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001961/0.3827, allocations: 1.723 MB / 1.081 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.3828, allocations: 4 kB / 1.081 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.397e-05/0.3828, allocations: 19.97 kB / 1.081 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.074e-06/0.3828, allocations: 4.234 kB / 1.081 GB, free: 13 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.482e-05/0.3829, allocations: 23.91 kB / 1.081 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.3829, allocations: 4 kB / 1.081 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3829, allocations: 0 / 1.081 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001075/0.384, allocations: 1.117 MB / 1.082 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.86e-05/0.384, allocations: 104.8 kB / 1.082 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.828e-05/0.3841, allocations: 15.98 kB / 1.082 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002493/0.3844, allocations: 4 kB / 1.082 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.3845, allocations: 59.88 kB / 1.082 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002885/0.3848, allocations: 279.5 kB / 1.082 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001665/0.3849, allocations: 176.4 kB / 1.082 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.385, allocations: 0 / 1.082 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004658/0.3854, allocations: 60 kB / 1.082 GB, free: 11.13 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.0001967/0.3856, allocations: 142 kB / 1.083 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000965/0.3866, allocations: 0.7375 MB / 1.083 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.3866, allocations: 8.062 kB / 1.083 GB, free: 10.24 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005012/0.3871, allocations: 403.6 kB / 1.084 GB, free: 9.848 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001702/0.3888, allocations: 435.2 kB / 1.084 GB, free: 9.438 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.3902, allocations: 1.035 MB / 1.085 GB, free: 8.363 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003427/0.3905, allocations: 0.7569 MB / 1.086 GB, free: 7.578 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002864/0.3908, allocations: 94.89 kB / 1.086 GB, free: 7.488 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001306/0.391, allocations: 67.38 kB / 1.086 GB, free: 7.422 MB / 0.8419 GB Notification: Performance of SimCode: time 4.51e-07/0.391, allocations: 4 kB / 1.086 GB, free: 7.418 MB / 0.8419 GB Notification: Performance of Templates: time 0.01423/0.4052, allocations: 8.971 MB / 1.095 GB, free: 14.56 MB / 0.8575 GB make -j1 -f Buildings_1.6_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_1.6_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_1.6_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_1.6_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_1.6_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)