Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.632/2.632, allocations: 285 MB / 292.5 MB, free: 10.54 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001438/0.001438, allocations: 168.9 kB / 360.7 MB, free: 7.27 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.086/2.086, allocations: 205.2 MB / 0.6192 GB, free: 12.11 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001074/0.001074, allocations: 92.83 kB / 0.7322 GB, free: 44.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.226e-05/2.24e-05, allocations: 4 kB / 0.8509 GB, free: 3.34 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8412/0.8412, allocations: 115.3 MB / 0.9634 GB, free: 78.64 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2763/1.118, allocations: 136.7 MB / 1.097 GB, free: 3.754 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003386/1.118, allocations: 64.97 kB / 1.097 GB, free: 3.691 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.1144/1.232, allocations: 22.08 MB / 1.119 GB, free: 13.7 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.703e-06/1.232, allocations: 0 / 1.119 GB, free: 13.7 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.343e-05/1.233, allocations: 4.5 kB / 1.119 GB, free: 13.7 MB / 0.7292 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.001337/1.234, allocations: 0.601 MB / 1.119 GB, free: 13.02 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/1.234, allocations: 8.031 kB / 1.119 GB, free: 13.02 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001051/1.234, allocations: 32.55 kB / 1.119 GB, free: 12.98 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004898/1.235, allocations: 250.4 kB / 1.119 GB, free: 12.7 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.704e-05/1.235, allocations: 8.625 kB / 1.119 GB, free: 12.69 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.463e-05/1.235, allocations: 12 kB / 1.119 GB, free: 12.68 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006271/1.235, allocations: 307.4 kB / 1.12 GB, free: 12.38 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008637/1.236, allocations: 443.3 kB / 1.12 GB, free: 11.94 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/1.236, allocations: 3.375 kB / 1.12 GB, free: 11.94 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-05/1.236, allocations: 0 / 1.12 GB, free: 11.94 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.81e-05/1.236, allocations: 4.781 kB / 1.12 GB, free: 11.93 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0022/1.239, allocations: 0.5182 MB / 1.121 GB, free: 11.38 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00188/1.24, allocations: 1.008 MB / 1.122 GB, free: 10.33 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00121/1.242, allocations: 0.6431 MB / 1.122 GB, free: 9.68 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 5.035e-05/1.242, allocations: 7.984 kB / 1.122 GB, free: 9.672 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008953/1.243, allocations: 462.3 kB / 1.123 GB, free: 9.195 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 3.306e-06/1.243, allocations: 0 / 1.123 GB, free: 9.195 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.001766/1.245, allocations: 0.7645 MB / 1.123 GB, free: 8.426 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/1.245, allocations: 144.4 kB / 1.124 GB, free: 8.254 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003356/1.245, allocations: 220.3 kB / 1.124 GB, free: 8.031 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.891e-05/1.245, allocations: 29.69 kB / 1.124 GB, free: 7.996 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.000117/1.245, allocations: 124.9 kB / 1.124 GB, free: 7.867 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/1.245, allocations: 67.08 kB / 1.124 GB, free: 7.801 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.391e-05/1.245, allocations: 0 / 1.124 GB, free: 7.801 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001774/1.246, allocations: 338.8 kB / 1.124 GB, free: 7.461 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006268/1.246, allocations: 324.7 kB / 1.125 GB, free: 7.145 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006955/1.247, allocations: 401.6 kB / 1.125 GB, free: 6.719 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007157/1.248, allocations: 359.8 kB / 1.125 GB, free: 6.367 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.243e-06/1.248, allocations: 8 kB / 1.125 GB, free: 6.359 MB / 0.7292 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001689/1.249, allocations: 0.7896 MB / 1.126 GB, free: 5.566 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.902e-05/1.249, allocations: 10.19 kB / 1.126 GB, free: 5.559 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.789e-06/1.249, allocations: 0 / 1.126 GB, free: 5.559 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.659e-05/1.249, allocations: 8 kB / 1.126 GB, free: 5.551 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002571/1.25, allocations: 39.84 kB / 1.126 GB, free: 5.512 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.583e-05/1.25, allocations: 10.64 kB / 1.126 GB, free: 5.504 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004042/1.25, allocations: 15.92 kB / 1.126 GB, free: 5.488 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004202/1.251, allocations: 203.6 kB / 1.126 GB, free: 5.289 MB / 0.7292 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 () * 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.0002228/1.251, allocations: 147.7 kB / 1.127 GB, free: 5.137 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.01e-05/1.251, allocations: 27.62 kB / 1.127 GB, free: 5.109 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001285/1.251, allocations: 33.95 kB / 1.127 GB, free: 5.078 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/1.251, allocations: 4 kB / 1.127 GB, free: 5.074 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.898e-06/1.251, allocations: 4 kB / 1.127 GB, free: 5.07 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/1.251, allocations: 0 / 1.127 GB, free: 5.07 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003049/1.254, allocations: 1.645 MB / 1.128 GB, free: 3.379 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/1.254, allocations: 0.6562 kB / 1.128 GB, free: 3.379 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.981e-05/1.254, allocations: 27.91 kB / 1.128 GB, free: 3.352 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-05/1.254, allocations: 11.94 kB / 1.128 GB, free: 3.34 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.854e-05/1.254, allocations: 19.97 kB / 1.128 GB, free: 3.32 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/1.254, allocations: 0 / 1.128 GB, free: 3.32 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/1.254, allocations: 3.25 kB / 1.128 GB, free: 3.32 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001769/1.256, allocations: 1.119 MB / 1.129 GB, free: 2.164 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/1.256, allocations: 107.4 kB / 1.13 GB, free: 2.043 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.849e-05/1.256, allocations: 4 kB / 1.13 GB, free: 2.039 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003865/1.257, allocations: 11.94 kB / 1.13 GB, free: 2.027 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001636/1.257, allocations: 55.88 kB / 1.13 GB, free: 1.973 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004512/1.257, allocations: 225.3 kB / 1.13 GB, free: 1.754 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002488/1.258, allocations: 160.5 kB / 1.13 GB, free: 1.594 MB / 0.7292 GB Notification: Performance of sort global known variables: time 4.71e-07/1.258, allocations: 0 / 1.13 GB, free: 1.594 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0007256/1.258, allocations: 48 kB / 1.13 GB, free: 1.547 MB / 0.7292 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) * 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.0002581/1.259, allocations: 126.3 kB / 1.13 GB, free: 1.414 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.00149/1.26, allocations: 0.7116 MB / 1.131 GB, free: 0.7031 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/1.26, allocations: 4.062 kB / 1.131 GB, free: 0.6992 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0007975/1.261, allocations: 395.7 kB / 1.131 GB, free: 320 kB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002604/1.264, allocations: 359.9 kB / 1.132 GB, free: 15.98 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001929/1.266, allocations: 0.8506 MB / 1.132 GB, free: 15.09 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000495/1.266, allocations: 0.7608 MB / 1.133 GB, free: 14.31 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0005825/1.267, allocations: 100.8 kB / 1.133 GB, free: 14.22 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001991/1.267, allocations: 67.38 kB / 1.133 GB, free: 14.15 MB / 0.7448 GB Notification: Performance of SimCode: time 1.303e-06/1.267, allocations: 0 / 1.133 GB, free: 14.15 MB / 0.7448 GB Notification: Performance of Templates: time 0.03188/1.299, allocations: 7.7 MB / 1.141 GB, free: 6.578 MB / 0.7448 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)