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.638/1.638, allocations: 289.7 MB / 302.2 MB, free: 2.164 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.001052/0.001052, allocations: 183.1 kB / 371.6 MB, free: 3.43 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.458/1.458, allocations: 205.1 MB / 0.6309 GB, free: 11.76 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.0009173/0.0009172, allocations: 90.53 kB / 0.745 GB, free: 54.46 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.343e-05/3.355e-05, allocations: 0 / 0.8663 GB, free: 14.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2589/0.2589, allocations: 116.3 MB / 0.9799 GB, free: 10.52 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7555/1.015, allocations: 139.5 MB / 1.116 GB, free: 44.26 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000245/1.015, allocations: 73.33 kB / 1.116 GB, free: 44.23 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.04174/1.057, allocations: 18.82 MB / 1.135 GB, free: 33.92 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.472e-06/1.057, allocations: 0 / 1.135 GB, free: 33.92 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.549e-05/1.057, allocations: 4 kB / 1.135 GB, free: 33.91 MB / 0.7448 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.0007503/1.057, allocations: 0.608 MB / 1.135 GB, free: 33.3 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/1.057, allocations: 8.031 kB / 1.135 GB, free: 33.3 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.681e-05/1.058, allocations: 50.97 kB / 1.135 GB, free: 33.25 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.645e-05/1.058, allocations: 33.34 kB / 1.135 GB, free: 33.22 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002862/1.058, allocations: 247.1 kB / 1.135 GB, free: 32.98 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.808e-05/1.058, allocations: 12.97 kB / 1.135 GB, free: 32.97 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.226e-05/1.058, allocations: 22.11 kB / 1.136 GB, free: 32.96 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000485/1.058, allocations: 453.7 kB / 1.136 GB, free: 32.65 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/1.058, allocations: 4 kB / 1.136 GB, free: 32.65 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.484e-05/1.058, allocations: 7.438 kB / 1.136 GB, free: 32.64 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/1.058, allocations: 7.938 kB / 1.136 GB, free: 32.64 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003169/1.059, allocations: 318.2 kB / 1.136 GB, free: 32.42 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004976/1.059, allocations: 0.558 MB / 1.137 GB, free: 31.96 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009611/1.06, allocations: 1.023 MB / 1.138 GB, free: 31.2 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005941/1.061, allocations: 0.6561 MB / 1.138 GB, free: 30.73 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.102e-05/1.061, allocations: 11.38 kB / 1.138 GB, free: 30.72 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004559/1.061, allocations: 462.5 kB / 1.139 GB, free: 30.39 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=37): time 1.513e-06/1.061, allocations: 0 / 1.139 GB, free: 30.39 MB / 0.7448 GB Notification: Performance of matching and sorting (n=37): time 0.000944/1.062, allocations: 0.7864 MB / 1.14 GB, free: 29.83 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.241e-05/1.062, allocations: 145.4 kB / 1.14 GB, free: 29.66 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002554/1.063, allocations: 230.4 kB / 1.14 GB, free: 29.49 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.67e-05/1.063, allocations: 35.95 kB / 1.14 GB, free: 29.45 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.966e-05/1.063, allocations: 122.9 kB / 1.14 GB, free: 29.36 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 6.448e-05/1.063, allocations: 76.67 kB / 1.14 GB, free: 29.3 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.619e-05/1.063, allocations: 9.875 kB / 1.14 GB, free: 29.3 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 7.613e-05/1.063, allocations: 347.3 kB / 1.141 GB, free: 28.98 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003395/1.063, allocations: 323.8 kB / 1.141 GB, free: 28.76 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003941/1.064, allocations: 423.4 kB / 1.141 GB, free: 28.42 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003867/1.064, allocations: 354.9 kB / 1.142 GB, free: 28.18 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/1.064, allocations: 1.031 kB / 1.142 GB, free: 28.18 MB / 0.7448 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009148/1.065, allocations: 0.8278 MB / 1.142 GB, free: 27.59 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/1.065, allocations: 4 kB / 1.142 GB, free: 27.59 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/1.065, allocations: 4 kB / 1.142 GB, free: 27.59 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/1.065, allocations: 4.562 kB / 1.142 GB, free: 27.58 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/1.065, allocations: 47.7 kB / 1.143 GB, free: 27.55 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/1.065, allocations: 4.703 kB / 1.143 GB, free: 27.55 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002245/1.066, allocations: 16.75 kB / 1.143 GB, free: 27.54 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002738/1.066, allocations: 214.8 kB / 1.143 GB, free: 27.43 MB / 0.7448 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.000113/1.066, allocations: 158.2 kB / 1.143 GB, free: 27.29 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.181e-05/1.066, allocations: 28.94 kB / 1.143 GB, free: 27.26 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.82e-05/1.066, allocations: 41.91 kB / 1.143 GB, free: 27.25 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/1.066, allocations: 4 kB / 1.143 GB, free: 27.24 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/1.066, allocations: 0.75 kB / 1.143 GB, free: 27.24 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/1.066, allocations: 5.266 kB / 1.143 GB, free: 27.24 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001806/1.068, allocations: 1.695 MB / 1.145 GB, free: 25.92 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/1.068, allocations: 7.984 kB / 1.145 GB, free: 25.91 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.652e-05/1.068, allocations: 23.38 kB / 1.145 GB, free: 25.9 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/1.068, allocations: 4 kB / 1.145 GB, free: 25.89 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.38e-05/1.068, allocations: 24.27 kB / 1.145 GB, free: 25.89 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/1.068, allocations: 0.7031 kB / 1.145 GB, free: 25.89 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/1.068, allocations: 8 kB / 1.145 GB, free: 25.88 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008859/1.069, allocations: 1.144 MB / 1.146 GB, free: 24.94 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 4.078e-05/1.069, allocations: 110.6 kB / 1.146 GB, free: 24.82 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.843e-05/1.069, allocations: 11.84 kB / 1.146 GB, free: 24.81 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/1.069, allocations: 8.578 kB / 1.146 GB, free: 24.81 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.572e-05/1.069, allocations: 47.19 kB / 1.146 GB, free: 24.79 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002413/1.07, allocations: 219.5 kB / 1.146 GB, free: 24.68 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001114/1.07, allocations: 175.4 kB / 1.146 GB, free: 24.55 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.3e-07/1.07, allocations: 0 / 1.146 GB, free: 24.55 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0004299/1.07, allocations: 66.56 kB / 1.146 GB, free: 24.49 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.001165/1.071, allocations: 1.933 MB / 1.148 GB, free: 22.78 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0008004/1.072, allocations: 0.7358 MB / 1.149 GB, free: 22.25 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/1.072, allocations: 256 / 1.149 GB, free: 22.25 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0004361/1.073, allocations: 407.1 kB / 1.149 GB, free: 21.97 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001456/1.074, allocations: 304.2 kB / 1.15 GB, free: 21.81 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001373/1.075, allocations: 0.9279 MB / 1.151 GB, free: 21.09 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002244/1.076, allocations: 0.7648 MB / 1.151 GB, free: 20.34 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0002645/1.076, allocations: 96.88 kB / 1.151 GB, free: 20.26 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001631/1.076, allocations: 117.5 kB / 1.152 GB, free: 20.22 MB / 0.7448 GB Notification: Performance of SimCode: time 7.02e-07/1.076, allocations: 3.938 kB / 1.152 GB, free: 20.21 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02347/1.1, allocations: 10.4 MB / 1.162 GB, free: 14.38 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001268/1.1, allocations: 152.2 kB / 1.162 GB, free: 14.14 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.207/3.307, allocations: 0 / 1.162 GB, free: 14.14 MB / 0.7448 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)