Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.713/2.713, allocations: 287.5 MB / 302.4 MB, free: 8.359 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001409/0.001408, allocations: 186.7 kB / 371 MB, free: 10.89 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.274/2.274, allocations: 205.4 MB / 0.6297 GB, free: 10.62 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009341/0.000934, allocations: 96.02 kB / 0.743 GB, free: 6.621 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007823/0.0007828, allocations: 14.36 kB / 0.8658 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2805/0.2813, allocations: 115.3 MB / 0.9783 GB, free: 28.42 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.002409/0.2838, allocations: 1.126 MB / 0.9794 GB, free: 27.28 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001055/0.2849, allocations: 264.2 kB / 0.9797 GB, free: 27.02 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.245e-05/0.285, allocations: 0 / 0.9797 GB, free: 27.02 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.2852, allocations: 11.92 kB / 0.9797 GB, free: 27.01 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 9.264e-05/0.2853, allocations: 15.86 kB / 0.9797 GB, free: 26.99 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005454/0.2858, allocations: 71.91 kB / 0.9798 GB, free: 26.92 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.000416/0.2863, allocations: 204 kB / 0.98 GB, free: 26.72 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.117e-05/0.2864, allocations: 5.125 kB / 0.98 GB, free: 26.72 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000137/0.2865, allocations: 87.75 kB / 0.9801 GB, free: 26.63 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000274/0.2868, allocations: 103.7 kB / 0.9802 GB, free: 26.53 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 9.023e-05/0.2869, allocations: 8 kB / 0.9802 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.836e-05/0.287, allocations: 8 kB / 0.9802 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001463/0.2872, allocations: 75.72 kB / 0.9803 GB, free: 26.44 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 8.864e-05/0.2873, allocations: 61.58 kB / 0.9803 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003187/0.2877, allocations: 183.9 kB / 0.9805 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.2877, allocations: 0 / 0.9805 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.675e-06/0.2877, allocations: 4 kB / 0.9805 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.853e-06/0.2877, allocations: 0 / 0.9805 GB, free: 26.19 MB / 0.6198 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.001755/0.2895, allocations: 0.6237 MB / 0.9811 GB, free: 25.49 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.748e-05/0.2896, allocations: 16.02 kB / 0.9811 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.2897, allocations: 23.72 kB / 0.9811 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005/0.2902, allocations: 257.6 kB / 0.9814 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.608e-05/0.2903, allocations: 16.28 kB / 0.9814 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.705e-05/0.2904, allocations: 19.94 kB / 0.9814 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.2916, allocations: 462.7 kB / 0.9819 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.2916, allocations: 3.938 kB / 0.9819 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.969e-05/0.2917, allocations: 4 kB / 0.9819 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.2917, allocations: 4 kB / 0.9819 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008299/0.2926, allocations: 331.7 kB / 0.9822 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.2937, allocations: 0.574 MB / 0.9828 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002365/0.2961, allocations: 1.017 MB / 0.9838 GB, free: 22.63 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001589/0.2978, allocations: 0.6565 MB / 0.9844 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 6.312e-05/0.2979, allocations: 4 kB / 0.9844 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001217/0.2991, allocations: 482.2 kB / 0.9849 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=37): time 4.048e-06/0.2992, allocations: 0 / 0.9849 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of matching and sorting (n=37): time 0.002891/0.3021, allocations: 1.112 MB / 0.9859 GB, free: 20.34 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.632e-05/0.3022, allocations: 140.5 kB / 0.9861 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004037/0.3026, allocations: 248.9 kB / 0.9863 GB, free: 19.92 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 6.621e-05/0.3027, allocations: 37.7 kB / 0.9864 GB, free: 19.88 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.3028, allocations: 129 kB / 0.9865 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.303, allocations: 75.23 kB / 0.9865 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.189e-05/0.303, allocations: 8 kB / 0.9866 GB, free: 19.67 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001065/0.3031, allocations: 350.7 kB / 0.9869 GB, free: 19.32 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007809/0.3039, allocations: 332.7 kB / 0.9872 GB, free: 18.99 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000889/0.3048, allocations: 422.4 kB / 0.9876 GB, free: 18.54 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009043/0.3058, allocations: 357.5 kB / 0.9879 GB, free: 18.2 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/0.3058, allocations: 0 / 0.9879 GB, free: 18.2 MB / 0.6198 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.002167/0.308, allocations: 0.8327 MB / 0.9888 GB, free: 17.36 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.93e-05/0.3081, allocations: 7.984 kB / 0.9888 GB, free: 17.35 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.605e-05/0.3081, allocations: 4 kB / 0.9888 GB, free: 17.34 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.348e-05/0.3082, allocations: 4 kB / 0.9888 GB, free: 17.34 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004056/0.3086, allocations: 39.91 kB / 0.9888 GB, free: 17.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.861e-05/0.3086, allocations: 4.312 kB / 0.9888 GB, free: 17.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006446/0.3093, allocations: 31.73 kB / 0.9888 GB, free: 17.27 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005951/0.3099, allocations: 275.9 kB / 0.9891 GB, free: 17 MB / 0.6198 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.0004247/0.3104, allocations: 194.9 kB / 0.9893 GB, free: 16.8 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.3105, allocations: 31.62 kB / 0.9893 GB, free: 16.77 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001351/0.3107, allocations: 42.17 kB / 0.9894 GB, free: 16.73 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.3107, allocations: 4 kB / 0.9894 GB, free: 16.72 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.17e-05/0.3107, allocations: 0 / 0.9894 GB, free: 16.72 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.166e-05/0.3107, allocations: 3.984 kB / 0.9894 GB, free: 16.72 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003991/0.3147, allocations: 1.718 MB / 0.9911 GB, free: 14.94 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.115e-05/0.3148, allocations: 8.125 kB / 0.9911 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/0.3149, allocations: 19.97 kB / 0.9911 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.344e-05/0.315, allocations: 4 kB / 0.9911 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.198e-05/0.3151, allocations: 23.97 kB / 0.9911 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.117e-06/0.3151, allocations: 3.938 kB / 0.9911 GB, free: 14.88 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.3151, allocations: 7.938 kB / 0.9911 GB, free: 14.88 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002148/0.3173, allocations: 1.111 MB / 0.9922 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.3174, allocations: 104.7 kB / 0.9923 GB, free: 13.62 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001297/0.3176, allocations: 15.98 kB / 0.9923 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006672/0.3183, allocations: 8 kB / 0.9923 GB, free: 13.6 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002121/0.3185, allocations: 51.88 kB / 0.9924 GB, free: 13.55 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006127/0.3191, allocations: 279.4 kB / 0.9926 GB, free: 13.28 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0003098/0.3195, allocations: 176.4 kB / 0.9928 GB, free: 13.11 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.61e-07/0.3195, allocations: 4 kB / 0.9928 GB, free: 13.1 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001176/0.3207, allocations: 60 kB / 0.9929 GB, free: 13.04 MB / 0.6198 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.0002754/0.321, allocations: 127.2 kB / 0.993 GB, free: 12.91 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002009/0.323, allocations: 0.7339 MB / 0.9937 GB, free: 12.17 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 7.495e-06/0.3231, allocations: 0 / 0.9937 GB, free: 12.17 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.001131/0.3242, allocations: 403.8 kB / 0.9941 GB, free: 11.78 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003928/0.3282, allocations: 315.3 kB / 0.9944 GB, free: 11.48 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002651/0.3309, allocations: 1.013 MB / 0.9954 GB, free: 10.43 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003689/0.3314, allocations: 0.7569 MB / 0.9961 GB, free: 9.652 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0007021/0.3321, allocations: 102.9 kB / 0.9962 GB, free: 9.555 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003228/0.3324, allocations: 67.38 kB / 0.9963 GB, free: 9.488 MB / 0.6198 GB Notification: Performance of SimCode: time 1.413e-06/0.3325, allocations: 3.938 kB / 0.9963 GB, free: 9.484 MB / 0.6198 GB Notification: Performance of Templates: time 0.02575/0.3582, allocations: 8.143 MB / 1.004 GB, free: 1.414 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)