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 1.833/1.833, allocations: 287.5 MB / 302.6 MB, free: 8.254 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.001341/0.001341, allocations: 173.6 kB / 371.2 MB, free: 10.82 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.056/2.056, allocations: 205.4 MB / 0.6298 GB, free: 10.56 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.001134/0.001134, allocations: 102.6 kB / 0.7432 GB, free: 6.543 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004524/0.0004527, allocations: 9.875 kB / 0.8661 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2485/0.249, allocations: 115.3 MB / 0.9787 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.001442/0.2505, allocations: 1.126 MB / 0.9798 GB, free: 27.05 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0005522/0.2511, allocations: 267.3 kB / 0.98 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.449e-05/0.2511, allocations: 4 kB / 0.98 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001206/0.2513, allocations: 7.875 kB / 0.98 GB, free: 26.78 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.251e-05/0.2513, allocations: 15.92 kB / 0.9801 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003495/0.2517, allocations: 71.86 kB / 0.9801 GB, free: 26.7 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002199/0.2519, allocations: 200 kB / 0.9803 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 5.931e-05/0.252, allocations: 13.05 kB / 0.9803 GB, free: 26.49 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.757e-05/0.2521, allocations: 83.8 kB / 0.9804 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001381/0.2522, allocations: 99.77 kB / 0.9805 GB, free: 26.31 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.012e-05/0.2523, allocations: 15.98 kB / 0.9805 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 3.306e-05/0.2523, allocations: 8 kB / 0.9805 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.7e-05/0.2524, allocations: 75.78 kB / 0.9806 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.317e-05/0.2525, allocations: 61.58 kB / 0.9807 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001468/0.2526, allocations: 179.8 kB / 0.9808 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.2526, allocations: 4 kB / 0.9808 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.254e-06/0.2526, allocations: 0 / 0.9808 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.406e-06/0.2527, allocations: 0 / 0.9808 GB, free: 25.96 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.0008938/0.2536, allocations: 0.6161 MB / 0.9814 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.2536, allocations: 20.02 kB / 0.9814 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.109e-05/0.2537, allocations: 28.59 kB / 0.9815 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002416/0.2539, allocations: 250.9 kB / 0.9817 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.351e-05/0.254, allocations: 20.59 kB / 0.9817 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.345e-05/0.254, allocations: 20.36 kB / 0.9818 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004707/0.2545, allocations: 463.2 kB / 0.9822 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.2545, allocations: 4.188 kB / 0.9822 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.183e-05/0.2545, allocations: 7.938 kB / 0.9822 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.024e-06/0.2546, allocations: 4 kB / 0.9822 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003092/0.2549, allocations: 323.8 kB / 0.9825 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004861/0.2554, allocations: 0.5662 MB / 0.9831 GB, free: 23.47 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009146/0.2563, allocations: 1.033 MB / 0.9841 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005803/0.2569, allocations: 0.6515 MB / 0.9847 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 4.01e-05/0.2569, allocations: 4 kB / 0.9847 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005179/0.2575, allocations: 478.2 kB / 0.9852 GB, free: 21.24 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=37): time 1.663e-06/0.2575, allocations: 4 kB / 0.9852 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of matching and sorting (n=37): time 0.00128/0.2588, allocations: 1.106 MB / 0.9863 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.478e-05/0.2588, allocations: 148.5 kB / 0.9864 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.2591, allocations: 244.9 kB / 0.9866 GB, free: 19.7 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.571e-05/0.2591, allocations: 41.69 kB / 0.9867 GB, free: 19.65 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.532e-05/0.2592, allocations: 125.1 kB / 0.9868 GB, free: 19.52 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 6.877e-05/0.2592, allocations: 79.14 kB / 0.9869 GB, free: 19.45 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.564e-05/0.2593, allocations: 4 kB / 0.9869 GB, free: 19.44 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.916e-05/0.2594, allocations: 338.8 kB / 0.9872 GB, free: 19.1 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003286/0.2597, allocations: 332.7 kB / 0.9875 GB, free: 18.78 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003633/0.2601, allocations: 430.3 kB / 0.9879 GB, free: 18.32 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007251/0.2608, allocations: 0.7713 MB / 0.9887 GB, free: 17.51 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.2608, allocations: 0 / 0.9887 GB, free: 17.51 MB / 0.6198 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009121/0.2617, allocations: 0.8228 MB / 0.9895 GB, free: 16.68 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.2618, allocations: 10.12 kB / 0.9895 GB, free: 16.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.2618, allocations: 4 kB / 0.9895 GB, free: 16.67 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.2618, allocations: 4.281 kB / 0.9895 GB, free: 16.67 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.262, allocations: 47.83 kB / 0.9895 GB, free: 16.62 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.207e-05/0.262, allocations: 8.062 kB / 0.9896 GB, free: 16.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000247/0.2622, allocations: 31.69 kB / 0.9896 GB, free: 16.58 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002562/0.2625, allocations: 267.5 kB / 0.9898 GB, free: 16.32 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.0001874/0.2627, allocations: 203 kB / 0.99 GB, free: 16.11 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.716e-05/0.2628, allocations: 39.5 kB / 0.9901 GB, free: 16.07 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.373e-05/0.2628, allocations: 38.17 kB / 0.9901 GB, free: 16.04 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.2628, allocations: 4 kB / 0.9901 GB, free: 16.04 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.2629, allocations: 0 / 0.9901 GB, free: 16.04 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2629, allocations: 0 / 0.9901 GB, free: 16.04 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001639/0.2645, allocations: 1.71 MB / 0.9918 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.2645, allocations: 4 kB / 0.9918 GB, free: 14.26 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.235e-05/0.2646, allocations: 19.91 kB / 0.9918 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.2646, allocations: 4 kB / 0.9918 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.945e-05/0.2646, allocations: 23.97 kB / 0.9918 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.2646, allocations: 7.938 kB / 0.9918 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.2646, allocations: 4 kB / 0.9918 GB, free: 14.2 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009323/0.2656, allocations: 1.113 MB / 0.9929 GB, free: 13.07 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.989e-05/0.2657, allocations: 104.7 kB / 0.993 GB, free: 12.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.544e-05/0.2657, allocations: 19.98 kB / 0.993 GB, free: 12.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002354/0.266, allocations: 8 kB / 0.9931 GB, free: 12.92 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.086e-05/0.2661, allocations: 47.94 kB / 0.9931 GB, free: 12.88 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002326/0.2663, allocations: 279.5 kB / 0.9934 GB, free: 12.6 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001199/0.2664, allocations: 176.4 kB / 0.9935 GB, free: 12.43 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2664, allocations: 0 / 0.9935 GB, free: 12.43 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004578/0.2669, allocations: 60 kB / 0.9936 GB, free: 12.37 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.0001441/0.267, allocations: 135.2 kB / 0.9937 GB, free: 12.23 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0008202/0.2679, allocations: 0.7378 MB / 0.9944 GB, free: 11.49 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.2679, allocations: 0 / 0.9944 GB, free: 11.49 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000436/0.2683, allocations: 403.8 kB / 0.9948 GB, free: 11.09 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001614/0.27, allocations: 309.1 kB / 0.9951 GB, free: 10.8 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.2712, allocations: 1.017 MB / 0.9961 GB, free: 9.754 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000271/0.2715, allocations: 0.7568 MB / 0.9969 GB, free: 8.973 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0003301/0.2718, allocations: 106.9 kB / 0.997 GB, free: 8.871 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.272, allocations: 67.33 kB / 0.997 GB, free: 8.805 MB / 0.6198 GB Notification: Performance of SimCode: time 9.41e-07/0.272, allocations: 0 / 0.997 GB, free: 8.805 MB / 0.6198 GB Notification: Performance of Templates: time 0.01222/0.2842, allocations: 8.16 MB / 1.005 GB, free: 0.7188 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)