Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Sources.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.Sources.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.596/1.596, allocations: 297.8 MB / 313.7 MB, free: 136 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 187 kB / 384.6 MB, free: 10.85 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 223.2 MB / 0.6626 GB, free: 4.359 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008779/0.0008779, allocations: 96.31 kB / 0.7808 GB, free: 43.52 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0004051/0.0004053, allocations: 12 kB / 0.9088 GB, free: 0.7109 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6377/0.6381, allocations: 120.3 MB / 1.026 GB, free: 56.27 MB / 0.698 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1861/0.8243, allocations: 141.9 MB / 1.165 GB, free: 388 kB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002827/0.8246, allocations: 75.95 kB / 1.165 GB, free: 312 kB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.04777/0.8724, allocations: 19.01 MB / 1.183 GB, free: 13.38 MB / 0.7605 GB Notification: Performance of FrontEnd: time 2.394e-06/0.8724, allocations: 1.125 kB / 1.183 GB, free: 13.38 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 1.967e-05/0.8725, allocations: 4 kB / 1.183 GB, free: 13.37 MB / 0.7605 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.000967/0.8734, allocations: 0.6346 MB / 1.184 GB, free: 12.65 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.8735, allocations: 8.031 kB / 1.184 GB, free: 12.64 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.017e-05/0.8736, allocations: 32.56 kB / 1.184 GB, free: 12.61 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003195/0.8739, allocations: 247.1 kB / 1.184 GB, free: 12.33 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.552e-05/0.874, allocations: 16.59 kB / 1.184 GB, free: 12.32 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.333e-05/0.874, allocations: 20.38 kB / 1.184 GB, free: 12.3 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005505/0.8746, allocations: 455.2 kB / 1.185 GB, free: 11.84 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.8746, allocations: 4.172 kB / 1.185 GB, free: 11.83 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.426e-05/0.8746, allocations: 11.88 kB / 1.185 GB, free: 11.82 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.8746, allocations: 4 kB / 1.185 GB, free: 11.82 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003903/0.875, allocations: 323.8 kB / 1.185 GB, free: 11.5 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000633/0.8757, allocations: 0.5586 MB / 1.186 GB, free: 10.88 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/0.8768, allocations: 1.029 MB / 1.187 GB, free: 9.816 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007105/0.8775, allocations: 0.6593 MB / 1.187 GB, free: 9.148 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 2.889e-05/0.8776, allocations: 8 kB / 1.187 GB, free: 9.141 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005319/0.8781, allocations: 477.1 kB / 1.188 GB, free: 8.652 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=37): time 1.573e-06/0.8781, allocations: 4 kB / 1.188 GB, free: 8.648 MB / 0.7605 GB Notification: Performance of matching and sorting (n=37): time 0.001375/0.8795, allocations: 1.116 MB / 1.189 GB, free: 7.527 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.78e-05/0.8796, allocations: 140.5 kB / 1.189 GB, free: 7.359 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002425/0.8799, allocations: 252.8 kB / 1.189 GB, free: 7.105 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 3.838e-05/0.8799, allocations: 37.7 kB / 1.189 GB, free: 7.062 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 7.719e-05/0.88, allocations: 121.1 kB / 1.189 GB, free: 6.941 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 7.627e-05/0.8801, allocations: 75.06 kB / 1.189 GB, free: 6.867 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.634e-05/0.8801, allocations: 8 kB / 1.19 GB, free: 6.859 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.8802, allocations: 350.8 kB / 1.19 GB, free: 6.508 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004102/0.8806, allocations: 328.7 kB / 1.19 GB, free: 6.188 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004274/0.8811, allocations: 424.2 kB / 1.191 GB, free: 5.738 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008366/0.8819, allocations: 0.7611 MB / 1.191 GB, free: 4.941 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.8819, allocations: 0 / 1.191 GB, free: 4.941 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009891/0.8829, allocations: 0.8331 MB / 1.192 GB, free: 4.102 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.883, allocations: 11.92 kB / 1.192 GB, free: 4.09 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.883, allocations: 4 kB / 1.192 GB, free: 4.086 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.883, allocations: 4 kB / 1.192 GB, free: 4.082 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/0.8832, allocations: 43.84 kB / 1.192 GB, free: 4.039 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.8832, allocations: 7.938 kB / 1.192 GB, free: 4.031 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001974/0.8834, allocations: 15.98 kB / 1.192 GB, free: 4.016 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002438/0.8836, allocations: 216.2 kB / 1.192 GB, free: 3.805 MB / 0.7605 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.0002091/0.8838, allocations: 197.6 kB / 1.193 GB, free: 3.602 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.253e-05/0.8839, allocations: 31.56 kB / 1.193 GB, free: 3.57 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.356e-05/0.884, allocations: 38.17 kB / 1.193 GB, free: 3.535 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.884, allocations: 4 kB / 1.193 GB, free: 3.531 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.884, allocations: 4 kB / 1.193 GB, free: 3.527 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.884, allocations: 0 / 1.193 GB, free: 3.527 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001904/0.8859, allocations: 1.702 MB / 1.194 GB, free: 1.766 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.8859, allocations: 4 kB / 1.194 GB, free: 1.762 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.989e-05/0.886, allocations: 23.91 kB / 1.194 GB, free: 1.738 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.886, allocations: 4 kB / 1.194 GB, free: 1.734 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.879e-05/0.886, allocations: 19.97 kB / 1.194 GB, free: 1.715 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.886, allocations: 128 / 1.194 GB, free: 1.715 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.886, allocations: 8 kB / 1.194 GB, free: 1.707 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.8871, allocations: 1.121 MB / 1.195 GB, free: 0.5664 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 7.159e-05/0.8872, allocations: 100.7 kB / 1.196 GB, free: 460 kB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.718e-05/0.8872, allocations: 15.98 kB / 1.196 GB, free: 444 kB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002087/0.8874, allocations: 7.938 kB / 1.196 GB, free: 436 kB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.284e-05/0.8875, allocations: 51.94 kB / 1.196 GB, free: 384 kB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002337/0.8878, allocations: 223.5 kB / 1.196 GB, free: 160 kB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0001613/0.8879, allocations: 176.4 kB / 1.196 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8879, allocations: 0 / 1.196 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0004544/0.8884, allocations: 64 kB / 1.196 GB, free: 15.92 MB / 0.7761 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.0001775/0.8886, allocations: 135.7 kB / 1.196 GB, free: 15.78 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0008796/0.8895, allocations: 0.7281 MB / 1.197 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.8895, allocations: 0 / 1.197 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0004761/0.89, allocations: 404 kB / 1.197 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001428/0.8914, allocations: 312.1 kB / 1.198 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00134/0.8928, allocations: 1.022 MB / 1.199 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003611/0.8931, allocations: 0.7608 MB / 1.199 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0002763/0.8934, allocations: 90.92 kB / 1.199 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.8935, allocations: 71.38 kB / 1.2 GB, free: 12.37 MB / 0.7761 GB Notification: Performance of SimCode: time 2.3e-07/0.8936, allocations: 0 / 1.2 GB, free: 12.37 MB / 0.7761 GB Notification: Performance of Templates: time 0.01233/0.9059, allocations: 7.945 MB / 1.207 GB, free: 4.52 MB / 0.7761 GB make -j1 -f Buildings_latest_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_latest_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_latest_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)