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 4.994/4.994, allocations: 0.5623 GB / 0.5775 GB, free: 3.391 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.002478/0.002478, allocations: 359.5 kB / 0.6446 GB, free: 185.6 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.216/4.216, allocations: 410.7 MB / 1.113 GB, free: 6.02 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.001863/0.001863, allocations: 188.9 kB / 1.226 GB, free: 6.141 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0004934/0.0004936, allocations: 12 kB / 1.349 GB, free: 8.258 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7275/0.728, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.197/0.9251, allocations: 137.5 MB / 1.596 GB, free: 146.7 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002348/0.9254, allocations: 69.05 kB / 1.596 GB, free: 146.7 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.08768/1.013, allocations: 22.26 MB / 1.617 GB, free: 124.6 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.074e-06/1.013, allocations: 4 kB / 1.617 GB, free: 124.6 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 1.904e-05/1.013, allocations: 4 kB / 1.617 GB, free: 124.6 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.001173/1.014, allocations: 0.6323 MB / 1.618 GB, free: 123.9 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/1.014, allocations: 12.62 kB / 1.618 GB, free: 123.9 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.3e-05/1.014, allocations: 35.61 kB / 1.618 GB, free: 123.8 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003775/1.015, allocations: 247.2 kB / 1.618 GB, free: 123.5 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.008e-05/1.015, allocations: 24.2 kB / 1.618 GB, free: 123.5 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.582e-05/1.015, allocations: 16 kB / 1.618 GB, free: 123.5 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007446/1.016, allocations: 451.2 kB / 1.619 GB, free: 123 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/1.016, allocations: 2.781 kB / 1.619 GB, free: 123 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.217e-05/1.016, allocations: 7.984 kB / 1.619 GB, free: 123 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/1.016, allocations: 4 kB / 1.619 GB, free: 123 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005269/1.016, allocations: 321.3 kB / 1.619 GB, free: 122.7 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007221/1.017, allocations: 0.5519 MB / 1.62 GB, free: 122.1 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001569/1.019, allocations: 1.05 MB / 1.621 GB, free: 121 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001027/1.02, allocations: 0.6597 MB / 1.621 GB, free: 120.4 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 4.645e-05/1.02, allocations: 7.984 kB / 1.621 GB, free: 120.4 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007336/1.021, allocations: 474.3 kB / 1.622 GB, free: 119.9 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=37): time 2.615e-06/1.021, allocations: 0 / 1.622 GB, free: 119.9 MB / 0.8542 GB Notification: Performance of matching and sorting (n=37): time 0.00199/1.023, allocations: 1.107 MB / 1.623 GB, free: 118.8 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.441e-05/1.023, allocations: 144.5 kB / 1.623 GB, free: 118.6 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003185/1.023, allocations: 246.5 kB / 1.623 GB, free: 118.4 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 4.937e-05/1.023, allocations: 41.69 kB / 1.623 GB, free: 118.3 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 7.081e-05/1.023, allocations: 121.1 kB / 1.623 GB, free: 118.2 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 9.213e-05/1.023, allocations: 79.5 kB / 1.623 GB, free: 118.1 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.777e-05/1.023, allocations: 8.781 kB / 1.623 GB, free: 118.1 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 8.222e-05/1.023, allocations: 344.7 kB / 1.624 GB, free: 117.8 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005282/1.024, allocations: 330.5 kB / 1.624 GB, free: 117.4 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005729/1.024, allocations: 427.2 kB / 1.624 GB, free: 117 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006048/1.025, allocations: 357.3 kB / 1.625 GB, free: 116.7 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/1.025, allocations: 0 / 1.625 GB, free: 116.7 MB / 0.8542 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00142/1.027, allocations: 0.8348 MB / 1.626 GB, free: 115.8 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/1.027, allocations: 5.062 kB / 1.626 GB, free: 115.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/1.027, allocations: 4 kB / 1.626 GB, free: 115.8 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.322e-05/1.027, allocations: 4 kB / 1.626 GB, free: 115.8 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002747/1.027, allocations: 48.42 kB / 1.626 GB, free: 115.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.425e-05/1.027, allocations: 8.719 kB / 1.626 GB, free: 115.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000399/1.027, allocations: 16.66 kB / 1.626 GB, free: 115.7 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003303/1.028, allocations: 215.2 kB / 1.626 GB, free: 115.5 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.0002904/1.028, allocations: 193.1 kB / 1.626 GB, free: 115.3 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.147e-05/1.028, allocations: 27.7 kB / 1.626 GB, free: 115.3 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.341e-05/1.028, allocations: 34.19 kB / 1.626 GB, free: 115.3 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/1.028, allocations: 12.22 kB / 1.626 GB, free: 115.3 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/1.028, allocations: 0 / 1.626 GB, free: 115.3 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.936e-06/1.028, allocations: 7.969 kB / 1.626 GB, free: 115.3 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002517/1.031, allocations: 1.706 MB / 1.628 GB, free: 113.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.695e-05/1.031, allocations: 0 / 1.628 GB, free: 113.5 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.651e-05/1.031, allocations: 25.03 kB / 1.628 GB, free: 113.5 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.508e-06/1.031, allocations: 4 kB / 1.628 GB, free: 113.5 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.237e-05/1.031, allocations: 15.98 kB / 1.628 GB, free: 113.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.732e-06/1.031, allocations: 5.281 kB / 1.628 GB, free: 113.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/1.031, allocations: 3.984 kB / 1.628 GB, free: 113.5 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001387/1.032, allocations: 1.117 MB / 1.629 GB, free: 112.3 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 6.679e-05/1.033, allocations: 100.7 kB / 1.629 GB, free: 112.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.965e-05/1.033, allocations: 8 kB / 1.629 GB, free: 112.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003715/1.033, allocations: 12.12 kB / 1.629 GB, free: 112.2 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/1.033, allocations: 57.56 kB / 1.629 GB, free: 112.1 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003335/1.033, allocations: 215.1 kB / 1.629 GB, free: 111.9 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0002093/1.034, allocations: 173.1 kB / 1.63 GB, free: 111.8 MB / 0.8542 GB Notification: Performance of sort global known variables: time 4.11e-07/1.034, allocations: 4 kB / 1.63 GB, free: 111.8 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0006461/1.034, allocations: 65.62 kB / 1.63 GB, free: 111.7 MB / 0.8542 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000191/1.035, allocations: 144.2 kB / 1.63 GB, free: 111.6 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001298/1.036, allocations: 0.7294 MB / 1.63 GB, free: 110.8 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/1.036, allocations: 0 / 1.63 GB, free: 110.8 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0006992/1.037, allocations: 405 kB / 1.631 GB, free: 110.4 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002701/1.039, allocations: 377 kB / 1.631 GB, free: 110.1 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001817/1.041, allocations: 1.022 MB / 1.632 GB, free: 109.1 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002557/1.041, allocations: 0.7674 MB / 1.633 GB, free: 108.3 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0004911/1.042, allocations: 100.4 kB / 1.633 GB, free: 108.2 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001798/1.042, allocations: 67.38 kB / 1.633 GB, free: 108.1 MB / 0.8542 GB Notification: Performance of SimCode: time 8.02e-07/1.042, allocations: 0 / 1.633 GB, free: 108.1 MB / 0.8542 GB Notification: Performance of Templates: time 0.01829/1.06, allocations: 8.038 MB / 1.641 GB, free: 100.3 MB / 0.8542 GB