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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) 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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.413/1.413, allocations: 251.5 MB / 267.4 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009722/0.0009723, allocations: 176.1 kB / 326.5 MB, free: 2.672 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.903/1.903, allocations: 205 MB / 0.5766 GB, free: 20.98 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001024/0.001024, allocations: 85.7 kB / 0.6803 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003648/0.0003648, allocations: 13.14 kB / 0.7938 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2494, allocations: 105.4 MB / 0.8967 GB, free: 68.18 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.001657/0.2511, allocations: 1.15 MB / 0.8979 GB, free: 67.02 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006318/0.2518, allocations: 284.7 kB / 0.8981 GB, free: 66.74 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.933e-05/0.2519, allocations: 4 kB / 0.8981 GB, free: 66.74 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001522/0.252, allocations: 7.922 kB / 0.8981 GB, free: 66.73 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.293e-05/0.2521, allocations: 19.86 kB / 0.8982 GB, free: 66.71 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003786/0.2525, allocations: 79.86 kB / 0.8982 GB, free: 66.63 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002578/0.2528, allocations: 216 kB / 0.8984 GB, free: 66.42 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 5.947e-05/0.2528, allocations: 17.06 kB / 0.8985 GB, free: 66.4 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 9.158e-05/0.2529, allocations: 75.81 kB / 0.8985 GB, free: 66.33 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001746/0.2531, allocations: 107.6 kB / 0.8986 GB, free: 66.22 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.382e-05/0.2532, allocations: 8 kB / 0.8986 GB, free: 66.21 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 3.374e-05/0.2532, allocations: 8 kB / 0.8986 GB, free: 66.21 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 9.661e-05/0.2533, allocations: 75.78 kB / 0.8987 GB, free: 66.13 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.2534, allocations: 107.3 kB / 0.8988 GB, free: 66.03 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.000181/0.2536, allocations: 171.7 kB / 0.899 GB, free: 65.86 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.2536, allocations: 0 / 0.899 GB, free: 65.86 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.454e-06/0.2537, allocations: 0 / 0.899 GB, free: 65.86 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.602e-05/0.2537, allocations: 0 / 0.899 GB, free: 65.86 MB / 0.6042 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.0009335/0.2546, allocations: 0.6278 MB / 0.8996 GB, free: 65.15 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.2547, allocations: 12.03 kB / 0.8996 GB, free: 65.14 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.2548, allocations: 24.66 kB / 0.8996 GB, free: 65.12 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003014/0.2551, allocations: 270.7 kB / 0.8999 GB, free: 64.81 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.072e-05/0.2551, allocations: 12.66 kB / 0.8999 GB, free: 64.8 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.85e-05/0.2552, allocations: 20.36 kB / 0.8999 GB, free: 64.78 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005059/0.2557, allocations: 455.3 kB / 0.9004 GB, free: 64.32 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.2557, allocations: 8.125 kB / 0.9004 GB, free: 64.31 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.467e-05/0.2558, allocations: 15.92 kB / 0.9004 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.2558, allocations: 4 kB / 0.9004 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003184/0.2561, allocations: 311.8 kB / 0.9007 GB, free: 63.99 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005345/0.2566, allocations: 0.574 MB / 0.9012 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009803/0.2576, allocations: 1.033 MB / 0.9022 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005673/0.2582, allocations: 0.6515 MB / 0.9029 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.79e-05/0.2583, allocations: 7.984 kB / 0.9029 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005109/0.2588, allocations: 486.3 kB / 0.9034 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=37): time 1.693e-06/0.2588, allocations: 0 / 0.9034 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of matching and sorting (n=37): time 0.00118/0.26, allocations: 1.114 MB / 0.9044 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.663e-05/0.26, allocations: 136.5 kB / 0.9046 GB, free: 59.83 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001895/0.2602, allocations: 256.8 kB / 0.9048 GB, free: 59.57 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.338e-05/0.2603, allocations: 37.7 kB / 0.9049 GB, free: 59.53 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.744e-05/0.2603, allocations: 121.1 kB / 0.905 GB, free: 59.4 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 7.256e-05/0.2604, allocations: 83.12 kB / 0.9051 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.296e-05/0.2605, allocations: 57.62 kB / 0.9051 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.84e-05/0.2606, allocations: 342.8 kB / 0.9054 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003019/0.2609, allocations: 332.6 kB / 0.9058 GB, free: 58.59 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003528/0.2612, allocations: 422.5 kB / 0.9062 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006675/0.2619, allocations: 0.7744 MB / 0.9069 GB, free: 57.33 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.2619, allocations: 3.938 kB / 0.9069 GB, free: 57.33 MB / 0.6042 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008136/0.2627, allocations: 0.8209 MB / 0.9077 GB, free: 56.5 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.2628, allocations: 14.59 kB / 0.9077 GB, free: 56.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.2628, allocations: 128 / 0.9077 GB, free: 56.49 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.333e-05/0.2628, allocations: 12 kB / 0.9077 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001575/0.263, allocations: 39.89 kB / 0.9078 GB, free: 56.44 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.263, allocations: 8 kB / 0.9078 GB, free: 56.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002362/0.2632, allocations: 31.69 kB / 0.9078 GB, free: 56.4 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002489/0.2635, allocations: 272 kB / 0.9081 GB, free: 56.13 MB / 0.6042 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.0001733/0.2637, allocations: 190 kB / 0.9083 GB, free: 55.94 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.824e-05/0.2637, allocations: 31.64 kB / 0.9083 GB, free: 55.91 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.242e-05/0.2638, allocations: 34.19 kB / 0.9083 GB, free: 55.88 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.2638, allocations: 4 kB / 0.9083 GB, free: 55.87 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.2638, allocations: 11.98 kB / 0.9083 GB, free: 55.86 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.2638, allocations: 3.938 kB / 0.9083 GB, free: 55.86 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001653/0.2655, allocations: 1.714 MB / 0.91 GB, free: 54.08 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.2655, allocations: 8.062 kB / 0.91 GB, free: 54.07 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.758e-05/0.2656, allocations: 19.97 kB / 0.91 GB, free: 54.05 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.2656, allocations: 8 kB / 0.91 GB, free: 54.05 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.828e-05/0.2656, allocations: 19.98 kB / 0.9101 GB, free: 54.03 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.2656, allocations: 7.922 kB / 0.9101 GB, free: 54.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.2656, allocations: 4 kB / 0.9101 GB, free: 54.02 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008749/0.2665, allocations: 1.109 MB / 0.9112 GB, free: 52.89 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 5.569e-05/0.2666, allocations: 108.7 kB / 0.9113 GB, free: 52.76 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.644e-05/0.2666, allocations: 12 kB / 0.9113 GB, free: 52.75 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002398/0.2669, allocations: 7.984 kB / 0.9113 GB, free: 52.74 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.267, allocations: 55.86 kB / 0.9113 GB, free: 52.69 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002349/0.2672, allocations: 283.4 kB / 0.9116 GB, free: 52.41 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001216/0.2674, allocations: 176.4 kB / 0.9118 GB, free: 52.24 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2674, allocations: 0 / 0.9118 GB, free: 52.24 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004513/0.2678, allocations: 60 kB / 0.9118 GB, free: 52.18 MB / 0.6042 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.0001483/0.268, allocations: 139.2 kB / 0.912 GB, free: 52.04 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.000809/0.2688, allocations: 0.7339 MB / 0.9127 GB, free: 51.3 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.2688, allocations: 0 / 0.9127 GB, free: 51.3 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.000417/0.2692, allocations: 383.8 kB / 0.913 GB, free: 50.93 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001543/0.2708, allocations: 328.1 kB / 0.9134 GB, free: 50.62 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001164/0.272, allocations: 1.068 MB / 0.9144 GB, free: 49.51 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002492/0.2722, allocations: 0.7575 MB / 0.9151 GB, free: 48.73 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.2724, allocations: 67.38 kB / 0.9152 GB, free: 48.66 MB / 0.6042 GB Notification: Performance of SimCode: time 5.42e-07/0.2724, allocations: 0 / 0.9152 GB, free: 48.66 MB / 0.6042 GB Notification: Performance of Templates: time 0.006507/0.2789, allocations: 4.461 MB / 0.9196 GB, free: 44.22 MB / 0.6042 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)