Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_Buildings.Controls.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.0009862/0.0009858, allocations: 88.56 kB / 15.06 MB, free: 1.094 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.001049/0.001049, allocations: 172.7 kB / 15.95 MB, free: 204 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.593/1.593, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.68/1.68, allocations: 292.7 MB / 0.5499 GB, free: 14.55 MB / 462.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.0005022/0.0005022, allocations: 12.75 kB / 0.6737 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.244, allocations: 116.3 MB / 0.7873 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.001641/0.2457, allocations: 1.13 MB / 0.7884 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0005537/0.2463, allocations: 260.4 kB / 0.7886 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.641e-05/0.2463, allocations: 4 kB / 0.7886 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001005/0.2465, allocations: 7.875 kB / 0.7886 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.852e-05/0.2465, allocations: 19.91 kB / 0.7887 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003234/0.2469, allocations: 71.86 kB / 0.7887 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002492/0.2471, allocations: 204 kB / 0.7889 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 5.097e-05/0.2472, allocations: 9.125 kB / 0.7889 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.2473, allocations: 79.81 kB / 0.789 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002276/0.2475, allocations: 103.8 kB / 0.7891 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.621e-05/0.2476, allocations: 8 kB / 0.7891 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 3.067e-05/0.2476, allocations: 8 kB / 0.7891 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.32e-05/0.2477, allocations: 71.78 kB / 0.7892 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.692e-05/0.2478, allocations: 61.58 kB / 0.7892 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001754/0.248, allocations: 183.8 kB / 0.7894 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.248, allocations: 0 / 0.7894 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.232e-06/0.248, allocations: 4 kB / 0.7894 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.248, allocations: 0 / 0.7894 GB, free: 9.719 MB / 0.6075 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.0008629/0.2489, allocations: 0.6276 MB / 0.79 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.2489, allocations: 8.031 kB / 0.79 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.959e-05/0.249, allocations: 27.72 kB / 0.7901 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002998/0.2493, allocations: 257.6 kB / 0.7903 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.295e-05/0.2493, allocations: 12.28 kB / 0.7903 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.542e-05/0.2494, allocations: 31.97 kB / 0.7904 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005519/0.2499, allocations: 454.8 kB / 0.7908 GB, free: 8.18 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.2499, allocations: 0 / 0.7908 GB, free: 8.18 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.405e-05/0.25, allocations: 8 kB / 0.7908 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.25, allocations: 0 / 0.7908 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003794/0.2504, allocations: 327.8 kB / 0.7911 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006094/0.251, allocations: 0.5739 MB / 0.7917 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.2522, allocations: 1.021 MB / 0.7927 GB, free: 6.16 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007167/0.2529, allocations: 0.6543 MB / 0.7933 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.954e-05/0.2529, allocations: 12 kB / 0.7933 GB, free: 5.484 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005318/0.2535, allocations: 474.2 kB / 0.7938 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=37): time 1.322e-06/0.2535, allocations: 0 / 0.7938 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of matching and sorting (n=37): time 0.00133/0.2548, allocations: 1.113 MB / 0.7949 GB, free: 3.879 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.566e-05/0.2549, allocations: 140.5 kB / 0.795 GB, free: 3.711 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002038/0.2551, allocations: 248.9 kB / 0.7952 GB, free: 3.461 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.223e-05/0.2551, allocations: 37.69 kB / 0.7953 GB, free: 3.418 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.358e-05/0.2552, allocations: 129 kB / 0.7954 GB, free: 3.289 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 7.177e-05/0.2553, allocations: 79.17 kB / 0.7955 GB, free: 3.211 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.056e-05/0.2553, allocations: 12 kB / 0.7955 GB, free: 3.199 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.2554, allocations: 338.8 kB / 0.7958 GB, free: 2.859 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003739/0.2558, allocations: 328.7 kB / 0.7961 GB, free: 2.539 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004349/0.2563, allocations: 430.3 kB / 0.7965 GB, free: 2.082 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004197/0.2567, allocations: 356.3 kB / 0.7969 GB, free: 1.734 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.2567, allocations: 7.953 kB / 0.7969 GB, free: 1.727 MB / 0.6075 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000962/0.2577, allocations: 0.8211 MB / 0.7977 GB, free: 0.8984 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.2577, allocations: 12 kB / 0.7977 GB, free: 0.8867 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.2577, allocations: 8 kB / 0.7977 GB, free: 0.8789 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.2577, allocations: 4 kB / 0.7977 GB, free: 0.875 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.2579, allocations: 47.83 kB / 0.7977 GB, free: 0.8281 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.2579, allocations: 4 kB / 0.7977 GB, free: 0.8242 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002264/0.2582, allocations: 27.75 kB / 0.7978 GB, free: 0.7969 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002848/0.2585, allocations: 267.4 kB / 0.798 GB, free: 0.5352 MB / 0.6075 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.0001961/0.2587, allocations: 196.7 kB / 0.7982 GB, free: 344 kB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.856e-05/0.2587, allocations: 31.58 kB / 0.7982 GB, free: 312 kB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.149e-05/0.2588, allocations: 46.16 kB / 0.7983 GB, free: 268 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.2588, allocations: 8 kB / 0.7983 GB, free: 260 kB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/0.2588, allocations: 4 kB / 0.7983 GB, free: 256 kB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.2588, allocations: 0 / 0.7983 GB, free: 256 kB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001996/0.2608, allocations: 1.714 MB / 0.8 GB, free: 14.48 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.2609, allocations: 4 kB / 0.8 GB, free: 14.47 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.09e-05/0.2609, allocations: 23.91 kB / 0.8 GB, free: 14.45 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.2609, allocations: 0 / 0.8 GB, free: 14.45 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.298e-05/0.261, allocations: 27.97 kB / 0.8 GB, free: 14.42 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.261, allocations: 0 / 0.8 GB, free: 14.42 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.261, allocations: 0 / 0.8 GB, free: 14.42 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.262, allocations: 1.113 MB / 0.8011 GB, free: 13.29 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 7.923e-05/0.2621, allocations: 108.7 kB / 0.8012 GB, free: 13.16 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.167e-05/0.2622, allocations: 15.98 kB / 0.8012 GB, free: 13.15 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/0.2624, allocations: 7.938 kB / 0.8012 GB, free: 13.14 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.853e-05/0.2625, allocations: 51.94 kB / 0.8013 GB, free: 13.09 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002919/0.2628, allocations: 279.5 kB / 0.8016 GB, free: 12.82 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001556/0.263, allocations: 172.5 kB / 0.8017 GB, free: 12.65 MB / 0.6231 GB Notification: Performance of sort global known variables: time 6.32e-07/0.263, allocations: 0 / 0.8017 GB, free: 12.65 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0004741/0.2635, allocations: 64 kB / 0.8018 GB, free: 12.59 MB / 0.6231 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.0001902/0.2637, allocations: 131.1 kB / 0.8019 GB, free: 12.45 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001016/0.2647, allocations: 0.7344 MB / 0.8026 GB, free: 11.71 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.2647, allocations: 0 / 0.8026 GB, free: 11.71 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0005498/0.2652, allocations: 403.1 kB / 0.803 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001469/0.2667, allocations: 326 kB / 0.8033 GB, free: 11.02 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001287/0.268, allocations: 1.025 MB / 0.8043 GB, free: 9.953 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.2684, allocations: 0.7571 MB / 0.8051 GB, free: 9.168 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0003056/0.2687, allocations: 106.9 kB / 0.8052 GB, free: 9.066 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/0.2688, allocations: 67.38 kB / 0.8052 GB, free: 9 MB / 0.6231 GB Notification: Performance of SimCode: time 4.91e-07/0.2688, allocations: 0 / 0.8052 GB, free: 9 MB / 0.6231 GB Notification: Performance of Templates: time 0.01187/0.2807, allocations: 8.128 MB / 0.8132 GB, free: 0.9727 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Controls.Sources.Examples.DayType.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_8_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_8_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1) Environment - environmentSimulation: