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.002045/0.002045, allocations: 107.4 kB / 15.23 MB, free: 0.6406 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.002898/0.002898, allocations: 191.4 kB / 16.14 MB, free: 6.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.918/1.918, allocations: 205.1 MB / 222 MB, free: 4.762 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.829/1.829, allocations: 251.6 MB / 0.5088 GB, free: 3.355 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.001498/0.001498, allocations: 63.89 kB / 0.6216 GB, free: 2.023 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9137/0.9152, allocations: 104.7 MB / 0.7238 GB, free: 13.19 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.004082/0.9195, allocations: 1.493 MB / 0.7253 GB, free: 11.68 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0007386/0.9202, allocations: 271.1 kB / 0.7255 GB, free: 11.42 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.195e-05/0.9203, allocations: 4 kB / 0.7255 GB, free: 11.41 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001889/0.9205, allocations: 15.86 kB / 0.7255 GB, free: 11.4 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 8.202e-05/0.9206, allocations: 15.92 kB / 0.7255 GB, free: 11.38 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004382/0.9211, allocations: 79.88 kB / 0.7256 GB, free: 11.3 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003652/0.9214, allocations: 219.9 kB / 0.7258 GB, free: 11.09 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 8.386e-05/0.9215, allocations: 13.11 kB / 0.7258 GB, free: 11.07 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 9.594e-05/0.9216, allocations: 75.81 kB / 0.7259 GB, free: 11 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001798/0.9218, allocations: 103.7 kB / 0.726 GB, free: 10.9 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 5.098e-05/0.9219, allocations: 8 kB / 0.726 GB, free: 10.89 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 4.867e-05/0.9219, allocations: 8 kB / 0.726 GB, free: 10.88 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000138/0.9221, allocations: 83.72 kB / 0.7261 GB, free: 10.8 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001443/0.9222, allocations: 91.39 kB / 0.7262 GB, free: 10.71 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003152/0.9225, allocations: 253.1 kB / 0.7264 GB, free: 10.46 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.9226, allocations: 0 / 0.7264 GB, free: 10.46 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.403e-06/0.9226, allocations: 0 / 0.7264 GB, free: 10.46 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.225e-06/0.9226, allocations: 0 / 0.7264 GB, free: 10.46 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.00119/0.9238, allocations: 0.694 MB / 0.7271 GB, free: 9.691 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/0.9238, allocations: 8.031 kB / 0.7271 GB, free: 9.684 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.231e-05/0.9239, allocations: 24.66 kB / 0.7271 GB, free: 9.66 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003466/0.9243, allocations: 270.7 kB / 0.7274 GB, free: 9.355 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.54e-05/0.9243, allocations: 16.66 kB / 0.7274 GB, free: 9.34 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.127e-05/0.9244, allocations: 16.38 kB / 0.7274 GB, free: 9.324 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006559/0.925, allocations: 459.3 kB / 0.7279 GB, free: 8.859 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.9251, allocations: 192 / 0.7279 GB, free: 8.859 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.411e-05/0.9251, allocations: 11.94 kB / 0.7279 GB, free: 8.848 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.9251, allocations: 4 kB / 0.7279 GB, free: 8.844 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004203/0.9255, allocations: 323.8 kB / 0.7282 GB, free: 8.527 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007357/0.9263, allocations: 0.5624 MB / 0.7287 GB, free: 7.906 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001312/0.9276, allocations: 1.037 MB / 0.7298 GB, free: 6.832 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008055/0.9284, allocations: 0.6672 MB / 0.7304 GB, free: 6.152 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 4.364e-05/0.9285, allocations: 4 kB / 0.7304 GB, free: 6.148 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007651/0.9292, allocations: 482.3 kB / 0.7309 GB, free: 5.652 MB / 0.545 GB Notification: Performance of pre-optimization done (n=37): time 3.256e-06/0.9293, allocations: 3.938 kB / 0.7309 GB, free: 5.648 MB / 0.545 GB Notification: Performance of matching and sorting (n=37): time 0.001621/0.9309, allocations: 1.115 MB / 0.732 GB, free: 4.527 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.931, allocations: 144.5 kB / 0.7321 GB, free: 4.355 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000282/0.9313, allocations: 264.7 kB / 0.7324 GB, free: 4.09 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.791e-05/0.9313, allocations: 33.7 kB / 0.7324 GB, free: 4.051 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.9315, allocations: 125.1 kB / 0.7325 GB, free: 3.922 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 8.695e-05/0.9316, allocations: 75 kB / 0.7326 GB, free: 3.848 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001651/0.9317, allocations: 110.1 kB / 0.7327 GB, free: 3.734 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001698/0.9319, allocations: 342.8 kB / 0.733 GB, free: 3.391 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004217/0.9323, allocations: 332.7 kB / 0.7333 GB, free: 3.066 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004767/0.9328, allocations: 418.5 kB / 0.7337 GB, free: 2.621 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008951/0.9337, allocations: 0.7665 MB / 0.7345 GB, free: 1.82 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.399e-06/0.9337, allocations: 4 kB / 0.7345 GB, free: 1.816 MB / 0.545 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00107/0.9348, allocations: 0.8289 MB / 0.7353 GB, free: 0.9805 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.05e-05/0.9348, allocations: 11.94 kB / 0.7353 GB, free: 0.9688 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.9349, allocations: 4 kB / 0.7353 GB, free: 0.9648 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.9349, allocations: 4 kB / 0.7353 GB, free: 0.9609 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001956/0.9351, allocations: 39.91 kB / 0.7353 GB, free: 0.9219 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.677e-05/0.9351, allocations: 12 kB / 0.7354 GB, free: 0.9102 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002634/0.9354, allocations: 35.67 kB / 0.7354 GB, free: 0.875 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003752/0.9358, allocations: 264 kB / 0.7356 GB, free: 0.6172 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.0002892/0.9361, allocations: 193.7 kB / 0.7358 GB, free: 428 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.682e-05/0.9361, allocations: 31.56 kB / 0.7359 GB, free: 396 kB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.717e-05/0.9362, allocations: 38.17 kB / 0.7359 GB, free: 360 kB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.238e-05/0.9362, allocations: 8 kB / 0.7359 GB, free: 352 kB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/0.9363, allocations: 0 / 0.7359 GB, free: 352 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.9363, allocations: 3.984 kB / 0.7359 GB, free: 348 kB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002141/0.9384, allocations: 1.718 MB / 0.7376 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.9384, allocations: 128 / 0.7376 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.206e-05/0.9385, allocations: 23.92 kB / 0.7376 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/0.9385, allocations: 4.234 kB / 0.7376 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.417e-05/0.9386, allocations: 23.97 kB / 0.7376 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.9386, allocations: 4 kB / 0.7376 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.9386, allocations: 4 kB / 0.7376 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.9397, allocations: 1.113 MB / 0.7387 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.926e-05/0.9398, allocations: 112.6 kB / 0.7388 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.377e-05/0.9399, allocations: 12 kB / 0.7388 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002421/0.9401, allocations: 12 kB / 0.7389 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.9402, allocations: 51.88 kB / 0.7389 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003006/0.9405, allocations: 279.4 kB / 0.7392 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001823/0.9407, allocations: 176.4 kB / 0.7393 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9407, allocations: 0 / 0.7393 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004887/0.9412, allocations: 60 kB / 0.7394 GB, free: 12.66 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.0002094/0.9415, allocations: 136.2 kB / 0.7395 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009691/0.9424, allocations: 0.7401 MB / 0.7403 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.9424, allocations: 0 / 0.7403 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005269/0.943, allocations: 403.8 kB / 0.7406 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001654/0.9446, allocations: 331.1 kB / 0.741 GB, free: 11.08 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001439/0.9461, allocations: 1.027 MB / 0.742 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005895/0.9467, allocations: 0.7647 MB / 0.7427 GB, free: 9.219 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0003218/0.947, allocations: 94.92 kB / 0.7428 GB, free: 9.129 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001413/0.9472, allocations: 71.38 kB / 0.7429 GB, free: 9.062 MB / 0.5606 GB Notification: Performance of SimCode: time 6.61e-07/0.9472, allocations: 0 / 0.7429 GB, free: 9.062 MB / 0.5606 GB Notification: Performance of Templates: time 0.01568/0.9629, allocations: 8.481 MB / 0.7511 GB, free: 0.6875 MB / 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)