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.508/1.508, allocations: 251.9 MB / 266.9 MB, free: 11.08 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001157/0.001157, allocations: 184.4 kB / 326.5 MB, free: 2.293 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.018/2.018, allocations: 205.4 MB / 0.5775 GB, free: 20.24 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.00085/0.00085, allocations: 95.84 kB / 0.6821 GB, free: 12.93 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003654/0.0003653, allocations: 12.88 kB / 0.7963 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2316, allocations: 106.3 MB / 0.9001 GB, free: 63.94 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1705/0.4021, allocations: 132.3 MB / 1.029 GB, free: 11.45 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002357/0.4024, allocations: 79.94 kB / 1.029 GB, free: 11.37 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04761/0.45, allocations: 18.88 MB / 1.048 GB, free: 8.457 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.555e-06/0.4501, allocations: 0 / 1.048 GB, free: 8.457 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.043e-05/0.4501, allocations: 4 kB / 1.048 GB, free: 8.453 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.0008428/0.451, allocations: 0.6315 MB / 1.048 GB, free: 7.746 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 6.191e-05/0.451, allocations: 8.031 kB / 1.048 GB, free: 7.738 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.365e-05/0.4511, allocations: 50.55 kB / 1.049 GB, free: 7.68 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.787e-05/0.4512, allocations: 31.67 kB / 1.049 GB, free: 7.648 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003111/0.4515, allocations: 253.7 kB / 1.049 GB, free: 7.363 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.11e-05/0.4515, allocations: 20.28 kB / 1.049 GB, free: 7.344 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.17e-05/0.4516, allocations: 16 kB / 1.049 GB, free: 7.328 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005378/0.4521, allocations: 458.6 kB / 1.049 GB, free: 6.863 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.4521, allocations: 4 kB / 1.049 GB, free: 6.859 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.142e-05/0.4521, allocations: 4 kB / 1.049 GB, free: 6.855 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.4522, allocations: 4 kB / 1.049 GB, free: 6.852 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003578/0.4525, allocations: 323.8 kB / 1.05 GB, free: 6.535 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000575/0.4531, allocations: 0.5547 MB / 1.05 GB, free: 5.922 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.4542, allocations: 1.026 MB / 1.051 GB, free: 4.859 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.981e-05/0.4543, allocations: 7.969 kB / 1.051 GB, free: 4.852 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005339/0.4548, allocations: 478.7 kB / 1.052 GB, free: 4.359 MB / 0.698 GB Notification: Performance of pre-optimization done (n=37): time 1.543e-06/0.4548, allocations: 7.938 kB / 1.052 GB, free: 4.352 MB / 0.698 GB Notification: Performance of matching and sorting (n=37): time 0.001373/0.4562, allocations: 1.109 MB / 1.053 GB, free: 3.238 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.763e-05/0.4563, allocations: 136.5 kB / 1.053 GB, free: 3.074 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002038/0.4565, allocations: 235.9 kB / 1.053 GB, free: 2.84 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.317e-05/0.4566, allocations: 37.7 kB / 1.053 GB, free: 2.797 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 6.515e-05/0.4566, allocations: 117.1 kB / 1.053 GB, free: 2.676 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 7.755e-05/0.4567, allocations: 86.98 kB / 1.053 GB, free: 2.59 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.511e-05/0.4567, allocations: 4 kB / 1.053 GB, free: 2.586 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.4569, allocations: 346.8 kB / 1.054 GB, free: 2.238 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003606/0.4572, allocations: 328.7 kB / 1.054 GB, free: 1.914 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004101/0.4576, allocations: 422.5 kB / 1.054 GB, free: 1.469 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004305/0.4581, allocations: 364 kB / 1.055 GB, free: 1.113 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.4581, allocations: 0 / 1.055 GB, free: 1.113 MB / 0.698 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009865/0.4591, allocations: 0.8266 MB / 1.055 GB, free: 288 kB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.4591, allocations: 8 kB / 1.056 GB, free: 280 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.4591, allocations: 4 kB / 1.056 GB, free: 276 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.4591, allocations: 4 kB / 1.056 GB, free: 272 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001649/0.4593, allocations: 44.45 kB / 1.056 GB, free: 228 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.4593, allocations: 7.938 kB / 1.056 GB, free: 220 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000202/0.4595, allocations: 15.91 kB / 1.056 GB, free: 204 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.4569/0.9165, allocations: 215.4 kB / 1.056 GB, free: 153.6 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.0004219/0.9169, allocations: 191.8 kB / 1.056 GB, free: 153.5 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.014e-05/0.917, allocations: 30.47 kB / 1.056 GB, free: 153.5 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.757e-05/0.9171, allocations: 40.95 kB / 1.056 GB, free: 153.5 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.9171, allocations: 6.5 kB / 1.056 GB, free: 153.5 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.9171, allocations: 0.5625 kB / 1.056 GB, free: 153.5 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.9171, allocations: 1.688 kB / 1.056 GB, free: 153.5 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00196/0.9191, allocations: 1.706 MB / 1.058 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.9191, allocations: 0 / 1.058 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.615e-05/0.9192, allocations: 26.62 kB / 1.058 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/0.9192, allocations: 3.031 kB / 1.058 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.977e-05/0.9192, allocations: 22.88 kB / 1.058 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.9192, allocations: 3 kB / 1.058 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.9192, allocations: 2.969 kB / 1.058 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008565/0.9201, allocations: 1.15 MB / 1.059 GB, free: 152.5 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.195e-05/0.9202, allocations: 103.2 kB / 1.059 GB, free: 152.4 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.989e-05/0.9202, allocations: 12.97 kB / 1.059 GB, free: 152.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002241/0.9205, allocations: 7.281 kB / 1.059 GB, free: 152.4 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.981e-05/0.9206, allocations: 47.06 kB / 1.059 GB, free: 152.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002047/0.9208, allocations: 226 kB / 1.059 GB, free: 152.4 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001304/0.9209, allocations: 169.9 kB / 1.059 GB, free: 152.4 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9209, allocations: 3.094 kB / 1.059 GB, free: 152.4 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004758/0.9214, allocations: 67 kB / 1.059 GB, free: 152.4 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.001115/0.9225, allocations: 1.945 MB / 1.061 GB, free: 151.2 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0008461/0.9234, allocations: 0.736 MB / 1.062 GB, free: 151.2 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.207e-06/0.9234, allocations: 6.281 kB / 1.062 GB, free: 151.2 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004743/0.9239, allocations: 402.5 kB / 1.062 GB, free: 151.2 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001473/0.9253, allocations: 311.3 kB / 1.063 GB, free: 151.2 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002355/0.9277, allocations: 2.978 MB / 1.066 GB, free: 149 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.928, allocations: 0.7616 MB / 1.066 GB, free: 148.3 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0003615/0.9284, allocations: 103 kB / 1.067 GB, free: 148.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002027/0.9286, allocations: 120.4 kB / 1.067 GB, free: 148.3 MB / 0.698 GB Notification: Performance of SimCode: time 1.152e-06/0.9286, allocations: 0.875 kB / 1.067 GB, free: 148.3 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02576/0.9544, allocations: 10.35 MB / 1.077 GB, free: 146.5 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001285/0.9545, allocations: 185.9 kB / 1.077 GB, free: 146.3 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.071/3.026, allocations: 0 / 1.077 GB, free: 146.3 MB / 0.698 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)