Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.Sources.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.Sources.Examples.DayType,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_maint_8_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 8.0.1-maint.8.0.x/package.mo): time 1.688/1.688, allocations: 288.2 MB / 303.2 MB, free: 8.102 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.001079/0.001079, allocations: 177 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.714/1.714, 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.001109/0.001109, allocations: 102.6 kB / 0.7439 GB, free: 5.949 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005609/0.0005612, allocations: 17.7 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2273/0.2279, allocations: 115.3 MB / 0.9795 GB, free: 27.61 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6594/0.8874, allocations: 138.6 MB / 1.115 GB, free: 16.46 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002232/0.8877, allocations: 76.75 kB / 1.115 GB, free: 16.46 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04299/0.9307, allocations: 18.88 MB / 1.133 GB, free: 29.33 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.165e-06/0.9308, allocations: 0 / 1.133 GB, free: 29.33 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.379e-05/0.9308, allocations: 3.938 kB / 1.133 GB, free: 29.33 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.001106/0.9319, allocations: 0.6293 MB / 1.134 GB, free: 28.72 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.932, allocations: 15.48 kB / 1.134 GB, free: 28.71 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.924e-05/0.932, allocations: 48.95 kB / 1.134 GB, free: 28.67 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.516e-05/0.9321, allocations: 34.94 kB / 1.134 GB, free: 28.65 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003312/0.9325, allocations: 250 kB / 1.134 GB, free: 28.41 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.076e-05/0.9325, allocations: 14.25 kB / 1.134 GB, free: 28.41 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.303e-05/0.9326, allocations: 15.28 kB / 1.134 GB, free: 28.41 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004967/0.9331, allocations: 464.2 kB / 1.135 GB, free: 28.25 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.9331, allocations: 0 / 1.135 GB, free: 28.25 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.291e-05/0.9331, allocations: 7.062 kB / 1.135 GB, free: 28.25 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.9331, allocations: 7.75 kB / 1.135 GB, free: 28.25 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003089/0.9334, allocations: 323.6 kB / 1.135 GB, free: 28.2 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005326/0.934, allocations: 0.5614 MB / 1.136 GB, free: 27.89 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009117/0.9349, allocations: 1.035 MB / 1.137 GB, free: 27.63 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.589e-05/0.9349, allocations: 7.797 kB / 1.137 GB, free: 27.63 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004968/0.9354, allocations: 474.7 kB / 1.137 GB, free: 27.46 MB / 0.698 GB Notification: Performance of pre-optimization done (n=37): time 2.525e-06/0.9355, allocations: 4 kB / 1.137 GB, free: 27.45 MB / 0.698 GB Notification: Performance of matching and sorting (n=37): time 0.001299/0.9368, allocations: 1.11 MB / 1.138 GB, free: 27.23 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.584e-05/0.9369, allocations: 139.7 kB / 1.138 GB, free: 27.07 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002188/0.9371, allocations: 235.7 kB / 1.139 GB, free: 26.93 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.311e-05/0.9371, allocations: 36.61 kB / 1.139 GB, free: 26.9 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 6.98e-05/0.9372, allocations: 123.2 kB / 1.139 GB, free: 26.82 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 6.33e-05/0.9373, allocations: 71.61 kB / 1.139 GB, free: 26.77 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.587e-05/0.9373, allocations: 10.78 kB / 1.139 GB, free: 26.77 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001389/0.9375, allocations: 349.2 kB / 1.139 GB, free: 26.44 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000317/0.9378, allocations: 326.1 kB / 1.139 GB, free: 26.39 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000349/0.9381, allocations: 421.5 kB / 1.14 GB, free: 26.23 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003486/0.9385, allocations: 360.7 kB / 1.14 GB, free: 26.18 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.9385, allocations: 0 / 1.14 GB, free: 26.18 MB / 0.698 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008082/0.9393, allocations: 0.8278 MB / 1.141 GB, free: 26 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.9393, allocations: 7.969 kB / 1.141 GB, free: 26 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.9394, allocations: 7.859 kB / 1.141 GB, free: 26 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.9394, allocations: 3.844 kB / 1.141 GB, free: 26 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.9395, allocations: 38.38 kB / 1.141 GB, free: 25.98 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.9396, allocations: 11.62 kB / 1.141 GB, free: 25.98 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002328/0.9398, allocations: 15.58 kB / 1.141 GB, free: 25.98 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002069/0.94, allocations: 222 kB / 1.141 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.0002139/0.9402, allocations: 187.5 kB / 1.141 GB, free: 25.73 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.173e-05/0.9403, allocations: 30.47 kB / 1.141 GB, free: 25.71 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.25e-05/0.9404, allocations: 42.36 kB / 1.142 GB, free: 25.7 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.9404, allocations: 3.781 kB / 1.142 GB, free: 25.7 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/0.9404, allocations: 3.75 kB / 1.142 GB, free: 25.7 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.9404, allocations: 0 / 1.142 GB, free: 25.7 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001654/0.9421, allocations: 1.706 MB / 1.143 GB, free: 24.93 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.9421, allocations: 0 / 1.143 GB, free: 24.93 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.094e-05/0.9421, allocations: 26.56 kB / 1.143 GB, free: 24.91 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.9421, allocations: 0 / 1.143 GB, free: 24.91 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.749e-05/0.9422, allocations: 26.81 kB / 1.143 GB, free: 24.91 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.9422, allocations: 0 / 1.143 GB, free: 24.91 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.9422, allocations: 0 / 1.143 GB, free: 24.91 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009201/0.9431, allocations: 1.14 MB / 1.144 GB, free: 24.37 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 8.292e-05/0.9432, allocations: 108.4 kB / 1.144 GB, free: 24.25 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.418e-05/0.9433, allocations: 19.44 kB / 1.144 GB, free: 24.24 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.9435, allocations: 14.09 kB / 1.144 GB, free: 24.24 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.197e-05/0.9436, allocations: 50.25 kB / 1.145 GB, free: 24.22 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002277/0.9438, allocations: 221.3 kB / 1.145 GB, free: 24.11 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001454/0.944, allocations: 174.8 kB / 1.145 GB, free: 24.02 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.944, allocations: 0 / 1.145 GB, free: 24.02 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0005297/0.9445, allocations: 61.88 kB / 1.145 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.001416/0.946, allocations: 1.94 MB / 1.147 GB, free: 22.73 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0007859/0.9468, allocations: 0.7383 MB / 1.148 GB, free: 22.6 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.9468, allocations: 3.938 kB / 1.148 GB, free: 22.59 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004188/0.9472, allocations: 410.3 kB / 1.148 GB, free: 22.52 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001266/0.9485, allocations: 312.4 kB / 1.148 GB, free: 22.42 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0028/0.9513, allocations: 2.969 MB / 1.151 GB, free: 20.05 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005208/0.9518, allocations: 0.759 MB / 1.152 GB, free: 19.32 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0004309/0.9523, allocations: 104.2 kB / 1.152 GB, free: 19.27 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001788/0.9525, allocations: 124.6 kB / 1.152 GB, free: 19.24 MB / 0.698 GB Notification: Performance of SimCode: time 1.142e-06/0.9525, allocations: 0 / 1.152 GB, free: 19.24 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02172/0.9742, allocations: 10.34 MB / 1.162 GB, free: 11.01 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001366/0.9744, allocations: 182.6 kB / 1.162 GB, free: 10.77 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.956/2.93, allocations: 2.812 kB / 1.162 GB, free: 10.77 MB / 0.698 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.Sources.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_Sources_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_Sources_Examples_DayType.fmu > Buildings_maint.8.0.x_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)