Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.453/1.453, allocations: 249.5 MB / 257 MB, free: 6.867 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001058/0.001058, allocations: 179.6 kB / 316.3 MB, free: 3.25 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.504/1.504, allocations: 205.3 MB / 0.5671 GB, free: 15.92 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008911/0.0008909, allocations: 94.25 kB / 0.6714 GB, free: 5.035 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.811e-05/1.831e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2014/0.2014, allocations: 106.3 MB / 0.8853 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7173/0.9187, allocations: 132.5 MB / 1.015 GB, free: 4.906 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001928/0.9189, allocations: 77.62 kB / 1.015 GB, free: 4.863 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.0463/0.9652, allocations: 18.71 MB / 1.033 GB, free: 5.863 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.132e-06/0.9653, allocations: 4 kB / 1.033 GB, free: 5.859 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.672e-05/0.9653, allocations: 7.938 kB / 1.033 GB, free: 5.852 MB / 0.6511 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.0009697/0.9663, allocations: 0.6037 MB / 1.034 GB, free: 5.191 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/0.9664, allocations: 12.02 kB / 1.034 GB, free: 5.18 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.143e-05/0.9664, allocations: 27.62 kB / 1.034 GB, free: 5.152 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003711/0.9668, allocations: 243.3 kB / 1.034 GB, free: 4.887 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.474e-05/0.9669, allocations: 11.38 kB / 1.034 GB, free: 4.879 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.702e-05/0.9669, allocations: 15.94 kB / 1.034 GB, free: 4.863 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003992/0.9673, allocations: 305.2 kB / 1.034 GB, free: 4.617 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005942/0.9679, allocations: 446.5 kB / 1.035 GB, free: 4.234 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.9679, allocations: 0 / 1.035 GB, free: 4.234 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.35e-05/0.968, allocations: 4 kB / 1.035 GB, free: 4.23 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/0.968, allocations: 4 kB / 1.035 GB, free: 4.227 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006323/0.9686, allocations: 0.5201 MB / 1.035 GB, free: 3.727 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/0.9697, allocations: 0.9938 MB / 1.036 GB, free: 2.863 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006649/0.9704, allocations: 0.6458 MB / 1.037 GB, free: 2.316 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.066e-05/0.9704, allocations: 4 kB / 1.037 GB, free: 2.312 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005474/0.971, allocations: 481.1 kB / 1.037 GB, free: 1.895 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 1.542e-06/0.971, allocations: 0 / 1.037 GB, free: 1.895 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.001009/0.972, allocations: 0.7586 MB / 1.038 GB, free: 1.246 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.435e-05/0.9721, allocations: 139.8 kB / 1.038 GB, free: 1.082 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002045/0.9723, allocations: 223.9 kB / 1.038 GB, free: 0.8906 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.105e-05/0.9724, allocations: 29.7 kB / 1.038 GB, free: 0.8555 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.869e-05/0.9724, allocations: 123.7 kB / 1.038 GB, free: 0.7578 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 7.262e-05/0.9725, allocations: 69.52 kB / 1.039 GB, free: 0.6992 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.464e-05/0.9725, allocations: 0 / 1.039 GB, free: 0.6992 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.9727, allocations: 346.4 kB / 1.039 GB, free: 376 kB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003385/0.973, allocations: 315.7 kB / 1.039 GB, free: 120 kB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003998/0.9734, allocations: 412.9 kB / 1.04 GB, free: 15.75 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003838/0.9738, allocations: 349.2 kB / 1.04 GB, free: 15.46 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.9738, allocations: 0 / 1.04 GB, free: 15.46 MB / 0.6667 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008995/0.9748, allocations: 0.7894 MB / 1.041 GB, free: 14.79 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.9748, allocations: 4 kB / 1.041 GB, free: 14.79 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.9748, allocations: 4 kB / 1.041 GB, free: 14.79 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.9748, allocations: 4 kB / 1.041 GB, free: 14.78 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001747/0.975, allocations: 39.72 kB / 1.041 GB, free: 14.75 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.975, allocations: 8.062 kB / 1.041 GB, free: 14.74 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002314/0.9753, allocations: 19.84 kB / 1.041 GB, free: 14.72 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002453/0.9755, allocations: 218.9 kB / 1.041 GB, free: 14.51 MB / 0.6667 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 () * 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.0001351/0.9757, allocations: 141.7 kB / 1.041 GB, free: 14.37 MB / 0.6667 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008715/0.9765, allocations: 0.7615 MB / 1.042 GB, free: 13.72 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.053e-05/0.9766, allocations: 31.61 kB / 1.042 GB, free: 13.69 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.983e-05/0.9767, allocations: 33.2 kB / 1.042 GB, free: 13.68 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.9767, allocations: 11.94 kB / 1.042 GB, free: 13.66 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.9767, allocations: 0 / 1.042 GB, free: 13.66 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.9767, allocations: 7.984 kB / 1.042 GB, free: 13.66 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001716/0.9784, allocations: 1.638 MB / 1.044 GB, free: 12.18 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.9784, allocations: 0 / 1.044 GB, free: 12.18 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.061e-05/0.9785, allocations: 27.03 kB / 1.044 GB, free: 12.15 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.9785, allocations: 0 / 1.044 GB, free: 12.15 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.014e-05/0.9786, allocations: 19.47 kB / 1.044 GB, free: 12.14 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.828e-06/0.9786, allocations: 4 kB / 1.044 GB, free: 12.13 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.9786, allocations: 0 / 1.044 GB, free: 12.13 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009721/0.9795, allocations: 1.12 MB / 1.045 GB, free: 11.1 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 7.651e-05/0.9796, allocations: 104.7 kB / 1.045 GB, free: 10.98 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.444e-05/0.9797, allocations: 15.48 kB / 1.045 GB, free: 10.97 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002409/0.9799, allocations: 8 kB / 1.045 GB, free: 10.96 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.645e-05/0.98, allocations: 53.44 kB / 1.045 GB, free: 10.92 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002481/0.9803, allocations: 219.3 kB / 1.045 GB, free: 10.71 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0001388/0.9804, allocations: 162 kB / 1.045 GB, free: 10.57 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9805, allocations: 3.938 kB / 1.045 GB, free: 10.57 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0004551/0.9809, allocations: 48 kB / 1.045 GB, free: 10.52 MB / 0.6667 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) * 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.001443/0.9824, allocations: 1.908 MB / 1.047 GB, free: 8.707 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0008755/0.9833, allocations: 0.706 MB / 1.048 GB, free: 8.121 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.9833, allocations: 0 / 1.048 GB, free: 8.121 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0004246/0.9837, allocations: 400.9 kB / 1.048 GB, free: 7.793 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001541/0.9852, allocations: 323.6 kB / 1.049 GB, free: 7.512 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001405/0.9867, allocations: 0.8925 MB / 1.049 GB, free: 6.684 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003326/0.987, allocations: 0.7562 MB / 1.05 GB, free: 5.906 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0002756/0.9873, allocations: 107.2 kB / 1.05 GB, free: 5.805 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000153/0.9875, allocations: 115.9 kB / 1.05 GB, free: 5.742 MB / 0.6667 GB Notification: Performance of SimCode: time 2.7e-07/0.9875, allocations: 0 / 1.05 GB, free: 5.742 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02827/1.016, allocations: 9.774 MB / 1.06 GB, free: 12.07 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001873/1.016, allocations: 138.5 kB / 1.06 GB, free: 11.88 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.888/2.904, allocations: 0 / 1.06 GB, free: 11.88 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_Sources_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_Sources_Examples_DayType.fmu > Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)