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.001137/0.001137, 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.001231/0.001232, allocations: 195.3 kB / 16.14 MB, free: 6.688 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.377/1.377, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.9/2.9, allocations: 472.6 MB / 0.7447 GB, free: 4.906 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001799/0.001799, allocations: 62.91 kB / 0.9114 GB, free: 33.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3419, allocations: 159.9 MB / 1.068 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType): time 0.002067/0.344, allocations: 0.741 MB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0005973/0.3446, allocations: 271.2 kB / 1.069 GB, free: 9.848 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.563e-05/0.3447, allocations: 4 kB / 1.069 GB, free: 9.844 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001205/0.3448, allocations: 7.922 kB / 1.069 GB, free: 9.836 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.524e-05/0.3449, allocations: 19.86 kB / 1.069 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003326/0.3452, allocations: 87.83 kB / 1.069 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002671/0.3455, allocations: 224 kB / 1.069 GB, free: 9.512 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.563e-05/0.3456, allocations: 9.125 kB / 1.069 GB, free: 9.504 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.445e-05/0.3457, allocations: 75.81 kB / 1.069 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001403/0.3458, allocations: 99.69 kB / 1.069 GB, free: 9.332 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.048e-05/0.3459, allocations: 12 kB / 1.069 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.833e-05/0.3459, allocations: 8 kB / 1.069 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.346, allocations: 79.72 kB / 1.069 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.3461, allocations: 107.3 kB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000252/0.3464, allocations: 275 kB / 1.069 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3464, allocations: 0 / 1.069 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.82e-07/0.3464, allocations: 0 / 1.069 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.145e-05/0.3464, allocations: 0 / 1.069 GB, free: 8.859 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.0009711/0.3474, allocations: 0.7099 MB / 1.07 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.3474, allocations: 12.02 kB / 1.07 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.218e-05/0.3475, allocations: 28.56 kB / 1.07 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002851/0.3478, allocations: 258.9 kB / 1.07 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.694e-05/0.3478, allocations: 12.66 kB / 1.07 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.829e-05/0.3479, allocations: 24.36 kB / 1.07 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005761/0.3485, allocations: 467.1 kB / 1.071 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.3485, allocations: 192 / 1.071 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.533e-05/0.3485, allocations: 11.94 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.3485, allocations: 4 kB / 1.071 GB, free: 7.211 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003757/0.3489, allocations: 323.8 kB / 1.071 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005847/0.3495, allocations: 0.5585 MB / 1.072 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001142/0.3507, allocations: 1.035 MB / 1.073 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006977/0.3514, allocations: 0.6593 MB / 1.073 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.117e-05/0.3514, allocations: 15.98 kB / 1.073 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006011/0.352, allocations: 472.2 kB / 1.074 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=37): time 4.088e-06/0.352, allocations: 0 / 1.074 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of matching and sorting (n=37): time 0.001405/0.3534, allocations: 1.116 MB / 1.075 GB, free: 2.914 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.351e-05/0.3535, allocations: 152.4 kB / 1.075 GB, free: 2.734 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002198/0.3538, allocations: 252.8 kB / 1.075 GB, free: 2.48 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.978e-05/0.3538, allocations: 37.69 kB / 1.075 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.262e-05/0.3539, allocations: 125.1 kB / 1.076 GB, free: 2.312 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.533e-05/0.354, allocations: 79.14 kB / 1.076 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001683/0.3541, allocations: 110.1 kB / 1.076 GB, free: 2.117 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001557/0.3543, allocations: 338.8 kB / 1.076 GB, free: 1.777 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005966/0.3549, allocations: 332.7 kB / 1.076 GB, free: 1.453 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005707/0.3555, allocations: 422.5 kB / 1.077 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008441/0.3563, allocations: 0.7655 MB / 1.078 GB, free: 212 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.3564, allocations: 0 / 1.078 GB, free: 212 kB / 0.8262 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009953/0.3574, allocations: 0.8326 MB / 1.078 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.3574, allocations: 11.94 kB / 1.078 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.3574, allocations: 4.312 kB / 1.078 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.3574, allocations: 4 kB / 1.078 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001612/0.3576, allocations: 44.45 kB / 1.078 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.395e-05/0.3576, allocations: 7.938 kB / 1.078 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000234/0.3579, allocations: 31.69 kB / 1.078 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002878/0.3581, allocations: 275.5 kB / 1.079 GB, free: 15 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.0002063/0.3584, allocations: 197.6 kB / 1.079 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.561e-05/0.3584, allocations: 27.66 kB / 1.079 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.529e-05/0.3585, allocations: 38.17 kB / 1.079 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.952e-06/0.3585, allocations: 8 kB / 1.079 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.856e-06/0.3585, allocations: 0 / 1.079 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.3586, allocations: 0 / 1.079 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001972/0.3605, allocations: 1.723 MB / 1.081 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.3605, allocations: 0 / 1.081 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.364e-05/0.3606, allocations: 19.91 kB / 1.081 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.3606, allocations: 4 kB / 1.081 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.736e-05/0.3607, allocations: 27.95 kB / 1.081 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/0.3607, allocations: 4 kB / 1.081 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.3607, allocations: 0 / 1.081 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.3617, allocations: 1.117 MB / 1.082 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.721e-05/0.3618, allocations: 104.7 kB / 1.082 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.699e-05/0.3619, allocations: 15.98 kB / 1.082 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002406/0.3621, allocations: 4 kB / 1.082 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.3622, allocations: 51.94 kB / 1.082 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002582/0.3625, allocations: 279.5 kB / 1.082 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000147/0.3626, allocations: 184.4 kB / 1.082 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3626, allocations: 0 / 1.082 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004559/0.3631, allocations: 56 kB / 1.082 GB, free: 11.05 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.0001687/0.3633, allocations: 131.2 kB / 1.083 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009413/0.3642, allocations: 0.7452 MB / 1.083 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3642, allocations: 3.938 kB / 1.083 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005319/0.3648, allocations: 413.3 kB / 1.084 GB, free: 9.758 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001701/0.3665, allocations: 423.2 kB / 1.084 GB, free: 9.359 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001322/0.3678, allocations: 1.031 MB / 1.085 GB, free: 8.289 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003251/0.3682, allocations: 0.7647 MB / 1.086 GB, free: 7.496 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003104/0.3685, allocations: 90.89 kB / 1.086 GB, free: 7.41 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.3686, allocations: 67.38 kB / 1.086 GB, free: 7.344 MB / 0.8419 GB Notification: Performance of SimCode: time 3.11e-07/0.3686, allocations: 0 / 1.086 GB, free: 7.344 MB / 0.8419 GB Notification: Performance of Templates: time 0.01597/0.3846, allocations: 8.983 MB / 1.095 GB, free: 14.47 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)