Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.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.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 3.524/3.524, allocations: 287.3 MB / 302.3 MB, free: 8.324 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.001544/0.001544, allocations: 194.7 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.442/2.442, allocations: 205.4 MB / 0.6295 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.001214/0.001213, allocations: 92.94 kB / 0.7428 GB, free: 6.641 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000494/0.0004941, allocations: 13.39 kB / 0.8656 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2343/0.2348, allocations: 115.3 MB / 0.9782 GB, free: 28.4 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType): time 0.001294/0.2362, allocations: 417.6 kB / 0.9786 GB, free: 27.99 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001094/0.2373, allocations: 264.3 kB / 0.9789 GB, free: 27.73 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.723e-05/0.2374, allocations: 4 kB / 0.9789 GB, free: 27.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001334/0.2376, allocations: 11.86 kB / 0.9789 GB, free: 27.72 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001092/0.2377, allocations: 19.97 kB / 0.9789 GB, free: 27.7 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005641/0.2383, allocations: 72.8 kB / 0.979 GB, free: 27.63 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0003754/0.2387, allocations: 144.2 kB / 0.9791 GB, free: 27.49 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.345e-05/0.2388, allocations: 13.11 kB / 0.9791 GB, free: 27.48 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001293/0.2389, allocations: 75.89 kB / 0.9792 GB, free: 27.4 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003104/0.2393, allocations: 107.7 kB / 0.9793 GB, free: 27.3 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 7.169e-05/0.2393, allocations: 8 kB / 0.9793 GB, free: 27.29 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.135e-05/0.2394, allocations: 8 kB / 0.9793 GB, free: 27.28 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001516/0.2396, allocations: 75.8 kB / 0.9794 GB, free: 27.21 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 8.759e-05/0.2397, allocations: 57.58 kB / 0.9794 GB, free: 27.14 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003536/0.2401, allocations: 207.5 kB / 0.9796 GB, free: 26.94 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2401, allocations: 0 / 0.9796 GB, free: 26.94 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.266e-06/0.2401, allocations: 4 kB / 0.9796 GB, free: 26.94 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.925e-06/0.2402, allocations: 0 / 0.9796 GB, free: 26.94 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.001811/0.242, allocations: 0.6317 MB / 0.9802 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 6e-05/0.2421, allocations: 16.02 kB / 0.9803 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.2422, allocations: 27.7 kB / 0.9803 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005387/0.2428, allocations: 253.6 kB / 0.9805 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.586e-05/0.2429, allocations: 16.28 kB / 0.9805 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.13e-05/0.243, allocations: 23.98 kB / 0.9806 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001284/0.2443, allocations: 462.6 kB / 0.981 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.2443, allocations: 0 / 0.981 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.374e-05/0.2444, allocations: 8 kB / 0.981 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.2444, allocations: 0 / 0.981 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009068/0.2454, allocations: 323.8 kB / 0.9813 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.2466, allocations: 0.5778 MB / 0.9819 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002662/0.2493, allocations: 1.031 MB / 0.9829 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 6.261e-05/0.2494, allocations: 4.031 kB / 0.9829 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001284/0.2507, allocations: 470.4 kB / 0.9833 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=37): time 4.728e-06/0.2508, allocations: 4 kB / 0.9834 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of matching and sorting (n=37): time 0.003366/0.2542, allocations: 1.107 MB / 0.9844 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.792e-05/0.2543, allocations: 156.4 kB / 0.9846 GB, free: 21.57 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004565/0.2548, allocations: 244.9 kB / 0.9848 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 6.865e-05/0.2549, allocations: 37.7 kB / 0.9849 GB, free: 21.28 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.255, allocations: 125.1 kB / 0.985 GB, free: 21.15 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001561/0.2552, allocations: 79.14 kB / 0.985 GB, free: 21.07 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.287e-05/0.2552, allocations: 8 kB / 0.9851 GB, free: 21.07 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.2554, allocations: 342.8 kB / 0.9854 GB, free: 20.72 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009034/0.2563, allocations: 328.7 kB / 0.9857 GB, free: 20.4 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009966/0.2573, allocations: 422.5 kB / 0.9861 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001048/0.2584, allocations: 362.2 kB / 0.9864 GB, free: 19.6 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-06/0.2584, allocations: 4 kB / 0.9864 GB, free: 19.6 MB / 0.6198 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.002474/0.2609, allocations: 0.829 MB / 0.9873 GB, free: 18.76 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.756e-05/0.261, allocations: 4 kB / 0.9873 GB, free: 18.76 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.95e-05/0.2611, allocations: 8.062 kB / 0.9873 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.596e-05/0.2611, allocations: 4 kB / 0.9873 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004297/0.2616, allocations: 43.89 kB / 0.9873 GB, free: 18.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.255e-05/0.2616, allocations: 15.98 kB / 0.9873 GB, free: 18.69 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006915/0.2623, allocations: 27.69 kB / 0.9874 GB, free: 18.66 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006755/0.263, allocations: 267.5 kB / 0.9876 GB, free: 18.4 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.0004318/0.2635, allocations: 199.7 kB / 0.9878 GB, free: 18.2 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.2636, allocations: 31.62 kB / 0.9878 GB, free: 18.16 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001365/0.2638, allocations: 38.17 kB / 0.9879 GB, free: 18.13 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-05/0.2638, allocations: 4 kB / 0.9879 GB, free: 18.12 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.2639, allocations: 0 / 0.9879 GB, free: 18.12 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.2639, allocations: 0 / 0.9879 GB, free: 18.12 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004443/0.2683, allocations: 1.713 MB / 0.9895 GB, free: 16.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/0.2684, allocations: 4 kB / 0.9895 GB, free: 16.35 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.2685, allocations: 23.91 kB / 0.9896 GB, free: 16.33 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-05/0.2686, allocations: 4 kB / 0.9896 GB, free: 16.32 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.249e-05/0.2687, allocations: 19.97 kB / 0.9896 GB, free: 16.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.378e-06/0.2687, allocations: 0 / 0.9896 GB, free: 16.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/0.2687, allocations: 8 kB / 0.9896 GB, free: 16.3 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002426/0.2712, allocations: 1.15 MB / 0.9907 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.2713, allocations: 104.7 kB / 0.9908 GB, free: 14.99 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001268/0.2715, allocations: 15.95 kB / 0.9908 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006746/0.2722, allocations: 11.98 kB / 0.9908 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002362/0.2725, allocations: 51.88 kB / 0.9909 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006909/0.2732, allocations: 279.5 kB / 0.9912 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.000328/0.2735, allocations: 172.5 kB / 0.9913 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of sort global known variables: time 8.81e-07/0.2735, allocations: 0 / 0.9913 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001071/0.2746, allocations: 60 kB / 0.9914 GB, free: 14.41 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.0002852/0.2749, allocations: 139.2 kB / 0.9915 GB, free: 14.26 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002174/0.2771, allocations: 0.73 MB / 0.9922 GB, free: 13.53 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.2772, allocations: 0 / 0.9922 GB, free: 13.53 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.001214/0.2784, allocations: 407.7 kB / 0.9926 GB, free: 13.13 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003804/0.2822, allocations: 370.5 kB / 0.993 GB, free: 12.78 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002919/0.2852, allocations: 1.013 MB / 0.994 GB, free: 11.73 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003913/0.2857, allocations: 0.7647 MB / 0.9947 GB, free: 10.95 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0007756/0.2865, allocations: 98.92 kB / 0.9948 GB, free: 10.85 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002956/0.2868, allocations: 63.38 kB / 0.9949 GB, free: 10.79 MB / 0.6198 GB Notification: Performance of SimCode: time 1.543e-06/0.2868, allocations: 0 / 0.9949 GB, free: 10.79 MB / 0.6198 GB Notification: Performance of Templates: time 0.0252/0.312, allocations: 8.326 MB / 1.003 GB, free: 2.535 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)