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.614/2.614, allocations: 287.3 MB / 302.3 MB, free: 8.27 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.001557/0.001557, allocations: 189.9 kB / 370.8 MB, free: 10.86 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.132/2.132, allocations: 205.4 MB / 0.6295 GB, free: 10.61 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.001227/0.001227, allocations: 90.97 kB / 0.7428 GB, free: 6.629 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004976/0.0004979, allocations: 12.59 kB / 0.8656 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2318, allocations: 115.3 MB / 0.9782 GB, free: 28.41 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.001752/0.2337, allocations: 1.115 MB / 0.9793 GB, free: 27.29 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0007447/0.2345, allocations: 268.3 kB / 0.9795 GB, free: 27.02 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.477e-05/0.2345, allocations: 3.938 kB / 0.9795 GB, free: 27.02 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001126/0.2346, allocations: 11.92 kB / 0.9795 GB, free: 27.01 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.004e-05/0.2347, allocations: 27.89 kB / 0.9796 GB, free: 26.98 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003778/0.2351, allocations: 71.86 kB / 0.9796 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002547/0.2354, allocations: 144.2 kB / 0.9798 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 6.866e-05/0.2355, allocations: 17.09 kB / 0.9798 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.494e-05/0.2356, allocations: 79.81 kB / 0.9799 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001967/0.2358, allocations: 103.7 kB / 0.98 GB, free: 26.57 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.158e-05/0.2358, allocations: 8 kB / 0.98 GB, free: 26.57 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 4.989e-05/0.2359, allocations: 12 kB / 0.98 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001009/0.236, allocations: 71.78 kB / 0.9801 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.33e-05/0.2361, allocations: 61.58 kB / 0.9801 GB, free: 26.42 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002221/0.2363, allocations: 179.8 kB / 0.9803 GB, free: 26.24 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.2363, allocations: 0 / 0.9803 GB, free: 26.24 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.445e-06/0.2363, allocations: 0 / 0.9803 GB, free: 26.24 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.2364, allocations: 0 / 0.9803 GB, free: 26.24 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.001278/0.2377, allocations: 0.6276 MB / 0.9809 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.2377, allocations: 12.02 kB / 0.9809 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.2378, allocations: 27.7 kB / 0.9809 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003807/0.2382, allocations: 261.6 kB / 0.9812 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.839e-05/0.2383, allocations: 12.28 kB / 0.9812 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.608e-05/0.2383, allocations: 19.98 kB / 0.9812 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007686/0.2391, allocations: 454.7 kB / 0.9816 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.2391, allocations: 4 kB / 0.9817 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.475e-05/0.2392, allocations: 4 kB / 0.9817 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.2392, allocations: 7.938 kB / 0.9817 GB, free: 24.69 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005459/0.2398, allocations: 319.8 kB / 0.982 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007441/0.2405, allocations: 0.57 MB / 0.9825 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001666/0.2422, allocations: 1.027 MB / 0.9835 GB, free: 22.69 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 4.446e-05/0.2423, allocations: 12.02 kB / 0.9835 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008071/0.2431, allocations: 478.4 kB / 0.984 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=37): time 3.297e-06/0.2431, allocations: 0 / 0.984 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of matching and sorting (n=37): time 0.002053/0.2452, allocations: 1.107 MB / 0.9851 GB, free: 21.07 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.583e-05/0.2453, allocations: 144.5 kB / 0.9852 GB, free: 20.9 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003011/0.2456, allocations: 244.9 kB / 0.9854 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.292e-05/0.2456, allocations: 37.7 kB / 0.9855 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 8.19e-05/0.2457, allocations: 125.1 kB / 0.9856 GB, free: 20.48 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.2458, allocations: 75.14 kB / 0.9857 GB, free: 20.41 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.733e-05/0.2459, allocations: 8 kB / 0.9857 GB, free: 20.4 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.556e-05/0.246, allocations: 346.8 kB / 0.986 GB, free: 20.05 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005524/0.2465, allocations: 324.7 kB / 0.9863 GB, free: 19.73 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006044/0.2472, allocations: 426.4 kB / 0.9867 GB, free: 19.28 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006347/0.2478, allocations: 374 kB / 0.9871 GB, free: 18.92 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.2478, allocations: 0 / 0.9871 GB, free: 18.92 MB / 0.6198 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001475/0.2493, allocations: 0.8248 MB / 0.9879 GB, free: 18.09 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.673e-05/0.2494, allocations: 10.03 kB / 0.9879 GB, free: 18.08 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.2494, allocations: 0 / 0.9879 GB, free: 18.08 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.846e-05/0.2494, allocations: 16.06 kB / 0.9879 GB, free: 18.06 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000267/0.2497, allocations: 39.89 kB / 0.988 GB, free: 18.02 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.511e-05/0.2497, allocations: 8 kB / 0.988 GB, free: 18.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004693/0.2502, allocations: 31.69 kB / 0.988 GB, free: 17.98 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004215/0.2506, allocations: 271.5 kB / 0.9883 GB, free: 17.72 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.0002841/0.2509, allocations: 197.8 kB / 0.9884 GB, free: 17.52 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.272e-05/0.251, allocations: 31.61 kB / 0.9885 GB, free: 17.48 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.961e-05/0.2511, allocations: 34.19 kB / 0.9885 GB, free: 17.45 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.2511, allocations: 4 kB / 0.9885 GB, free: 17.45 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.2512, allocations: 11.98 kB / 0.9885 GB, free: 17.44 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.074e-06/0.2512, allocations: 0 / 0.9885 GB, free: 17.44 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002662/0.2539, allocations: 1.702 MB / 0.9902 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.2539, allocations: 0 / 0.9902 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.607e-05/0.254, allocations: 27.91 kB / 0.9902 GB, free: 15.65 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.538e-06/0.254, allocations: 4 kB / 0.9902 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.728e-05/0.2541, allocations: 15.98 kB / 0.9902 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.384e-06/0.2541, allocations: 7.984 kB / 0.9902 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.2541, allocations: 3.938 kB / 0.9902 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001428/0.2555, allocations: 1.15 MB / 0.9914 GB, free: 14.43 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 7.392e-05/0.2556, allocations: 108.7 kB / 0.9915 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.037e-05/0.2557, allocations: 11.95 kB / 0.9915 GB, free: 14.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000429/0.2562, allocations: 7.984 kB / 0.9915 GB, free: 14.29 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.2563, allocations: 47.94 kB / 0.9915 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004227/0.2568, allocations: 283.5 kB / 0.9918 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002036/0.257, allocations: 176.4 kB / 0.992 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.41e-07/0.257, allocations: 7.938 kB / 0.992 GB, free: 13.78 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0006671/0.2577, allocations: 64 kB / 0.992 GB, free: 13.72 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.0002085/0.2579, allocations: 127.2 kB / 0.9922 GB, free: 13.58 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001316/0.2592, allocations: 0.7227 MB / 0.9929 GB, free: 12.86 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.2592, allocations: 3.938 kB / 0.9929 GB, free: 12.86 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0007463/0.26, allocations: 402.4 kB / 0.9933 GB, free: 12.46 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002427/0.2624, allocations: 320.7 kB / 0.9936 GB, free: 12.16 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001906/0.2644, allocations: 1.013 MB / 0.9945 GB, free: 11.11 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002722/0.2647, allocations: 0.761 MB / 0.9953 GB, free: 10.33 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0004933/0.2652, allocations: 102.9 kB / 0.9954 GB, free: 10.23 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001983/0.2654, allocations: 71.38 kB / 0.9955 GB, free: 10.16 MB / 0.6198 GB Notification: Performance of SimCode: time 1.774e-06/0.2654, allocations: 0 / 0.9955 GB, free: 10.16 MB / 0.6198 GB Notification: Performance of Templates: time 0.01848/0.2839, allocations: 8.129 MB / 1.003 GB, free: 2.105 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)