Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 5.469/5.469, allocations: 0.5623 GB / 0.5776 GB, free: 3.328 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002622/0.002622, allocations: 353.3 kB / 0.6447 GB, free: 185.7 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.517/4.517, allocations: 410.7 MB / 1.113 GB, free: 5.996 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00193/0.00193, allocations: 176.1 kB / 1.226 GB, free: 6.188 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0005244/0.0005248, allocations: 16 kB / 1.349 GB, free: 8.301 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7632/0.7638, allocations: 115.3 MB / 1.461 GB, free: 284.4 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType): time 0.0009196/0.7648, allocations: 419.2 kB / 1.462 GB, free: 284 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.0007585/0.7655, allocations: 261.6 kB / 1.462 GB, free: 283.7 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.583e-05/0.7656, allocations: 5.031 kB / 1.462 GB, free: 283.7 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0001114/0.7657, allocations: 3.938 kB / 1.462 GB, free: 283.7 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 6.328e-05/0.7658, allocations: 23.84 kB / 1.462 GB, free: 283.7 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003742/0.7662, allocations: 69.45 kB / 1.462 GB, free: 283.6 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0002588/0.7665, allocations: 197.9 kB / 1.462 GB, free: 283.4 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 6.635e-05/0.7666, allocations: 15.73 kB / 1.462 GB, free: 283.4 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 9.112e-05/0.7667, allocations: 79.83 kB / 1.462 GB, free: 283.3 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001972/0.7669, allocations: 107.7 kB / 1.462 GB, free: 283.2 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 4.638e-05/0.7669, allocations: 9.156 kB / 1.462 GB, free: 283.2 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 4.327e-05/0.767, allocations: 8 kB / 1.463 GB, free: 283.2 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 9.352e-05/0.7671, allocations: 67.8 kB / 1.463 GB, free: 283.1 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 6.096e-05/0.7672, allocations: 62.33 kB / 1.463 GB, free: 283.1 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0002302/0.7674, allocations: 203.6 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.7674, allocations: 0.5312 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.655e-06/0.7674, allocations: 0.7188 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 5.621e-06/0.7674, allocations: 3.938 kB / 1.463 GB, free: 282.9 MB / 0.8542 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.001221/0.7687, allocations: 0.624 MB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.7687, allocations: 11.62 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.315e-05/0.7688, allocations: 39.55 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003406/0.7692, allocations: 258.5 kB / 1.464 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.049e-05/0.7692, allocations: 13.56 kB / 1.464 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.456e-05/0.7693, allocations: 23.98 kB / 1.464 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007548/0.7701, allocations: 458.5 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.7701, allocations: 0 / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.425e-05/0.7701, allocations: 12.53 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.7702, allocations: 4 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005392/0.7707, allocations: 322.5 kB / 1.465 GB, free: 281 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007485/0.7715, allocations: 0.567 MB / 1.465 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001581/0.7731, allocations: 1.019 MB / 1.466 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001032/0.7741, allocations: 0.659 MB / 1.467 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 4.821e-05/0.7742, allocations: 9.469 kB / 1.467 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000779/0.775, allocations: 474 kB / 1.467 GB, free: 278.2 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=37): time 3.116e-06/0.775, allocations: 0 / 1.467 GB, free: 278.2 MB / 0.8542 GB Notification: Performance of matching and sorting (n=37): time 0.001981/0.777, allocations: 1.105 MB / 1.468 GB, free: 277.1 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.375e-05/0.7771, allocations: 149.4 kB / 1.468 GB, free: 276.9 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003179/0.7774, allocations: 249.7 kB / 1.469 GB, free: 276.6 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 4.499e-05/0.7775, allocations: 34.7 kB / 1.469 GB, free: 276.6 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 7.737e-05/0.7776, allocations: 133 kB / 1.469 GB, free: 276.5 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 8.594e-05/0.7777, allocations: 78.94 kB / 1.469 GB, free: 276.4 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.801e-05/0.7777, allocations: 13.91 kB / 1.469 GB, free: 276.4 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 8.234e-05/0.7778, allocations: 338.8 kB / 1.469 GB, free: 276 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005346/0.7783, allocations: 327.6 kB / 1.47 GB, free: 275.7 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005802/0.7789, allocations: 423.5 kB / 1.47 GB, free: 275.3 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00061/0.7795, allocations: 369.2 kB / 1.47 GB, free: 274.9 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/0.7796, allocations: 0 / 1.47 GB, free: 274.9 MB / 0.8542 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001404/0.781, allocations: 0.821 MB / 1.471 GB, free: 274.1 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.781, allocations: 8 kB / 1.471 GB, free: 274.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.781, allocations: 4 kB / 1.471 GB, free: 274.1 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.601e-05/0.7811, allocations: 5.031 kB / 1.471 GB, free: 274.1 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002939/0.7814, allocations: 53.06 kB / 1.471 GB, free: 274.1 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.828e-05/0.7814, allocations: 7.938 kB / 1.471 GB, free: 274 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004348/0.7819, allocations: 28.84 kB / 1.471 GB, free: 274 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003953/0.7823, allocations: 266.6 kB / 1.471 GB, free: 273.8 MB / 0.8542 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 ($PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.skipIDayIncrement,$whenCondition4,dayTypMonThr.sampleTrigger,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],$PRE.dayTypMonThr.iDay,dayTypMonThr.iDay,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.skipIDayIncrement,$whenCondition3,dayTypTwoWeeks.sampleTrigger,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],$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.iDay,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.skipIDayIncrement,$whenCondition2,dayTypSat.sampleTrigger,dayTypSat.y[1],dayTypSat.y[2],$PRE.dayTypSat.iDay,dayTypSat.iDay,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.skipIDayIncrement,$whenCondition1,dayTypMon.sampleTrigger,dayTypMon.y[1],dayTypMon.y[2],$PRE.dayTypMon.iDay,dayTypMon.iDay) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002728/0.7826, allocations: 192.8 kB / 1.472 GB, free: 273.6 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.962e-05/0.7826, allocations: 34.72 kB / 1.472 GB, free: 273.5 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.061e-05/0.7827, allocations: 38.17 kB / 1.472 GB, free: 273.5 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.7828, allocations: 4 kB / 1.472 GB, free: 273.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.7828, allocations: 0 / 1.472 GB, free: 273.5 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 5.566e-05/0.7828, allocations: 100.8 kB / 1.472 GB, free: 273.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.878e-05/0.7829, allocations: 19.98 kB / 1.472 GB, free: 273.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002441/0.7832, allocations: 8 kB / 1.472 GB, free: 273.4 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.7833, allocations: 56.77 kB / 1.472 GB, free: 273.3 MB / 0.8542 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001612/0.785, allocations: 1.123 MB / 1.473 GB, free: 272.2 MB / 0.8542 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001471/0.7865, allocations: 1.205 MB / 1.474 GB, free: 271 MB / 0.8542 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006667/0.7871, allocations: 385.6 kB / 1.475 GB, free: 270.6 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001947/0.7874, allocations: 172.5 kB / 1.475 GB, free: 270.4 MB / 0.8542 GB Notification: Performance of Backend: time 9.32e-07/0.7874, allocations: 4.688 kB / 1.475 GB, free: 270.4 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001447/0.7888, allocations: 498.7 kB / 1.475 GB, free: 269.9 MB / 0.8542 GB Notification: Performance of SimCode: time 0.002259/0.7911, allocations: 1.102 MB / 1.476 GB, free: 268.8 MB / 0.8542 GB Notification: Performance of Templates: time 0.01486/0.806, allocations: 6.492 MB / 1.483 GB, free: 262.6 MB / 0.8542 GB