Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001876/0.001876, allocations: 190.7 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.074/2.074, allocations: 205.1 MB / 222.1 MB, free: 4.684 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.749/1.749, allocations: 251.7 MB / 0.5089 GB, free: 3.34 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001498, allocations: 71.89 kB / 0.6217 GB, free: 1.895 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7686/0.7701, allocations: 104.7 MB / 0.724 GB, free: 13.12 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.00351/0.7738, allocations: 1.477 MB / 0.7254 GB, free: 11.64 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0007469/0.7745, allocations: 279.1 kB / 0.7257 GB, free: 11.36 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.763e-05/0.7746, allocations: 3.938 kB / 0.7257 GB, free: 11.36 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001742/0.7748, allocations: 11.92 kB / 0.7257 GB, free: 11.35 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.05e-05/0.7749, allocations: 19.86 kB / 0.7257 GB, free: 11.33 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004215/0.7753, allocations: 86.53 kB / 0.7258 GB, free: 11.25 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003262/0.7756, allocations: 228 kB / 0.726 GB, free: 11.02 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 9.664e-05/0.7757, allocations: 13.11 kB / 0.726 GB, free: 11.01 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 9.691e-05/0.7758, allocations: 83.81 kB / 0.7261 GB, free: 10.93 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001904/0.776, allocations: 107.7 kB / 0.7262 GB, free: 10.82 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.525e-05/0.7761, allocations: 16 kB / 0.7262 GB, free: 10.8 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 3.939e-05/0.7761, allocations: 20 kB / 0.7263 GB, free: 10.79 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001277/0.7763, allocations: 91.72 kB / 0.7263 GB, free: 10.7 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001437/0.7764, allocations: 111.4 kB / 0.7264 GB, free: 10.59 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003094/0.7767, allocations: 241.2 kB / 0.7267 GB, free: 10.35 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.7768, allocations: 0 / 0.7267 GB, free: 10.35 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.216e-06/0.7768, allocations: 0 / 0.7267 GB, free: 10.35 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.259e-05/0.7768, allocations: 0 / 0.7267 GB, free: 10.35 MB / 0.545 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.001237/0.778, allocations: 0.6978 MB / 0.7274 GB, free: 9.574 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/0.7781, allocations: 12.03 kB / 0.7274 GB, free: 9.562 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.747e-05/0.7782, allocations: 24.66 kB / 0.7274 GB, free: 9.539 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003846/0.7786, allocations: 266.7 kB / 0.7277 GB, free: 9.238 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.125e-05/0.7786, allocations: 16.66 kB / 0.7277 GB, free: 9.223 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.67e-05/0.7787, allocations: 20.38 kB / 0.7277 GB, free: 9.203 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006981/0.7794, allocations: 459.3 kB / 0.7281 GB, free: 8.738 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.7794, allocations: 192 / 0.7281 GB, free: 8.738 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.202e-05/0.7795, allocations: 11.92 kB / 0.7281 GB, free: 8.727 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.7795, allocations: 4 kB / 0.7281 GB, free: 8.723 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004326/0.7799, allocations: 323.8 kB / 0.7284 GB, free: 8.406 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007234/0.7806, allocations: 0.5663 MB / 0.729 GB, free: 7.781 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.782, allocations: 1.033 MB / 0.73 GB, free: 6.711 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007923/0.7828, allocations: 0.6586 MB / 0.7307 GB, free: 6.043 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 4.982e-05/0.7828, allocations: 7.984 kB / 0.7307 GB, free: 6.035 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007506/0.7836, allocations: 486.3 kB / 0.7311 GB, free: 5.535 MB / 0.545 GB Notification: Performance of pre-optimization done (n=37): time 1.674e-06/0.7836, allocations: 4 kB / 0.7311 GB, free: 5.531 MB / 0.545 GB Notification: Performance of matching and sorting (n=37): time 0.001614/0.7852, allocations: 1.112 MB / 0.7322 GB, free: 4.414 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.7853, allocations: 144.5 kB / 0.7324 GB, free: 4.242 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002879/0.7856, allocations: 256.7 kB / 0.7326 GB, free: 3.984 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.817e-05/0.7857, allocations: 37.7 kB / 0.7326 GB, free: 3.941 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.801e-05/0.7858, allocations: 117.1 kB / 0.7327 GB, free: 3.82 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.7859, allocations: 90.92 kB / 0.7328 GB, free: 3.73 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001655/0.7861, allocations: 110.1 kB / 0.7329 GB, free: 3.617 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001988/0.7863, allocations: 342.8 kB / 0.7333 GB, free: 3.273 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004104/0.7867, allocations: 328.7 kB / 0.7336 GB, free: 2.953 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004943/0.7872, allocations: 422.5 kB / 0.734 GB, free: 2.504 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009555/0.7882, allocations: 0.7712 MB / 0.7347 GB, free: 1.695 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.7882, allocations: 0 / 0.7347 GB, free: 1.695 MB / 0.545 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001112/0.7893, allocations: 0.8212 MB / 0.7355 GB, free: 0.8672 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.779e-05/0.7893, allocations: 11.94 kB / 0.7355 GB, free: 0.8555 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.7893, allocations: 0 / 0.7355 GB, free: 0.8555 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.254e-05/0.7894, allocations: 16.16 kB / 0.7356 GB, free: 0.8398 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002123/0.7896, allocations: 39.84 kB / 0.7356 GB, free: 0.8008 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.766e-05/0.7896, allocations: 8.297 kB / 0.7356 GB, free: 0.793 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002735/0.7899, allocations: 31.75 kB / 0.7356 GB, free: 0.7617 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003562/0.7903, allocations: 272 kB / 0.7359 GB, free: 0.4961 MB / 0.545 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 (dayTypMonThr.skipIDayIncrement,$PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.iDay,$PRE.dayTypMonThr.iDay,dayTypMonThr.y[3],dayTypMonThr.y[2],dayTypMonThr.y[1],dayTypTwoWeeks.skipIDayIncrement,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.iDay,$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.y[14],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[1],dayTypSat.skipIDayIncrement,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.iDay,$PRE.dayTypSat.iDay,dayTypSat.y[2],dayTypSat.y[1],dayTypMon.skipIDayIncrement,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.iDay,$PRE.dayTypMon.iDay,dayTypMon.y[2],dayTypMon.y[1]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002491/0.7905, allocations: 189.6 kB / 0.7361 GB, free: 308 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.852e-05/0.7906, allocations: 35.55 kB / 0.7361 GB, free: 272 kB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.343e-05/0.7907, allocations: 34.19 kB / 0.7361 GB, free: 240 kB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.7907, allocations: 4 kB / 0.7361 GB, free: 236 kB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.3e-05/0.7907, allocations: 8 kB / 0.7362 GB, free: 228 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.7907, allocations: 7.922 kB / 0.7362 GB, free: 220 kB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002252/0.793, allocations: 1.714 MB / 0.7378 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.793, allocations: 4 kB / 0.7378 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.742e-05/0.7931, allocations: 23.91 kB / 0.7379 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.7931, allocations: 8 kB / 0.7379 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.299e-05/0.7931, allocations: 15.98 kB / 0.7379 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.7931, allocations: 0 / 0.7379 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.7931, allocations: 4 kB / 0.7379 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001233/0.7944, allocations: 1.127 MB / 0.739 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.887e-05/0.7945, allocations: 104.7 kB / 0.7391 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.496e-05/0.7945, allocations: 12 kB / 0.7391 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.7948, allocations: 4 kB / 0.7391 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.7949, allocations: 51.94 kB / 0.7392 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003139/0.7952, allocations: 279.4 kB / 0.7394 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001844/0.7954, allocations: 176.4 kB / 0.7396 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7954, allocations: 0 / 0.7396 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004878/0.7959, allocations: 60 kB / 0.7396 GB, free: 12.55 MB / 0.5606 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002111/0.7961, allocations: 142.6 kB / 0.7398 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001105/0.7972, allocations: 0.769 MB / 0.7405 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.7972, allocations: 0 / 0.7405 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005227/0.7978, allocations: 404 kB / 0.7409 GB, free: 11.24 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001674/0.7995, allocations: 372.7 kB / 0.7413 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001576/0.801, allocations: 1.041 MB / 0.7423 GB, free: 9.836 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004747/0.8015, allocations: 0.7569 MB / 0.743 GB, free: 9.051 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002817/0.8018, allocations: 82.94 kB / 0.7431 GB, free: 8.973 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000152/0.802, allocations: 75.38 kB / 0.7432 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of SimCode: time 2.21e-07/0.802, allocations: 3.938 kB / 0.7432 GB, free: 8.898 MB / 0.5606 GB Notification: Performance of Templates: time 0.01455/0.8165, allocations: 8.776 MB / 0.7518 GB, free: 240 kB / 0.5606 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)