Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_8_0_0_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.0.0/package.mo): time 3.029/3.029, allocations: 287.3 MB / 302.3 MB, free: 8.281 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.001566/0.001566, allocations: 182.7 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.122/2.122, allocations: 205.4 MB / 0.6295 GB, free: 10.63 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.001159/0.001159, allocations: 93.08 kB / 0.7428 GB, free: 6.648 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004846/0.0004847, allocations: 13.98 kB / 0.8657 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2068, allocations: 115.3 MB / 0.9783 GB, free: 28.31 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9453/1.152, allocations: 138.4 MB / 1.113 GB, free: 15.59 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002689/1.152, allocations: 71.38 kB / 1.114 GB, free: 15.59 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.07589/1.228, allocations: 18.88 MB / 1.132 GB, free: 29.32 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.063e-06/1.228, allocations: 0 / 1.132 GB, free: 29.32 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.34e-05/1.229, allocations: 3.844 kB / 1.132 GB, free: 29.32 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.001342/1.23, allocations: 0.6307 MB / 1.133 GB, free: 28.71 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/1.23, allocations: 15.52 kB / 1.133 GB, free: 28.71 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.383e-05/1.23, allocations: 48.83 kB / 1.133 GB, free: 28.66 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.599e-05/1.23, allocations: 31.27 kB / 1.133 GB, free: 28.64 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004039/1.231, allocations: 253 kB / 1.133 GB, free: 28.41 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.669e-05/1.231, allocations: 18.08 kB / 1.133 GB, free: 28.4 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.022e-05/1.231, allocations: 15.03 kB / 1.133 GB, free: 28.4 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007721/1.231, allocations: 457.9 kB / 1.133 GB, free: 28.25 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/1.231, allocations: 0 / 1.133 GB, free: 28.25 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.264e-05/1.231, allocations: 7.5 kB / 1.133 GB, free: 28.25 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/1.231, allocations: 0 / 1.133 GB, free: 28.25 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005216/1.232, allocations: 328.3 kB / 1.134 GB, free: 28.19 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008047/1.233, allocations: 0.5604 MB / 1.134 GB, free: 27.88 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001554/1.234, allocations: 1.034 MB / 1.135 GB, free: 27.63 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.351e-05/1.234, allocations: 7.406 kB / 1.135 GB, free: 27.63 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007514/1.235, allocations: 477 kB / 1.136 GB, free: 27.45 MB / 0.698 GB Notification: Performance of pre-optimization done (n=37): time 2.915e-06/1.235, allocations: 4 kB / 1.136 GB, free: 27.45 MB / 0.698 GB Notification: Performance of matching and sorting (n=37): time 0.001993/1.237, allocations: 1.114 MB / 1.137 GB, free: 27.23 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/1.237, allocations: 140.3 kB / 1.137 GB, free: 27.07 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003034/1.238, allocations: 229.9 kB / 1.137 GB, free: 26.93 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.76e-05/1.238, allocations: 36.7 kB / 1.137 GB, free: 26.9 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.443e-05/1.238, allocations: 118 kB / 1.137 GB, free: 26.82 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.839e-05/1.238, allocations: 88.34 kB / 1.137 GB, free: 26.77 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.3e-05/1.238, allocations: 10.75 kB / 1.137 GB, free: 26.77 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.000164/1.238, allocations: 346.1 kB / 1.138 GB, free: 26.44 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005368/1.239, allocations: 323.3 kB / 1.138 GB, free: 26.39 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005792/1.239, allocations: 424.5 kB / 1.138 GB, free: 26.23 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006181/1.24, allocations: 363.1 kB / 1.139 GB, free: 26.18 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/1.24, allocations: 0 / 1.139 GB, free: 26.18 MB / 0.698 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001461/1.242, allocations: 0.8327 MB / 1.14 GB, free: 25.99 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/1.242, allocations: 3.656 kB / 1.14 GB, free: 25.99 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/1.242, allocations: 3.688 kB / 1.14 GB, free: 25.99 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.313e-05/1.242, allocations: 3.781 kB / 1.14 GB, free: 25.99 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000253/1.242, allocations: 45.75 kB / 1.14 GB, free: 25.97 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/1.242, allocations: 11.67 kB / 1.14 GB, free: 25.97 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000383/1.242, allocations: 7.281 kB / 1.14 GB, free: 25.97 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003238/1.243, allocations: 217.7 kB / 1.14 GB, free: 25.86 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.0003217/1.243, allocations: 194.2 kB / 1.14 GB, free: 25.72 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.368e-05/1.243, allocations: 30.62 kB / 1.14 GB, free: 25.7 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.653e-05/1.243, allocations: 35.83 kB / 1.14 GB, free: 25.69 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.034e-06/1.243, allocations: 7.844 kB / 1.14 GB, free: 25.69 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/1.243, allocations: 3.781 kB / 1.14 GB, free: 25.69 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/1.243, allocations: 3.984 kB / 1.14 GB, free: 25.68 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002731/1.246, allocations: 1.704 MB / 1.142 GB, free: 24.92 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.984e-06/1.246, allocations: 3.844 kB / 1.142 GB, free: 24.92 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.883e-05/1.246, allocations: 19.31 kB / 1.142 GB, free: 24.91 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.558e-06/1.246, allocations: 3.75 kB / 1.142 GB, free: 24.91 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.369e-05/1.246, allocations: 22.72 kB / 1.142 GB, free: 24.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/1.246, allocations: 3.594 kB / 1.142 GB, free: 24.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/1.246, allocations: 0 / 1.142 GB, free: 24.9 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001472/1.248, allocations: 1.149 MB / 1.143 GB, free: 24.36 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/1.248, allocations: 112.1 kB / 1.143 GB, free: 24.24 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.251e-05/1.248, allocations: 7.219 kB / 1.143 GB, free: 24.24 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003937/1.248, allocations: 3.688 kB / 1.143 GB, free: 24.24 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/1.248, allocations: 52.91 kB / 1.143 GB, free: 24.22 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003295/1.249, allocations: 226 kB / 1.143 GB, free: 24.11 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002418/1.249, allocations: 168.9 kB / 1.144 GB, free: 24.02 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.8e-07/1.249, allocations: 0 / 1.144 GB, free: 24.02 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006781/1.25, allocations: 64.25 kB / 1.144 GB, free: 24.02 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.002031/1.252, allocations: 1.955 MB / 1.146 GB, free: 22.71 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001331/1.253, allocations: 0.7368 MB / 1.146 GB, free: 22.58 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/1.253, allocations: 0 / 1.146 GB, free: 22.58 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006945/1.254, allocations: 401.1 kB / 1.147 GB, free: 22.51 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002474/1.256, allocations: 307.6 kB / 1.147 GB, free: 22.41 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003313/1.26, allocations: 2.976 MB / 1.15 GB, free: 20.05 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005024/1.26, allocations: 0.7586 MB / 1.151 GB, free: 19.32 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0005434/1.261, allocations: 101 kB / 1.151 GB, free: 19.27 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002586/1.261, allocations: 118.2 kB / 1.151 GB, free: 19.24 MB / 0.698 GB Notification: Performance of SimCode: time 1.342e-06/1.261, allocations: 0 / 1.151 GB, free: 19.24 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04554/1.307, allocations: 10.33 MB / 1.161 GB, free: 12.14 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002609/1.307, allocations: 177 kB / 1.161 GB, free: 11.89 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.876/4.184, allocations: 0 / 1.161 GB, free: 11.89 MB / 0.698 GB (rm -f Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_Sources_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_Sources_Examples_DayType.fmu > Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)