Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.Sources.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Sources.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 106.6 kB / 16.29 MB, free: 6.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 184 kB / 17.22 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.779/1.779, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 2.042/2.042, allocations: 292.3 MB / 0.5495 GB, free: 17.6 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001757, allocations: 67.91 kB / 0.6722 GB, free: 6.504 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/0.3323, allocations: 114.5 MB / 0.7841 GB, free: 3.844 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.003294/0.3356, allocations: 1.427 MB / 0.7855 GB, free: 2.398 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0007451/0.3364, allocations: 283.1 kB / 0.7857 GB, free: 2.121 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.028e-05/0.3365, allocations: 0 / 0.7857 GB, free: 2.121 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001721/0.3367, allocations: 15.86 kB / 0.7857 GB, free: 2.105 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 6.225e-05/0.3367, allocations: 23.78 kB / 0.7858 GB, free: 2.082 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004016/0.3372, allocations: 87.84 kB / 0.7858 GB, free: 1.996 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003418/0.3375, allocations: 239.9 kB / 0.7861 GB, free: 1.762 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 6.82e-05/0.3376, allocations: 5.125 kB / 0.7861 GB, free: 1.758 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001102/0.3377, allocations: 87.81 kB / 0.7862 GB, free: 1.672 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001869/0.3379, allocations: 103.7 kB / 0.7863 GB, free: 1.57 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 5.472e-05/0.338, allocations: 16 kB / 0.7863 GB, free: 1.555 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 4.478e-05/0.338, allocations: 16 kB / 0.7863 GB, free: 1.539 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001273/0.3381, allocations: 83.78 kB / 0.7864 GB, free: 1.457 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001577/0.3383, allocations: 107.3 kB / 0.7865 GB, free: 1.352 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003353/0.3386, allocations: 263.3 kB / 0.7867 GB, free: 1.094 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.3387, allocations: 0 / 0.7867 GB, free: 1.094 MB / 0.6544 GB Notification: Performance of FrontEnd: time 3.917e-06/0.3387, allocations: 4 kB / 0.7867 GB, free: 1.09 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.314e-05/0.3387, allocations: 0 / 0.7867 GB, free: 1.09 MB / 0.6544 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.001144/0.3398, allocations: 0.6862 MB / 0.7874 GB, free: 328 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.3399, allocations: 12.03 kB / 0.7874 GB, free: 316 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.484e-05/0.34, allocations: 28.56 kB / 0.7874 GB, free: 288 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.7005/1.04, allocations: 256.7 kB / 0.7877 GB, free: 49.17 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.439e-05/1.041, allocations: 13.73 kB / 0.7877 GB, free: 49.17 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/1.041, allocations: 18.23 kB / 0.7877 GB, free: 49.17 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006366/1.041, allocations: 464.7 kB / 0.7882 GB, free: 49.11 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/1.041, allocations: 1.688 kB / 0.7882 GB, free: 49.11 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.069e-05/1.041, allocations: 7 kB / 0.7882 GB, free: 49.11 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/1.041, allocations: 3.844 kB / 0.7882 GB, free: 49.11 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003623/1.042, allocations: 325.3 kB / 0.7885 GB, free: 49.11 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006549/1.042, allocations: 0.5647 MB / 0.789 GB, free: 48.89 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001101/1.044, allocations: 1.031 MB / 0.79 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006502/1.044, allocations: 0.664 MB / 0.7907 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.69e-05/1.044, allocations: 8.25 kB / 0.7907 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006005/1.045, allocations: 481.2 kB / 0.7911 GB, free: 48.68 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=37): time 2.234e-06/1.045, allocations: 1.5 kB / 0.7912 GB, free: 48.68 MB / 0.6544 GB Notification: Performance of matching and sorting (n=37): time 0.001377/1.046, allocations: 1.109 MB / 0.7922 GB, free: 48.65 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.217e-05/1.046, allocations: 149.9 kB / 0.7924 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002153/1.047, allocations: 255.8 kB / 0.7926 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.976e-05/1.047, allocations: 36.33 kB / 0.7927 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.486e-05/1.047, allocations: 122.2 kB / 0.7928 GB, free: 48.28 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 6.803e-05/1.047, allocations: 79.44 kB / 0.7928 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001373/1.047, allocations: 107 kB / 0.7929 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 8.45e-05/1.047, allocations: 349.4 kB / 0.7933 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003722/1.047, allocations: 329.9 kB / 0.7936 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004266/1.048, allocations: 421.3 kB / 0.794 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008287/1.049, allocations: 0.7718 MB / 0.7948 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/1.049, allocations: 0 / 0.7948 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001094/1.05, allocations: 0.8262 MB / 0.7956 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/1.05, allocations: 8.5 kB / 0.7956 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/1.05, allocations: 2.656 kB / 0.7956 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.55e-05/1.05, allocations: 11.48 kB / 0.7956 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000177/1.05, allocations: 45.39 kB / 0.7956 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.644e-05/1.05, allocations: 10.94 kB / 0.7956 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002438/1.05, allocations: 37.44 kB / 0.7957 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003033/1.051, allocations: 265.9 kB / 0.7959 GB, free: 47.64 MB / 0.6544 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.0002088/1.051, allocations: 193.4 kB / 0.7961 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.309e-05/1.051, allocations: 31.97 kB / 0.7961 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.331e-05/1.051, allocations: 35.53 kB / 0.7962 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.063e-05/1.051, allocations: 5.25 kB / 0.7962 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/1.051, allocations: 5.406 kB / 0.7962 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/1.051, allocations: 6.438 kB / 0.7962 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002394/1.053, allocations: 1.708 MB / 0.7979 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/1.053, allocations: 1.469 kB / 0.7979 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.803e-05/1.053, allocations: 18.95 kB / 0.7979 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.175e-06/1.054, allocations: 6.844 kB / 0.7979 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.974e-05/1.054, allocations: 22.14 kB / 0.7979 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.511e-06/1.054, allocations: 8.219 kB / 0.7979 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/1.054, allocations: 1.156 kB / 0.7979 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001346/1.055, allocations: 1.114 MB / 0.799 GB, free: 46.2 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 6.695e-05/1.055, allocations: 108.9 kB / 0.7991 GB, free: 46.08 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.604e-05/1.055, allocations: 13.69 kB / 0.7991 GB, free: 46.07 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000249/1.055, allocations: 8.141 kB / 0.7991 GB, free: 46.07 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000136/1.055, allocations: 50.84 kB / 0.7992 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004266/1.056, allocations: 277.5 kB / 0.7994 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0002116/1.056, allocations: 173.9 kB / 0.7996 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/1.056, allocations: 0.75 kB / 0.7996 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0005346/1.057, allocations: 63.78 kB / 0.7997 GB, free: 45.93 MB / 0.6544 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.0001705/1.057, allocations: 135.6 kB / 0.7998 GB, free: 45.83 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001271/1.058, allocations: 0.7516 MB / 0.8005 GB, free: 45.7 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/1.058, allocations: 0 / 0.8005 GB, free: 45.7 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0006618/1.059, allocations: 407.6 kB / 0.8009 GB, free: 45.62 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001747/1.061, allocations: 374.9 kB / 0.8013 GB, free: 45.57 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001795/1.062, allocations: 0.9675 MB / 0.8022 GB, free: 45.21 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003424/1.063, allocations: 0.7511 MB / 0.803 GB, free: 44.52 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0004498/1.063, allocations: 93.7 kB / 0.803 GB, free: 44.51 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001845/1.063, allocations: 71.16 kB / 0.8031 GB, free: 44.49 MB / 0.6544 GB Notification: Performance of SimCode: time 1.743e-06/1.063, allocations: 0 / 0.8031 GB, free: 44.49 MB / 0.6544 GB Notification: Performance of Templates: time 0.02146/1.085, allocations: 8.822 MB / 0.8117 GB, free: 44.09 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_8_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_8_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)