Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType") translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.042/2.042, allocations: 391.2 MB / 407 MB, free: 10.79 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 191.4 kB / 499.1 MB, free: 4.602 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 222.9 MB / 0.7948 GB, free: 15.8 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009376/0.0009376, allocations: 103.7 kB / 0.9329 GB, free: 7.051 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001035/0.001035, allocations: 51.94 kB / 1.081 GB, free: 218.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2039/0.2049, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType): time 0.001628/0.2066, allocations: 0.7483 MB / 1.219 GB, free: 116.4 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.0004467/0.2071, allocations: 267.2 kB / 1.219 GB, free: 116.2 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.742e-05/0.2071, allocations: 0 / 1.219 GB, free: 116.2 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.2072, allocations: 7.922 kB / 1.219 GB, free: 116.2 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 4.066e-05/0.2073, allocations: 23.8 kB / 1.219 GB, free: 116.2 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002469/0.2075, allocations: 79.86 kB / 1.219 GB, free: 116.1 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.00018/0.2077, allocations: 228 kB / 1.219 GB, free: 115.9 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 4.329e-05/0.2078, allocations: 13.11 kB / 1.219 GB, free: 115.8 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 4.724e-05/0.2078, allocations: 75.81 kB / 1.22 GB, free: 115.8 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001069/0.2079, allocations: 103.7 kB / 1.22 GB, free: 115.7 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 3.39e-05/0.208, allocations: 8 kB / 1.22 GB, free: 115.7 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 2.888e-05/0.208, allocations: 8 kB / 1.22 GB, free: 115.6 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 7.137e-05/0.2081, allocations: 79.78 kB / 1.22 GB, free: 115.6 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 7.492e-05/0.2082, allocations: 95.39 kB / 1.22 GB, free: 115.5 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001676/0.2083, allocations: 283 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2083, allocations: 0 / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of FrontEnd: time 7.21e-07/0.2084, allocations: 4 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of Transformations before backend: time 3.947e-06/0.2084, allocations: 0 / 1.22 GB, free: 115.2 MB / 0.823 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.0006679/0.209, allocations: 0.7 MB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.2091, allocations: 15.98 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.698e-05/0.2091, allocations: 32.55 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002311/0.2094, allocations: 266.7 kB / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.2094, allocations: 16.66 kB / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.808e-05/0.2094, allocations: 20.36 kB / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003924/0.2098, allocations: 459.3 kB / 1.222 GB, free: 113.6 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.128e-06/0.2098, allocations: 4.188 kB / 1.222 GB, free: 113.6 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.2099, allocations: 7.938 kB / 1.222 GB, free: 113.6 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.2099, allocations: 7.938 kB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002682/0.2102, allocations: 323.8 kB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003807/0.2105, allocations: 0.5663 MB / 1.222 GB, free: 112.6 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007958/0.2113, allocations: 1.034 MB / 1.223 GB, free: 111.5 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004953/0.2118, allocations: 0.6577 MB / 1.224 GB, free: 110.9 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.701e-05/0.2119, allocations: 11.92 kB / 1.224 GB, free: 110.9 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00041/0.2123, allocations: 474.3 kB / 1.225 GB, free: 110.4 MB / 0.823 GB Notification: Performance of pre-optimization done (n=37): time 1.413e-06/0.2123, allocations: 0 / 1.225 GB, free: 110.4 MB / 0.823 GB Notification: Performance of matching and sorting (n=37): time 0.0009988/0.2133, allocations: 1.115 MB / 1.226 GB, free: 109.2 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/0.2134, allocations: 140.4 kB / 1.226 GB, free: 109.1 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001468/0.2135, allocations: 248.9 kB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.059e-05/0.2135, allocations: 41.7 kB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 4.524e-05/0.2136, allocations: 129.1 kB / 1.226 GB, free: 108.6 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 4.942e-05/0.2136, allocations: 79.14 kB / 1.226 GB, free: 108.6 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.2137, allocations: 110.1 kB / 1.226 GB, free: 108.5 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 5.227e-05/0.2138, allocations: 338.8 kB / 1.227 GB, free: 108.1 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002705/0.2141, allocations: 332.7 kB / 1.227 GB, free: 107.8 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002921/0.2144, allocations: 426.5 kB / 1.227 GB, free: 107.3 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005832/0.215, allocations: 0.7673 MB / 1.228 GB, free: 106.5 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.215, allocations: 0 / 1.228 GB, free: 106.5 MB / 0.823 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0006843/0.2157, allocations: 0.8352 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.2157, allocations: 9.188 kB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.2157, allocations: 4.078 kB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.2157, allocations: 7.938 kB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.2159, allocations: 43.89 kB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.2159, allocations: 11.92 kB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002014/0.2161, allocations: 27.75 kB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001924/0.2163, allocations: 275.5 kB / 1.229 GB, free: 105.3 MB / 0.823 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.000126/0.2164, allocations: 186.4 kB / 1.229 GB, free: 105.1 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.72e-05/0.2164, allocations: 35.94 kB / 1.23 GB, free: 105.1 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.069e-05/0.2165, allocations: 34.17 kB / 1.23 GB, free: 105.1 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.2165, allocations: 7.984 kB / 1.23 GB, free: 105.1 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.2165, allocations: 0 / 1.23 GB, free: 105.1 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.2165, allocations: 4 kB / 1.23 GB, free: 105.1 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001345/0.2179, allocations: 1.718 MB / 1.231 GB, free: 103.3 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.2179, allocations: 0 / 1.231 GB, free: 103.3 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.49e-05/0.2179, allocations: 27.91 kB / 1.231 GB, free: 103.3 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.218, allocations: 0 / 1.231 GB, free: 103.3 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.286e-05/0.218, allocations: 23.97 kB / 1.231 GB, free: 103.2 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.218, allocations: 0 / 1.231 GB, free: 103.2 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.218, allocations: 0 / 1.231 GB, free: 103.2 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.2192, allocations: 2.183 MB / 1.233 GB, free: 101 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.649e-05/0.2192, allocations: 108.6 kB / 1.234 GB, free: 100.9 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.283e-05/0.2193, allocations: 15.98 kB / 1.234 GB, free: 100.8 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002274/0.2195, allocations: 15.94 kB / 1.234 GB, free: 100.8 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.52e-05/0.2196, allocations: 48.06 kB / 1.234 GB, free: 100.8 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001844/0.2198, allocations: 279.4 kB / 1.234 GB, free: 100.5 MB / 0.823 GB Notification: Performance of sorting global known variables: time 9.357e-05/0.2199, allocations: 176.5 kB / 1.234 GB, free: 100.3 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2199, allocations: 0 / 1.234 GB, free: 100.3 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0004752/0.2204, allocations: 60 kB / 1.234 GB, free: 100.3 MB / 0.823 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.0001146/0.2205, allocations: 141.6 kB / 1.234 GB, free: 100.1 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0006292/0.2211, allocations: 0.7411 MB / 1.235 GB, free: 99.39 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2211, allocations: 0 / 1.235 GB, free: 99.39 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003529/0.2215, allocations: 411.7 kB / 1.235 GB, free: 98.99 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001491/0.223, allocations: 427.3 kB / 1.236 GB, free: 98.58 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.224, allocations: 1.261 MB / 1.237 GB, free: 97.27 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001734/0.2242, allocations: 0.7686 MB / 1.238 GB, free: 96.47 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.0002217/0.2245, allocations: 94.89 kB / 1.238 GB, free: 96.38 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.2246, allocations: 67.38 kB / 1.238 GB, free: 96.32 MB / 0.823 GB Notification: Performance of SimCode: time 8.12e-07/0.2246, allocations: 0 / 1.238 GB, free: 96.32 MB / 0.823 GB Notification: Performance of Templates: time 0.009887/0.2345, allocations: 9.21 MB / 1.247 GB, free: 87.19 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)