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.0009609/0.0009608, allocations: 97.56 kB / 15.36 MB, free: 0.7305 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.00223/0.00223, allocations: 172.6 kB / 16.26 MB, free: 6.664 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.471/1.471, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.851/2.851, allocations: 473.4 MB / 0.7469 GB, free: 6.047 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003789/0.000379, allocations: 12.19 kB / 0.9158 GB, free: 33.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2982, allocations: 162.2 MB / 1.074 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType): time 0.0008887/0.2991, allocations: 411.8 kB / 1.075 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006136/0.2997, allocations: 271.2 kB / 1.075 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.561e-05/0.2998, allocations: 0 / 1.075 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001027/0.2999, allocations: 3.938 kB / 1.075 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.565e-05/0.3, allocations: 27.78 kB / 1.075 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000332/0.3003, allocations: 79.88 kB / 1.075 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002865/0.3006, allocations: 227.9 kB / 1.075 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.746e-05/0.3007, allocations: 5.125 kB / 1.075 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001179/0.3008, allocations: 79.81 kB / 1.075 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001669/0.301, allocations: 99.69 kB / 1.075 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.93e-05/0.301, allocations: 12 kB / 1.075 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.406e-05/0.3011, allocations: 8 kB / 1.075 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.3012, allocations: 75.73 kB / 1.075 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001406/0.3013, allocations: 129.1 kB / 1.076 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002882/0.3016, allocations: 271 kB / 1.076 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.3016, allocations: 0 / 1.076 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.783e-06/0.3016, allocations: 0 / 1.076 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.727e-06/0.3017, allocations: 0 / 1.076 GB, free: 5.855 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.001047/0.3027, allocations: 0.6398 MB / 1.076 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.3028, allocations: 12.03 kB / 1.076 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.018e-05/0.3028, allocations: 32.56 kB / 1.076 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003053/0.3032, allocations: 270.7 kB / 1.077 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.118e-05/0.3032, allocations: 12.66 kB / 1.077 GB, free: 4.773 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.128e-05/0.3032, allocations: 20.38 kB / 1.077 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006008/0.3038, allocations: 467.2 kB / 1.077 GB, free: 4.281 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.3039, allocations: 4.172 kB / 1.077 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.7e-05/0.3039, allocations: 7.938 kB / 1.077 GB, free: 4.27 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.017e-05/0.3039, allocations: 4 kB / 1.077 GB, free: 4.266 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004059/0.3043, allocations: 323.8 kB / 1.077 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006325/0.305, allocations: 0.5625 MB / 1.078 GB, free: 3.328 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.3061, allocations: 1.03 MB / 1.079 GB, free: 2.262 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007539/0.3069, allocations: 0.6554 MB / 1.08 GB, free: 1.594 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.901e-05/0.307, allocations: 11.94 kB / 1.08 GB, free: 1.582 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006186/0.3076, allocations: 476.1 kB / 1.08 GB, free: 1.094 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=37): time 1.654e-06/0.3076, allocations: 0 / 1.08 GB, free: 1.094 MB / 0.8262 GB Notification: Performance of matching and sorting (n=37): time 0.001445/0.309, allocations: 1.119 MB / 1.081 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.565e-05/0.3091, allocations: 140.5 kB / 1.081 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002455/0.3094, allocations: 252.8 kB / 1.082 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.081e-05/0.3094, allocations: 41.7 kB / 1.082 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.44e-05/0.3095, allocations: 121.1 kB / 1.082 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.061e-05/0.3096, allocations: 83.08 kB / 1.082 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.966e-05/0.3097, allocations: 53.69 kB / 1.082 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001451/0.3099, allocations: 346.8 kB / 1.082 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003827/0.3102, allocations: 328.7 kB / 1.083 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004671/0.3107, allocations: 418.5 kB / 1.083 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008788/0.3116, allocations: 0.7701 MB / 1.084 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-06/0.3116, allocations: 3.938 kB / 1.084 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001052/0.3127, allocations: 0.8331 MB / 1.085 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.3127, allocations: 11.94 kB / 1.085 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.3127, allocations: 384 / 1.085 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/0.3128, allocations: 12 kB / 1.085 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00016/0.3129, allocations: 39.91 kB / 1.085 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.546e-05/0.3129, allocations: 11.94 kB / 1.085 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002591/0.3132, allocations: 27.73 kB / 1.085 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002893/0.3135, allocations: 267.5 kB / 1.085 GB, free: 12.11 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.000205/0.3137, allocations: 197.9 kB / 1.085 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.826e-05/0.3138, allocations: 27.66 kB / 1.085 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.497e-05/0.3139, allocations: 38.17 kB / 1.085 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.3139, allocations: 4 kB / 1.085 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.3139, allocations: 4 kB / 1.085 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.3139, allocations: 7.984 kB / 1.085 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002009/0.3159, allocations: 1.719 MB / 1.087 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.3159, allocations: 4 kB / 1.087 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.684e-05/0.316, allocations: 23.91 kB / 1.087 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.316, allocations: 4 kB / 1.087 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.972e-05/0.316, allocations: 19.97 kB / 1.087 GB, free: 10 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.316, allocations: 0 / 1.087 GB, free: 10 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.316, allocations: 4 kB / 1.087 GB, free: 10 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/0.3171, allocations: 1.113 MB / 1.088 GB, free: 8.867 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.588e-05/0.3172, allocations: 112.8 kB / 1.088 GB, free: 8.738 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.911e-05/0.3173, allocations: 8 kB / 1.088 GB, free: 8.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002519/0.3175, allocations: 4 kB / 1.088 GB, free: 8.727 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.276e-05/0.3176, allocations: 59.88 kB / 1.088 GB, free: 8.668 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002877/0.3179, allocations: 279.5 kB / 1.088 GB, free: 8.395 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.00017/0.3181, allocations: 176.4 kB / 1.089 GB, free: 8.223 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.81e-07/0.3181, allocations: 0 / 1.089 GB, free: 8.223 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004797/0.3186, allocations: 60 kB / 1.089 GB, free: 8.164 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.00018/0.3188, allocations: 139.2 kB / 1.089 GB, free: 8.02 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009173/0.3197, allocations: 0.7413 MB / 1.089 GB, free: 7.277 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.3197, allocations: 4.25 kB / 1.089 GB, free: 7.273 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004832/0.3202, allocations: 405.7 kB / 1.09 GB, free: 6.879 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001842/0.3221, allocations: 430 kB / 1.09 GB, free: 6.469 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001215/0.3233, allocations: 1.035 MB / 1.091 GB, free: 5.395 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003162/0.3236, allocations: 0.753 MB / 1.092 GB, free: 4.613 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002784/0.3239, allocations: 99.44 kB / 1.092 GB, free: 4.52 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.324, allocations: 71.31 kB / 1.092 GB, free: 4.449 MB / 0.8419 GB Notification: Performance of SimCode: time 4.31e-07/0.324, allocations: 0 / 1.092 GB, free: 4.449 MB / 0.8419 GB Notification: Performance of Templates: time 0.01443/0.3385, allocations: 8.958 MB / 1.101 GB, free: 11.61 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)