Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_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_3.0.0_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.0009433/0.0009433, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.006947/0.006948, allocations: 171 kB / 16.26 MB, free: 6.613 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.411/1.411, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.871/2.871, allocations: 473.4 MB / 0.7469 GB, free: 6.082 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003358/0.0003358, allocations: 11.98 kB / 0.9158 GB, free: 33.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.3573, allocations: 162.2 MB / 1.074 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType): time 0.0009619/0.3584, allocations: 411.8 kB / 1.075 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006597/0.359, allocations: 271.2 kB / 1.075 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.865e-05/0.3591, allocations: 0 / 1.075 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001386/0.3592, allocations: 7.938 kB / 1.075 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.442e-05/0.3593, allocations: 19.84 kB / 1.075 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003599/0.3597, allocations: 83.3 kB / 1.075 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002782/0.36, allocations: 227.9 kB / 1.075 GB, free: 6.5 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 7.179e-05/0.36, allocations: 13.11 kB / 1.075 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.087e-05/0.3601, allocations: 71.81 kB / 1.075 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000185/0.3603, allocations: 103.7 kB / 1.075 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.202e-05/0.3604, allocations: 8 kB / 1.075 GB, free: 6.309 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.041e-05/0.3604, allocations: 8 kB / 1.075 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001149/0.3605, allocations: 79.72 kB / 1.075 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.3607, allocations: 133.1 kB / 1.076 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002997/0.361, allocations: 263 kB / 1.076 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.316e-06/0.361, allocations: 8 kB / 1.076 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.675e-06/0.361, allocations: 0 / 1.076 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.7e-06/0.361, allocations: 0 / 1.076 GB, free: 5.82 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.001117/0.3621, allocations: 0.6398 MB / 1.076 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.3622, allocations: 8.031 kB / 1.076 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.185e-05/0.3623, allocations: 28.56 kB / 1.076 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003365/0.3626, allocations: 266.7 kB / 1.077 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.821e-05/0.3627, allocations: 16.66 kB / 1.077 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.185e-05/0.3627, allocations: 20.38 kB / 1.077 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006494/0.3634, allocations: 463.2 kB / 1.077 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.3634, allocations: 192 / 1.077 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.648e-05/0.3634, allocations: 7.938 kB / 1.077 GB, free: 4.25 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.3635, allocations: 4 kB / 1.077 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004068/0.3639, allocations: 327.8 kB / 1.077 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006549/0.3645, allocations: 0.5625 MB / 1.078 GB, free: 3.305 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001139/0.3657, allocations: 1.037 MB / 1.079 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007702/0.3665, allocations: 0.6554 MB / 1.08 GB, free: 1.566 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.848e-05/0.3665, allocations: 7.938 kB / 1.08 GB, free: 1.559 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007313/0.3672, allocations: 488.1 kB / 1.08 GB, free: 1.059 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=37): time 2.084e-06/0.3673, allocations: 0 / 1.08 GB, free: 1.059 MB / 0.8262 GB Notification: Performance of matching and sorting (n=37): time 0.001655/0.3689, allocations: 1.119 MB / 1.081 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/0.369, allocations: 140.5 kB / 1.081 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002674/0.3693, allocations: 248.9 kB / 1.082 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.251e-05/0.3694, allocations: 45.58 kB / 1.082 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.71e-05/0.3695, allocations: 125.1 kB / 1.082 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.795e-05/0.3696, allocations: 83.08 kB / 1.082 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.399e-05/0.3697, allocations: 53.69 kB / 1.082 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001607/0.3698, allocations: 342.8 kB / 1.082 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004156/0.3703, allocations: 332.7 kB / 1.083 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004857/0.3708, allocations: 418.5 kB / 1.083 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009632/0.3717, allocations: 0.7635 MB / 1.084 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3717, allocations: 0 / 1.084 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00108/0.3728, allocations: 0.8394 MB / 1.085 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/0.3729, allocations: 11.94 kB / 1.085 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.3729, allocations: 4 kB / 1.085 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.658e-05/0.3729, allocations: 4 kB / 1.085 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001925/0.3731, allocations: 39.91 kB / 1.085 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.559e-05/0.3731, allocations: 7.938 kB / 1.085 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000243/0.3734, allocations: 32.3 kB / 1.085 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003525/0.3737, allocations: 267.5 kB / 1.085 GB, free: 12.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.0002383/0.374, allocations: 189.7 kB / 1.085 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.923e-05/0.374, allocations: 31.66 kB / 1.085 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.514e-05/0.3741, allocations: 38.17 kB / 1.085 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.3742, allocations: 8 kB / 1.085 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.178e-06/0.3742, allocations: 0 / 1.085 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.3742, allocations: 3.984 kB / 1.085 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002183/0.3764, allocations: 1.72 MB / 1.087 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.3764, allocations: 7.984 kB / 1.087 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.504e-05/0.3764, allocations: 19.92 kB / 1.087 GB, free: 10 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.3765, allocations: 4 kB / 1.087 GB, free: 10 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.578e-05/0.3765, allocations: 23.97 kB / 1.087 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.247e-06/0.3765, allocations: 4 kB / 1.087 GB, free: 9.973 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3765, allocations: 0 / 1.087 GB, free: 9.973 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001301/0.3778, allocations: 1.117 MB / 1.088 GB, free: 8.836 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.505e-05/0.3779, allocations: 108.7 kB / 1.088 GB, free: 8.711 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.352e-05/0.378, allocations: 12 kB / 1.088 GB, free: 8.699 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002547/0.3782, allocations: 8 kB / 1.088 GB, free: 8.691 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/0.3784, allocations: 51.88 kB / 1.088 GB, free: 8.641 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003145/0.3787, allocations: 279.4 kB / 1.088 GB, free: 8.367 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001594/0.3789, allocations: 180.4 kB / 1.089 GB, free: 8.191 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3789, allocations: 4 kB / 1.089 GB, free: 8.188 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000456/0.3793, allocations: 60 kB / 1.089 GB, free: 8.129 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.0001898/0.3795, allocations: 127.2 kB / 1.089 GB, free: 7.996 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009541/0.3805, allocations: 0.7452 MB / 1.089 GB, free: 7.25 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3805, allocations: 0 / 1.089 GB, free: 7.25 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005171/0.381, allocations: 411.8 kB / 1.09 GB, free: 6.848 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001903/0.3829, allocations: 421.3 kB / 1.09 GB, free: 6.445 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.3843, allocations: 1.04 MB / 1.091 GB, free: 5.367 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003236/0.3846, allocations: 0.753 MB / 1.092 GB, free: 4.586 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002716/0.3849, allocations: 98.88 kB / 1.092 GB, free: 4.492 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.385, allocations: 67.38 kB / 1.092 GB, free: 4.426 MB / 0.8419 GB Notification: Performance of SimCode: time 4.81e-07/0.385, allocations: 3.938 kB / 1.092 GB, free: 4.422 MB / 0.8419 GB Notification: Performance of Templates: time 0.01375/0.3988, allocations: 8.947 MB / 1.101 GB, free: 11.59 MB / 0.8575 GB make -j1 -f Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)