Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.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 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.561/1.561, allocations: 297.8 MB / 313.7 MB, free: 136 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009999/0.0009998, allocations: 178 kB / 384.6 MB, free: 10.86 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.251/1.251, allocations: 223.2 MB / 0.6626 GB, free: 4.344 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007447/0.0007447, allocations: 95.03 kB / 0.7808 GB, free: 43.89 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0003725/0.0003726, allocations: 12.62 kB / 0.9088 GB, free: 0.6445 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5941/0.5945, allocations: 120.3 MB / 1.026 GB, free: 57.22 MB / 0.698 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1796/0.7741, allocations: 140.8 MB / 1.164 GB, free: 1.398 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000189/0.7743, allocations: 61.56 kB / 1.164 GB, free: 1.34 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.05378/0.8281, allocations: 22.4 MB / 1.186 GB, free: 11 MB / 0.7605 GB Notification: Performance of FrontEnd: time 2.064e-06/0.8282, allocations: 1.281 kB / 1.186 GB, free: 11 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 1.848e-05/0.8282, allocations: 4 kB / 1.186 GB, free: 11 MB / 0.7605 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.0008912/0.8291, allocations: 0.64 MB / 1.186 GB, free: 10.27 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.8291, allocations: 10.47 kB / 1.186 GB, free: 10.27 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.467e-05/0.8292, allocations: 28.56 kB / 1.186 GB, free: 10.24 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002962/0.8295, allocations: 251 kB / 1.187 GB, free: 9.953 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.985e-05/0.8296, allocations: 12.66 kB / 1.187 GB, free: 9.941 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.138e-05/0.8296, allocations: 16.38 kB / 1.187 GB, free: 9.926 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005597/0.8302, allocations: 467.2 kB / 1.187 GB, free: 9.453 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.8302, allocations: 4.125 kB / 1.187 GB, free: 9.449 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.047e-05/0.8302, allocations: 7.938 kB / 1.187 GB, free: 9.441 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.8302, allocations: 4 kB / 1.187 GB, free: 9.438 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003765/0.8306, allocations: 323.8 kB / 1.187 GB, free: 9.121 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005889/0.8312, allocations: 0.5586 MB / 1.188 GB, free: 8.504 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.8323, allocations: 1.021 MB / 1.189 GB, free: 7.445 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007003/0.833, allocations: 0.6563 MB / 1.19 GB, free: 6.777 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.8331, allocations: 4 kB / 1.19 GB, free: 6.773 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005193/0.8336, allocations: 489 kB / 1.19 GB, free: 6.273 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=37): time 3.257e-06/0.8336, allocations: 4 kB / 1.19 GB, free: 6.27 MB / 0.7605 GB Notification: Performance of matching and sorting (n=37): time 0.001329/0.8349, allocations: 1.112 MB / 1.191 GB, free: 5.152 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.259e-05/0.835, allocations: 136.5 kB / 1.191 GB, free: 4.988 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002174/0.8353, allocations: 256.8 kB / 1.192 GB, free: 4.73 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/0.8353, allocations: 33.7 kB / 1.192 GB, free: 4.691 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 6.637e-05/0.8354, allocations: 125.1 kB / 1.192 GB, free: 4.566 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 7.414e-05/0.8354, allocations: 71.06 kB / 1.192 GB, free: 4.496 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.771e-05/0.8355, allocations: 12 kB / 1.192 GB, free: 4.484 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.8356, allocations: 346.8 kB / 1.192 GB, free: 4.137 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003674/0.836, allocations: 328.6 kB / 1.192 GB, free: 3.816 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004193/0.8364, allocations: 422.5 kB / 1.193 GB, free: 3.367 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008403/0.8372, allocations: 0.7655 MB / 1.194 GB, free: 2.566 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.8373, allocations: 3.938 kB / 1.194 GB, free: 2.562 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001069/0.8383, allocations: 0.8389 MB / 1.194 GB, free: 1.719 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/0.8384, allocations: 11.94 kB / 1.194 GB, free: 1.707 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.8384, allocations: 0 / 1.194 GB, free: 1.707 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.66e-05/0.8384, allocations: 8 kB / 1.194 GB, free: 1.699 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001589/0.8386, allocations: 39.89 kB / 1.194 GB, free: 1.66 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/0.8386, allocations: 8.062 kB / 1.195 GB, free: 1.652 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000211/0.8388, allocations: 19.97 kB / 1.195 GB, free: 1.633 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002677/0.8391, allocations: 211.6 kB / 1.195 GB, free: 1.426 MB / 0.7605 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.0002404/0.8393, allocations: 189.6 kB / 1.195 GB, free: 1.23 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.13e-05/0.8394, allocations: 39.56 kB / 1.195 GB, free: 1.191 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.534e-05/0.8395, allocations: 38.17 kB / 1.195 GB, free: 1.156 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.8395, allocations: 4 kB / 1.195 GB, free: 1.152 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.8395, allocations: 0 / 1.195 GB, free: 1.152 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.8395, allocations: 64 / 1.195 GB, free: 1.152 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002086/0.8416, allocations: 1.714 MB / 1.197 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.8416, allocations: 0 / 1.197 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.285e-05/0.8417, allocations: 23.97 kB / 1.197 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.8417, allocations: 0 / 1.197 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.826e-05/0.8417, allocations: 19.97 kB / 1.197 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.58e-06/0.8417, allocations: 7.938 kB / 1.197 GB, free: 15.33 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.8417, allocations: 0 / 1.197 GB, free: 15.33 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.8428, allocations: 1.115 MB / 1.198 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 6.986e-05/0.8429, allocations: 100.7 kB / 1.198 GB, free: 14.08 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.597e-05/0.8429, allocations: 15.92 kB / 1.198 GB, free: 14.06 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/0.8431, allocations: 12 kB / 1.198 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.575e-05/0.8432, allocations: 55.86 kB / 1.198 GB, free: 14 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002369/0.8435, allocations: 227.7 kB / 1.198 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001508/0.8436, allocations: 176.4 kB / 1.198 GB, free: 13.6 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8437, allocations: 3.938 kB / 1.198 GB, free: 13.6 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0004476/0.8441, allocations: 64 kB / 1.198 GB, free: 13.54 MB / 0.7761 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.0001763/0.8443, allocations: 135.7 kB / 1.199 GB, free: 13.39 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0008965/0.8452, allocations: 0.7261 MB / 1.199 GB, free: 12.67 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.8452, allocations: 0 / 1.199 GB, free: 12.67 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.000478/0.8457, allocations: 407.8 kB / 1.2 GB, free: 12.27 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001569/0.8473, allocations: 377.2 kB / 1.2 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001279/0.8486, allocations: 1.014 MB / 1.201 GB, free: 10.86 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003399/0.8489, allocations: 0.7608 MB / 1.202 GB, free: 10.08 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0002805/0.8492, allocations: 90.92 kB / 1.202 GB, free: 9.992 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.8493, allocations: 67.38 kB / 1.202 GB, free: 9.926 MB / 0.7761 GB Notification: Performance of SimCode: time 2.2e-07/0.8493, allocations: 0 / 1.202 GB, free: 9.926 MB / 0.7761 GB Notification: Performance of Templates: time 0.01204/0.8614, allocations: 8.315 MB / 1.21 GB, free: 1.719 MB / 0.7761 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)