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.0009098/0.00091, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.000946/0.000946, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.751/1.751, allocations: 205.4 MB / 222.1 MB, free: 5.641 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.822/1.822, allocations: 252 MB / 0.5102 GB, free: 4.812 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.0005427/0.0005428, allocations: 12 kB / 0.6243 GB, free: 1.113 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.575/0.5755, allocations: 106.3 MB / 0.7281 GB, free: 11.41 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.001721/0.5773, allocations: 1.135 MB / 0.7292 GB, free: 10.27 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0006452/0.578, allocations: 271.3 kB / 0.7295 GB, free: 10 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.668e-05/0.5781, allocations: 0 / 0.7295 GB, free: 10 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001332/0.5782, allocations: 15.86 kB / 0.7295 GB, free: 9.988 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.134e-05/0.5783, allocations: 11.92 kB / 0.7295 GB, free: 9.977 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.000399/0.5787, allocations: 79.11 kB / 0.7296 GB, free: 9.902 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003181/0.579, allocations: 196 kB / 0.7298 GB, free: 9.711 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 6.64e-05/0.5791, allocations: 13.11 kB / 0.7298 GB, free: 9.695 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001185/0.5792, allocations: 83.81 kB / 0.7299 GB, free: 9.613 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001977/0.5794, allocations: 99.75 kB / 0.73 GB, free: 9.516 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 5.59e-05/0.5795, allocations: 8 kB / 0.73 GB, free: 9.508 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 3.416e-05/0.5795, allocations: 8 kB / 0.73 GB, free: 9.5 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 9.969e-05/0.5796, allocations: 79.78 kB / 0.73 GB, free: 9.422 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 7.785e-05/0.5797, allocations: 57.52 kB / 0.7301 GB, free: 9.359 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.000209/0.5799, allocations: 185.6 kB / 0.7303 GB, free: 9.18 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.5799, allocations: 0 / 0.7303 GB, free: 9.18 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.076e-06/0.58, allocations: 0 / 0.7303 GB, free: 9.18 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.239e-05/0.58, allocations: 0 / 0.7303 GB, free: 9.18 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.001097/0.5811, allocations: 0.6315 MB / 0.7309 GB, free: 8.473 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.5811, allocations: 11.97 kB / 0.7309 GB, free: 8.461 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.5812, allocations: 23.72 kB / 0.7309 GB, free: 8.438 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003395/0.5816, allocations: 257.6 kB / 0.7312 GB, free: 8.145 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.534e-05/0.5816, allocations: 16.27 kB / 0.7312 GB, free: 8.129 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.514e-05/0.5817, allocations: 23.94 kB / 0.7312 GB, free: 8.105 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006291/0.5823, allocations: 454.8 kB / 0.7316 GB, free: 7.645 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.5823, allocations: 0 / 0.7316 GB, free: 7.645 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.38e-05/0.5824, allocations: 4 kB / 0.7316 GB, free: 7.641 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.5824, allocations: 8 kB / 0.7317 GB, free: 7.633 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004458/0.5828, allocations: 327.6 kB / 0.732 GB, free: 7.312 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006958/0.5835, allocations: 0.5663 MB / 0.7325 GB, free: 6.688 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.5848, allocations: 1.037 MB / 0.7335 GB, free: 5.613 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007486/0.5855, allocations: 0.6516 MB / 0.7342 GB, free: 4.949 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.948e-05/0.5856, allocations: 4 kB / 0.7342 GB, free: 4.945 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006413/0.5862, allocations: 478.5 kB / 0.7346 GB, free: 4.453 MB / 0.545 GB Notification: Performance of pre-optimization done (n=37): time 1.934e-06/0.5863, allocations: 0 / 0.7346 GB, free: 4.453 MB / 0.545 GB Notification: Performance of matching and sorting (n=37): time 0.001473/0.5877, allocations: 1.104 MB / 0.7357 GB, free: 3.344 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.829e-05/0.5878, allocations: 144.5 kB / 0.7358 GB, free: 3.172 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002597/0.5881, allocations: 260.7 kB / 0.7361 GB, free: 2.91 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.909e-05/0.5882, allocations: 33.7 kB / 0.7361 GB, free: 2.871 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9e-05/0.5883, allocations: 121.1 kB / 0.7362 GB, free: 2.746 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 8.87e-05/0.5884, allocations: 83 kB / 0.7363 GB, free: 2.664 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.396e-05/0.5884, allocations: 4 kB / 0.7363 GB, free: 2.66 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.5885, allocations: 346.8 kB / 0.7367 GB, free: 2.312 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005045/0.589, allocations: 328.7 kB / 0.737 GB, free: 1.992 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004793/0.5895, allocations: 426.4 kB / 0.7374 GB, free: 1.539 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004635/0.59, allocations: 359.8 kB / 0.7377 GB, free: 1.188 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.59, allocations: 0 / 0.7377 GB, free: 1.188 MB / 0.545 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001052/0.5911, allocations: 0.8316 MB / 0.7385 GB, free: 360 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.5911, allocations: 11.94 kB / 0.7385 GB, free: 348 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.5911, allocations: 0 / 0.7385 GB, free: 348 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.06e-05/0.5912, allocations: 8 kB / 0.7386 GB, free: 340 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001802/0.5913, allocations: 47.95 kB / 0.7386 GB, free: 292 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.5914, allocations: 4.312 kB / 0.7386 GB, free: 288 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002503/0.5916, allocations: 27.75 kB / 0.7386 GB, free: 260 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003448/0.592, allocations: 276 kB / 0.7389 GB, free: 15.98 MB / 0.5606 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.0002587/0.5922, allocations: 193.9 kB / 0.7391 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.438e-05/0.5923, allocations: 27.72 kB / 0.7391 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.271e-05/0.5924, allocations: 34.17 kB / 0.7391 GB, free: 15.73 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.5924, allocations: 4 kB / 0.7391 GB, free: 15.72 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.5924, allocations: 4 kB / 0.7391 GB, free: 15.72 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.5924, allocations: 4 kB / 0.7391 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002137/0.5946, allocations: 1.72 MB / 0.7408 GB, free: 13.94 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.5946, allocations: 0 / 0.7408 GB, free: 13.94 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.294e-05/0.5947, allocations: 23.91 kB / 0.7408 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.5947, allocations: 4 kB / 0.7409 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.481e-05/0.5947, allocations: 28.09 kB / 0.7409 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.5947, allocations: 4 kB / 0.7409 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.5947, allocations: 0 / 0.7409 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001189/0.5959, allocations: 1.125 MB / 0.742 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 8.468e-05/0.596, allocations: 104.7 kB / 0.7421 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.168e-05/0.5961, allocations: 11.98 kB / 0.7421 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002486/0.5963, allocations: 8 kB / 0.7421 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.963e-05/0.5964, allocations: 47.94 kB / 0.7421 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003016/0.5967, allocations: 279.4 kB / 0.7424 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001609/0.5969, allocations: 176.4 kB / 0.7426 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5969, allocations: 0 / 0.7426 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0005022/0.5974, allocations: 64 kB / 0.7426 GB, free: 12.04 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 (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.0001753/0.5976, allocations: 139.2 kB / 0.7428 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009717/0.5986, allocations: 0.7261 MB / 0.7435 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.5986, allocations: 4 kB / 0.7435 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005396/0.5992, allocations: 411.7 kB / 0.7439 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001552/0.6007, allocations: 303.3 kB / 0.7442 GB, free: 10.47 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001427/0.6022, allocations: 1.027 MB / 0.7452 GB, free: 9.41 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003762/0.6026, allocations: 0.7491 MB / 0.7459 GB, free: 8.637 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0003263/0.6029, allocations: 106.9 kB / 0.746 GB, free: 8.535 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001452/0.603, allocations: 67.38 kB / 0.7461 GB, free: 8.469 MB / 0.5606 GB Notification: Performance of SimCode: time 5.41e-07/0.603, allocations: 0 / 0.7461 GB, free: 8.469 MB / 0.5606 GB Notification: Performance of Templates: time 0.01281/0.6159, allocations: 8.149 MB / 0.754 GB, free: 428 kB / 0.5606 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: