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/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_8_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_8_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.664/1.664, allocations: 289.9 MB / 297.4 MB, free: 6.367 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.0009425/0.0009425, allocations: 180.8 kB / 366.7 MB, free: 1.641 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.589/1.589, allocations: 205.2 MB / 0.626 GB, free: 7.168 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009198/0.0009198, allocations: 89.62 kB / 0.74 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.715e-05/1.713e-05, allocations: 4 kB / 0.8598 GB, free: 12.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7212/0.7212, allocations: 116.3 MB / 0.9733 GB, free: 76.01 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1951/0.9163, allocations: 138.8 MB / 1.109 GB, free: 11.27 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.9166, allocations: 75.89 kB / 1.109 GB, free: 11.2 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.05057/0.9672, allocations: 18.73 MB / 1.127 GB, free: 8.531 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.443e-06/0.9672, allocations: 1.469 kB / 1.127 GB, free: 8.531 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.508e-05/0.9673, allocations: 4 kB / 1.127 GB, free: 8.527 MB / 0.7292 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.001142/0.9684, allocations: 0.6047 MB / 1.128 GB, free: 7.848 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.569e-05/0.9685, allocations: 13.25 kB / 1.128 GB, free: 7.836 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001331/0.9686, allocations: 23.72 kB / 1.128 GB, free: 7.812 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004546/0.9691, allocations: 255 kB / 1.128 GB, free: 7.527 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.151e-05/0.9692, allocations: 4 kB / 1.128 GB, free: 7.523 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.092e-05/0.9692, allocations: 12 kB / 1.128 GB, free: 7.512 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004371/0.9697, allocations: 306.7 kB / 1.128 GB, free: 7.215 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000573/0.9702, allocations: 439.7 kB / 1.129 GB, free: 6.773 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.9703, allocations: 4 kB / 1.129 GB, free: 6.77 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.782e-05/0.9703, allocations: 7.984 kB / 1.129 GB, free: 6.762 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.799e-06/0.9703, allocations: 4 kB / 1.129 GB, free: 6.758 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007224/0.9711, allocations: 0.5246 MB / 1.129 GB, free: 6.191 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.9723, allocations: 0.9976 MB / 1.13 GB, free: 5.16 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007494/0.973, allocations: 0.6477 MB / 1.131 GB, free: 4.5 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.379e-05/0.9731, allocations: 7.094 kB / 1.131 GB, free: 4.496 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005919/0.9737, allocations: 470 kB / 1.131 GB, free: 4.012 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 1.974e-06/0.9737, allocations: 0 / 1.131 GB, free: 4.012 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.001108/0.9748, allocations: 0.7617 MB / 1.132 GB, free: 3.246 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.383e-05/0.9749, allocations: 140.5 kB / 1.132 GB, free: 3.078 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002301/0.9751, allocations: 220.4 kB / 1.133 GB, free: 2.859 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.875e-05/0.9752, allocations: 33.7 kB / 1.133 GB, free: 2.82 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 7.873e-05/0.9753, allocations: 116.9 kB / 1.133 GB, free: 2.703 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 8.298e-05/0.9754, allocations: 71.08 kB / 1.133 GB, free: 2.633 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.546e-05/0.9754, allocations: 0 / 1.133 GB, free: 2.633 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.000151/0.9755, allocations: 342.8 kB / 1.133 GB, free: 2.289 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003786/0.9759, allocations: 316.7 kB / 1.133 GB, free: 1.98 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000441/0.9764, allocations: 413.6 kB / 1.134 GB, free: 1.539 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004338/0.9768, allocations: 347.7 kB / 1.134 GB, free: 1.199 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.678e-06/0.9768, allocations: 0 / 1.134 GB, free: 1.199 MB / 0.7292 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001009/0.9779, allocations: 0.7912 MB / 1.135 GB, free: 412 kB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.9779, allocations: 9.219 kB / 1.135 GB, free: 404 kB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.9779, allocations: 7.938 kB / 1.135 GB, free: 396 kB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.06e-05/0.9779, allocations: 4 kB / 1.135 GB, free: 392 kB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001766/0.9781, allocations: 47.84 kB / 1.135 GB, free: 344 kB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.9781, allocations: 7.984 kB / 1.135 GB, free: 336 kB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002508/0.9784, allocations: 9.5 kB / 1.135 GB, free: 328 kB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003009/0.9787, allocations: 208.9 kB / 1.135 GB, free: 120 kB / 0.7292 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.0002049/0.9789, allocations: 138.2 kB / 1.135 GB, free: 15.97 MB / 0.7448 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001011/0.9799, allocations: 0.7714 MB / 1.136 GB, free: 15.2 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.035e-05/0.98, allocations: 27.72 kB / 1.136 GB, free: 15.17 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.929e-05/0.9801, allocations: 38.23 kB / 1.136 GB, free: 15.14 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.9801, allocations: 4 kB / 1.136 GB, free: 15.13 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.9801, allocations: 0 / 1.136 GB, free: 15.13 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.9801, allocations: 11.97 kB / 1.136 GB, free: 15.12 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001862/0.982, allocations: 1.634 MB / 1.138 GB, free: 13.44 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.982, allocations: 0 / 1.138 GB, free: 13.44 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.845e-05/0.9821, allocations: 29.97 kB / 1.138 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.9821, allocations: 3.188 kB / 1.138 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.157e-05/0.9821, allocations: 19.97 kB / 1.138 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.479e-06/0.9821, allocations: 8 kB / 1.138 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.9821, allocations: 0 / 1.138 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001183/0.9833, allocations: 1.123 MB / 1.139 GB, free: 12.23 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 8.697e-05/0.9834, allocations: 104.6 kB / 1.139 GB, free: 12.11 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.695e-05/0.9835, allocations: 11.94 kB / 1.139 GB, free: 12.1 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002284/0.9837, allocations: 0 / 1.139 GB, free: 12.1 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.87e-05/0.9838, allocations: 51.94 kB / 1.139 GB, free: 12.05 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002548/0.9841, allocations: 222.5 kB / 1.139 GB, free: 11.83 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001525/0.9843, allocations: 160.5 kB / 1.139 GB, free: 11.67 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9843, allocations: 4 kB / 1.139 GB, free: 11.67 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0005028/0.9848, allocations: 52 kB / 1.139 GB, free: 11.62 MB / 0.7448 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.001532/0.9863, allocations: 1.912 MB / 1.141 GB, free: 9.664 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0008911/0.9872, allocations: 0.7027 MB / 1.142 GB, free: 8.961 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.9872, allocations: 256 / 1.142 GB, free: 8.961 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0004818/0.9877, allocations: 405.7 kB / 1.142 GB, free: 8.566 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00158/0.9893, allocations: 307.7 kB / 1.143 GB, free: 8.285 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001533/0.9909, allocations: 0.8925 MB / 1.144 GB, free: 7.348 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003907/0.9913, allocations: 0.7661 MB / 1.144 GB, free: 6.559 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0003511/0.9916, allocations: 102.7 kB / 1.144 GB, free: 6.465 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001859/0.9918, allocations: 111.4 kB / 1.145 GB, free: 6.355 MB / 0.7448 GB Notification: Performance of SimCode: time 3.61e-07/0.9918, allocations: 0 / 1.145 GB, free: 6.355 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03036/1.022, allocations: 9.776 MB / 1.154 GB, free: 12.76 MB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001904/1.022, allocations: 125.4 kB / 1.154 GB, free: 12.57 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.04/3.062, allocations: 0 / 1.154 GB, free: 12.57 MB / 0.7605 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_Sources_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_Sources_Examples_DayType.fmu > Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)