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.001777/0.001777, allocations: 101.4 kB / 15.7 MB, free: 28 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001855/0.001856, allocations: 200.6 kB / 16.64 MB, free: 6.43 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.727/1.727, allocations: 205.1 MB / 222.5 MB, free: 4.551 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.893/1.893, allocations: 292.3 MB / 0.549 GB, free: 12.79 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.001471/0.001471, allocations: 70.97 kB / 0.6723 GB, free: 25.75 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2817, allocations: 114.6 MB / 0.7841 GB, free: 12.78 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.00352/0.2853, allocations: 1.423 MB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0007107/0.2861, allocations: 275.2 kB / 0.7858 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.766e-05/0.2861, allocations: 3.938 kB / 0.7858 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000162/0.2863, allocations: 15.86 kB / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.153e-05/0.2864, allocations: 19.8 kB / 0.7858 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003816/0.2868, allocations: 83.83 kB / 0.7859 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003119/0.2871, allocations: 232 kB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.563e-05/0.2872, allocations: 25.09 kB / 0.7861 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.65e-05/0.2873, allocations: 83.81 kB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001794/0.2875, allocations: 107.7 kB / 0.7863 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.683e-05/0.2875, allocations: 16 kB / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 4.001e-05/0.2876, allocations: 16 kB / 0.7863 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.2877, allocations: 79.8 kB / 0.7864 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001246/0.2878, allocations: 111.3 kB / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002686/0.2881, allocations: 259 kB / 0.7868 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.2881, allocations: 4 kB / 0.7868 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.044e-06/0.2881, allocations: 0 / 0.7868 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.2881, allocations: 0 / 0.7868 GB, free: 10.04 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.00102/0.2892, allocations: 0.6978 MB / 0.7875 GB, free: 9.254 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.2892, allocations: 8.031 kB / 0.7875 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.74e-05/0.2893, allocations: 28.66 kB / 0.7875 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00031/0.2896, allocations: 258.8 kB / 0.7877 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.472e-05/0.2896, allocations: 16.64 kB / 0.7878 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.413e-05/0.2897, allocations: 16.38 kB / 0.7878 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006225/0.2903, allocations: 459.3 kB / 0.7882 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.2904, allocations: 12.12 kB / 0.7882 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.361e-05/0.2904, allocations: 7.938 kB / 0.7882 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.2904, allocations: 4 kB / 0.7882 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003803/0.2908, allocations: 319.8 kB / 0.7885 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007102/0.2915, allocations: 0.5701 MB / 0.7891 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.2927, allocations: 1.026 MB / 0.7901 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007514/0.2935, allocations: 0.6554 MB / 0.7907 GB, free: 5.734 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 4.423e-05/0.2936, allocations: 11.98 kB / 0.7908 GB, free: 5.723 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006836/0.2943, allocations: 474.5 kB / 0.7912 GB, free: 5.234 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=37): time 2.194e-06/0.2943, allocations: 0 / 0.7912 GB, free: 5.234 MB / 0.6075 GB Notification: Performance of matching and sorting (n=37): time 0.001542/0.2958, allocations: 1.121 MB / 0.7923 GB, free: 4.109 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.999e-05/0.2959, allocations: 140.5 kB / 0.7924 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002554/0.2962, allocations: 252.9 kB / 0.7927 GB, free: 3.688 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.332e-05/0.2962, allocations: 37.7 kB / 0.7927 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.256e-05/0.2963, allocations: 121.1 kB / 0.7928 GB, free: 3.523 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 7.912e-05/0.2964, allocations: 79.14 kB / 0.7929 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.2966, allocations: 110.1 kB / 0.793 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.2967, allocations: 342.8 kB / 0.7933 GB, free: 2.988 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004107/0.2971, allocations: 332.7 kB / 0.7937 GB, free: 2.664 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005316/0.2977, allocations: 430.4 kB / 0.7941 GB, free: 2.207 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000878/0.2986, allocations: 0.77 MB / 0.7948 GB, free: 1.402 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.2986, allocations: 0 / 0.7948 GB, free: 1.402 MB / 0.6075 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001024/0.2996, allocations: 0.8294 MB / 0.7956 GB, free: 0.5664 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.2996, allocations: 7.938 kB / 0.7956 GB, free: 0.5586 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.2996, allocations: 4 kB / 0.7956 GB, free: 0.5547 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.341e-05/0.2997, allocations: 7.984 kB / 0.7956 GB, free: 0.5469 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001777/0.2999, allocations: 39.91 kB / 0.7957 GB, free: 0.5078 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/0.2999, allocations: 8.062 kB / 0.7957 GB, free: 0.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002506/0.3001, allocations: 35.69 kB / 0.7957 GB, free: 476 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003021/0.3004, allocations: 271.7 kB / 0.796 GB, free: 204 kB / 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 (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.0002028/0.3007, allocations: 189.7 kB / 0.7962 GB, free: 4 kB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.982e-05/0.3007, allocations: 35.7 kB / 0.7962 GB, free: 15.96 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.864e-05/0.3008, allocations: 38.12 kB / 0.7962 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.3008, allocations: 4 kB / 0.7962 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.966e-06/0.3008, allocations: 0 / 0.7962 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.3009, allocations: 4 kB / 0.7962 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002118/0.303, allocations: 1.714 MB / 0.7979 GB, free: 14.15 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.303, allocations: 4 kB / 0.7979 GB, free: 14.15 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.513e-05/0.303, allocations: 23.97 kB / 0.7979 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.3031, allocations: 3.938 kB / 0.7979 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.845e-05/0.3031, allocations: 23.97 kB / 0.798 GB, free: 14.1 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.905e-06/0.3031, allocations: 4 kB / 0.798 GB, free: 14.09 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3031, allocations: 3.938 kB / 0.798 GB, free: 14.09 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001197/0.3043, allocations: 1.125 MB / 0.7991 GB, free: 12.95 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 8.598e-05/0.3044, allocations: 100.8 kB / 0.7992 GB, free: 12.83 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.807e-05/0.3045, allocations: 15.98 kB / 0.7992 GB, free: 12.82 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002792/0.3048, allocations: 11.94 kB / 0.7992 GB, free: 12.8 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001668/0.3049, allocations: 47.94 kB / 0.7992 GB, free: 12.76 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003077/0.3053, allocations: 279.5 kB / 0.7995 GB, free: 12.48 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001825/0.3055, allocations: 180.4 kB / 0.7997 GB, free: 12.31 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3055, allocations: 0 / 0.7997 GB, free: 12.31 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0005023/0.306, allocations: 64 kB / 0.7997 GB, free: 12.25 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 (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.000227/0.3062, allocations: 142.1 kB / 0.7999 GB, free: 12.1 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.00121/0.3074, allocations: 0.7416 MB / 0.8006 GB, free: 11.36 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.3074, allocations: 0 / 0.8006 GB, free: 11.36 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0005487/0.308, allocations: 399.8 kB / 0.801 GB, free: 10.97 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001668/0.3097, allocations: 361 kB / 0.8013 GB, free: 10.65 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001384/0.3111, allocations: 0.9785 MB / 0.8023 GB, free: 9.629 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003628/0.3115, allocations: 0.753 MB / 0.803 GB, free: 8.848 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002693/0.3117, allocations: 98.91 kB / 0.8031 GB, free: 8.754 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.3119, allocations: 71.39 kB / 0.8032 GB, free: 8.688 MB / 0.6231 GB Notification: Performance of SimCode: time 4.11e-07/0.3119, allocations: 3.938 kB / 0.8032 GB, free: 8.684 MB / 0.6231 GB Notification: Performance of Templates: time 0.01604/0.3279, allocations: 8.823 MB / 0.8118 GB, free: 15.98 MB / 0.6387 GB make -j1 -f Buildings_8_Buildings.Controls.Sources.Examples.DayType.makefile (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)