Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.298/1.298, allocations: 252 MB / 267.9 MB, free: 10.92 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00108/0.00108, allocations: 187.8 kB / 327.6 MB, free: 2.148 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.598/1.598, allocations: 205.4 MB / 0.5785 GB, free: 20.51 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009497/0.0009496, allocations: 94.98 kB / 0.6831 GB, free: 13.28 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003639/0.000364, allocations: 12.12 kB / 0.7974 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.169/0.1694, allocations: 106.3 MB / 0.9012 GB, free: 64.03 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1459/0.3153, allocations: 131.6 MB / 1.03 GB, free: 12.22 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002077/0.3156, allocations: 71.95 kB / 1.03 GB, free: 12.15 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.05287/0.3685, allocations: 22.44 MB / 1.052 GB, free: 5.664 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.934e-06/0.3685, allocations: 0 / 1.052 GB, free: 5.664 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.881e-05/0.3685, allocations: 8 kB / 1.052 GB, free: 5.656 MB / 0.698 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.0008681/0.3694, allocations: 0.6356 MB / 1.052 GB, free: 4.941 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.3695, allocations: 12.03 kB / 1.052 GB, free: 4.93 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.134e-05/0.3695, allocations: 24.66 kB / 1.052 GB, free: 4.906 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002889/0.3698, allocations: 258.8 kB / 1.053 GB, free: 4.617 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.846e-05/0.3699, allocations: 16.66 kB / 1.053 GB, free: 4.602 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.131e-05/0.3699, allocations: 16.38 kB / 1.053 GB, free: 4.586 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005878/0.3705, allocations: 459.5 kB / 1.053 GB, free: 4.121 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.3705, allocations: 4.125 kB / 1.053 GB, free: 4.117 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.128e-05/0.3705, allocations: 7.938 kB / 1.053 GB, free: 4.109 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.3706, allocations: 8 kB / 1.053 GB, free: 4.102 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003602/0.3709, allocations: 323.8 kB / 1.053 GB, free: 3.785 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005832/0.3715, allocations: 0.5625 MB / 1.054 GB, free: 3.164 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.3726, allocations: 1.025 MB / 1.055 GB, free: 2.102 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006711/0.3733, allocations: 0.6558 MB / 1.056 GB, free: 1.438 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/0.3733, allocations: 4 kB / 1.056 GB, free: 1.434 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005308/0.3738, allocations: 494 kB / 1.056 GB, free: 0.9258 MB / 0.698 GB Notification: Performance of pre-optimization done (n=37): time 1.873e-06/0.3739, allocations: 0 / 1.056 GB, free: 0.9258 MB / 0.698 GB Notification: Performance of matching and sorting (n=37): time 0.3418/0.7157, allocations: 1.108 MB / 1.057 GB, free: 154.6 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.829e-05/0.7158, allocations: 140.5 kB / 1.057 GB, free: 154.4 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003238/0.7162, allocations: 249.5 kB / 1.058 GB, free: 154.3 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 7.379e-05/0.7162, allocations: 38.3 kB / 1.058 GB, free: 154.3 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 6.052e-05/0.7163, allocations: 125 kB / 1.058 GB, free: 154.2 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 9.109e-05/0.7164, allocations: 75.8 kB / 1.058 GB, free: 154.2 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.877e-05/0.7164, allocations: 6.969 kB / 1.058 GB, free: 154.2 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.98e-05/0.7165, allocations: 342.6 kB / 1.058 GB, free: 153.9 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004144/0.7169, allocations: 332.2 kB / 1.058 GB, free: 153.9 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003836/0.7173, allocations: 422.7 kB / 1.059 GB, free: 153.8 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007365/0.7181, allocations: 0.7629 MB / 1.06 GB, free: 153.7 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.7181, allocations: 0 / 1.06 GB, free: 153.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008971/0.719, allocations: 0.8284 MB / 1.06 GB, free: 153.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.719, allocations: 8 kB / 1.06 GB, free: 153.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.719, allocations: 3.906 kB / 1.06 GB, free: 153.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.7191, allocations: 11.23 kB / 1.06 GB, free: 153.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.7192, allocations: 43.95 kB / 1.061 GB, free: 153.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.7192, allocations: 5.781 kB / 1.061 GB, free: 153.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002075/0.7194, allocations: 19.02 kB / 1.061 GB, free: 153.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001989/0.7197, allocations: 210.4 kB / 1.061 GB, free: 153.7 MB / 0.698 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.0001821/0.7198, allocations: 202.7 kB / 1.061 GB, free: 153.5 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.04e-05/0.7199, allocations: 30.72 kB / 1.061 GB, free: 153.5 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.582e-05/0.72, allocations: 38.28 kB / 1.061 GB, free: 153.5 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/0.72, allocations: 5.812 kB / 1.061 GB, free: 153.5 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.72, allocations: 0 / 1.061 GB, free: 153.5 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.72, allocations: 6.094 kB / 1.061 GB, free: 153.5 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001588/0.7216, allocations: 1.699 MB / 1.063 GB, free: 153 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.7216, allocations: 3.719 kB / 1.063 GB, free: 153 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.876e-05/0.7217, allocations: 23.62 kB / 1.063 GB, free: 153 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.7217, allocations: 7 kB / 1.063 GB, free: 153 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.495e-05/0.7217, allocations: 22.14 kB / 1.063 GB, free: 153 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.7217, allocations: 6.281 kB / 1.063 GB, free: 153 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.7217, allocations: 2.594 kB / 1.063 GB, free: 153 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009817/0.7227, allocations: 1.116 MB / 1.064 GB, free: 152.6 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.203e-05/0.7228, allocations: 102.9 kB / 1.064 GB, free: 152.5 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.258e-05/0.7229, allocations: 13.69 kB / 1.064 GB, free: 152.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.7231, allocations: 7.5 kB / 1.064 GB, free: 152.5 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.7232, allocations: 52.92 kB / 1.064 GB, free: 152.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002843/0.7235, allocations: 218.5 kB / 1.064 GB, free: 152.5 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001369/0.7236, allocations: 173.5 kB / 1.064 GB, free: 152.4 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7236, allocations: 4 kB / 1.064 GB, free: 152.4 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004747/0.7241, allocations: 67.2 kB / 1.064 GB, free: 152.4 MB / 0.698 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.0001477/0.7243, allocations: 136.2 kB / 1.065 GB, free: 152.3 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00108/0.7254, allocations: 0.733 MB / 1.065 GB, free: 152.3 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.7254, allocations: 0.75 kB / 1.065 GB, free: 152.3 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005916/0.726, allocations: 411.2 kB / 1.066 GB, free: 152.3 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00157/0.7275, allocations: 363.4 kB / 1.066 GB, free: 152.3 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001405/0.729, allocations: 1.022 MB / 1.067 GB, free: 152 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002139/0.7292, allocations: 0.7626 MB / 1.068 GB, free: 151.3 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.000285/0.7295, allocations: 91.77 kB / 1.068 GB, free: 151.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.7296, allocations: 68.48 kB / 1.068 GB, free: 151.3 MB / 0.698 GB Notification: Performance of SimCode: time 5.31e-07/0.7296, allocations: 4 kB / 1.068 GB, free: 151.3 MB / 0.698 GB Notification: Performance of Templates: time 0.01193/0.7416, allocations: 8.138 MB / 1.076 GB, free: 150 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)