Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.776/1.776, allocations: 288.2 MB / 303.2 MB, free: 8.145 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.001911/0.001911, allocations: 187.3 kB / 371.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.981/1.981, allocations: 205.4 MB / 0.6305 GB, free: 10.02 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.0008769/0.0008768, allocations: 102.6 kB / 0.7439 GB, free: 5.926 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003602/0.0003604, allocations: 12.16 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2305, allocations: 115.3 MB / 0.9795 GB, free: 27.6 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6923/0.9229, allocations: 137.6 MB / 1.114 GB, free: 16.25 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001842/0.9231, allocations: 69.09 kB / 1.114 GB, free: 16.25 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04786/0.971, allocations: 22.25 MB / 1.136 GB, free: 28.09 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.324e-06/0.9711, allocations: 0 / 1.136 GB, free: 28.09 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.571e-05/0.9711, allocations: 3.969 kB / 1.136 GB, free: 28.09 MB / 0.698 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.0008773/0.972, allocations: 0.6423 MB / 1.136 GB, free: 27.46 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.972, allocations: 15.58 kB / 1.136 GB, free: 27.45 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.302e-05/0.9721, allocations: 50.08 kB / 1.136 GB, free: 27.41 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.338e-05/0.9722, allocations: 30.53 kB / 1.136 GB, free: 27.39 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003159/0.9725, allocations: 254.9 kB / 1.137 GB, free: 27.16 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/0.9725, allocations: 11.62 kB / 1.137 GB, free: 27.16 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.141e-05/0.9726, allocations: 22.33 kB / 1.137 GB, free: 27.15 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004614/0.973, allocations: 460.8 kB / 1.137 GB, free: 26.99 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.973, allocations: 3.906 kB / 1.137 GB, free: 26.99 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.033e-05/0.9731, allocations: 3.438 kB / 1.137 GB, free: 26.99 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.9731, allocations: 3.969 kB / 1.137 GB, free: 26.99 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002825/0.9734, allocations: 323.6 kB / 1.137 GB, free: 26.94 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004743/0.9739, allocations: 0.5598 MB / 1.138 GB, free: 26.63 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008272/0.9747, allocations: 1.041 MB / 1.139 GB, free: 26.37 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.443e-05/0.9747, allocations: 3.812 kB / 1.139 GB, free: 26.37 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004186/0.9751, allocations: 478.8 kB / 1.139 GB, free: 26.2 MB / 0.698 GB Notification: Performance of pre-optimization done (n=37): time 1.593e-06/0.9752, allocations: 3.938 kB / 1.139 GB, free: 26.19 MB / 0.698 GB Notification: Performance of matching and sorting (n=37): time 0.001089/0.9763, allocations: 1.105 MB / 1.141 GB, free: 25.98 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.295e-05/0.9763, allocations: 147.4 kB / 1.141 GB, free: 25.81 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001831/0.9765, allocations: 232 kB / 1.141 GB, free: 25.68 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.395e-05/0.9766, allocations: 36.58 kB / 1.141 GB, free: 25.64 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 6.026e-05/0.9766, allocations: 118.3 kB / 1.141 GB, free: 25.56 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 5.422e-05/0.9767, allocations: 79.64 kB / 1.141 GB, free: 25.52 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.484e-05/0.9767, allocations: 6.125 kB / 1.141 GB, free: 25.52 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001322/0.9768, allocations: 348.1 kB / 1.141 GB, free: 25.19 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002819/0.9771, allocations: 329.1 kB / 1.142 GB, free: 25.14 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003042/0.9774, allocations: 421.1 kB / 1.142 GB, free: 24.98 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003224/0.9778, allocations: 361 kB / 1.143 GB, free: 24.93 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.9778, allocations: 0 / 1.143 GB, free: 24.93 MB / 0.698 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007686/0.9786, allocations: 0.8353 MB / 1.143 GB, free: 24.74 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.9786, allocations: 3.844 kB / 1.143 GB, free: 24.74 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.9786, allocations: 7.969 kB / 1.143 GB, free: 24.73 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.9786, allocations: 3.844 kB / 1.143 GB, free: 24.73 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.9788, allocations: 37.72 kB / 1.143 GB, free: 24.72 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.407e-06/0.9788, allocations: 11.72 kB / 1.143 GB, free: 24.72 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002071/0.979, allocations: 18.61 kB / 1.143 GB, free: 24.71 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001856/0.9792, allocations: 210.6 kB / 1.144 GB, free: 24.61 MB / 0.698 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.0001769/0.9794, allocations: 194.3 kB / 1.144 GB, free: 24.47 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.538e-05/0.9794, allocations: 27.28 kB / 1.144 GB, free: 24.45 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.472e-05/0.9795, allocations: 37.83 kB / 1.144 GB, free: 24.44 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.9795, allocations: 7.781 kB / 1.144 GB, free: 24.44 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.9795, allocations: 3.875 kB / 1.144 GB, free: 24.44 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.9795, allocations: 0 / 1.144 GB, free: 24.44 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001582/0.9811, allocations: 1.71 MB / 1.146 GB, free: 23.67 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.9811, allocations: 0 / 1.146 GB, free: 23.67 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.659e-05/0.9812, allocations: 23.56 kB / 1.146 GB, free: 23.66 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.277e-06/0.9812, allocations: 0 / 1.146 GB, free: 23.66 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.713e-05/0.9812, allocations: 26.53 kB / 1.146 GB, free: 23.65 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.9812, allocations: 0 / 1.146 GB, free: 23.65 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.9812, allocations: 3.938 kB / 1.146 GB, free: 23.64 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008025/0.982, allocations: 1.142 MB / 1.147 GB, free: 23.11 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.216e-05/0.9821, allocations: 107.7 kB / 1.147 GB, free: 22.99 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.812e-05/0.9821, allocations: 23.56 kB / 1.147 GB, free: 22.98 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002178/0.9824, allocations: 3.812 kB / 1.147 GB, free: 22.98 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.914e-05/0.9825, allocations: 52.88 kB / 1.147 GB, free: 22.96 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000174/0.9826, allocations: 222.8 kB / 1.147 GB, free: 22.85 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001194/0.9828, allocations: 172.2 kB / 1.147 GB, free: 22.76 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9828, allocations: 0 / 1.147 GB, free: 22.76 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000425/0.9832, allocations: 64.41 kB / 1.147 GB, free: 22.76 MB / 0.698 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.00122/0.9844, allocations: 1.945 MB / 1.149 GB, free: 21.46 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0006747/0.9851, allocations: 0.7373 MB / 1.15 GB, free: 21.33 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.9851, allocations: 3.844 kB / 1.15 GB, free: 21.33 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003746/0.9855, allocations: 401.7 kB / 1.15 GB, free: 21.27 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001279/0.9868, allocations: 369.3 kB / 1.151 GB, free: 21.14 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00204/0.9888, allocations: 2.971 MB / 1.154 GB, free: 18.78 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003427/0.9892, allocations: 0.7583 MB / 1.154 GB, free: 18.05 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002736/0.9895, allocations: 104.8 kB / 1.154 GB, free: 18 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001413/0.9896, allocations: 115.6 kB / 1.155 GB, free: 17.97 MB / 0.698 GB Notification: Performance of SimCode: time 6.71e-07/0.9896, allocations: 3.781 kB / 1.155 GB, free: 17.97 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01932/1.009, allocations: 10.55 MB / 1.165 GB, free: 8.887 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001513/1.009, allocations: 191.2 kB / 1.165 GB, free: 8.645 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.98/2.989, allocations: 0 / 1.165 GB, free: 8.645 MB / 0.698 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)