Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 198.1 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.609/1.609, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.396/3.396, allocations: 472.6 MB / 0.7451 GB, free: 4.652 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 60.33 kB / 0.912 GB, free: 33.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4898/0.4912, allocations: 159.9 MB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.003345/0.4946, allocations: 1.431 MB / 1.07 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007456/0.4954, allocations: 263.2 kB / 1.07 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.565e-05/0.4955, allocations: 7.938 kB / 1.07 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001775/0.4956, allocations: 11.86 kB / 1.07 GB, free: 8.73 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.114e-05/0.4957, allocations: 19.86 kB / 1.07 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004203/0.4962, allocations: 103.8 kB / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003365/0.4965, allocations: 228 kB / 1.07 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.435e-05/0.4966, allocations: 13.12 kB / 1.07 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.809e-05/0.4967, allocations: 87.8 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001945/0.4969, allocations: 99.7 kB / 1.07 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.38e-05/0.497, allocations: 16 kB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.404e-05/0.497, allocations: 16 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001307/0.4972, allocations: 91.7 kB / 1.07 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001496/0.4973, allocations: 107.4 kB / 1.071 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003054/0.4976, allocations: 243.2 kB / 1.071 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.4976, allocations: 7.938 kB / 1.071 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.755e-06/0.4976, allocations: 3.938 kB / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.896e-06/0.4977, allocations: 0 / 1.071 GB, free: 7.715 MB / 0.8262 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.001192/0.4989, allocations: 0.6864 MB / 1.071 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.598e-05/0.4989, allocations: 12.03 kB / 1.071 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.37e-05/0.499, allocations: 28.56 kB / 1.072 GB, free: 6.906 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003584/0.4994, allocations: 266.9 kB / 1.072 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.552e-05/0.4994, allocations: 12.66 kB / 1.072 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.449e-05/0.4995, allocations: 20.38 kB / 1.072 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006467/0.5001, allocations: 467.1 kB / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.5001, allocations: 4.188 kB / 1.072 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.031e-05/0.5002, allocations: 11.92 kB / 1.072 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.5002, allocations: 4 kB / 1.072 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004157/0.5006, allocations: 319.8 kB / 1.073 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007274/0.5014, allocations: 0.5624 MB / 1.073 GB, free: 5.148 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/0.5026, allocations: 1.018 MB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000808/0.5035, allocations: 0.6762 MB / 1.075 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.787e-05/0.5035, allocations: 15.92 kB / 1.075 GB, free: 3.391 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007229/0.5042, allocations: 476.1 kB / 1.075 GB, free: 2.902 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=37): time 2.475e-06/0.5042, allocations: 0 / 1.075 GB, free: 2.902 MB / 0.8262 GB Notification: Performance of matching and sorting (n=37): time 0.001556/0.5058, allocations: 1.115 MB / 1.076 GB, free: 1.781 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00013/0.506, allocations: 132.5 kB / 1.076 GB, free: 1.621 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002964/0.5063, allocations: 268.7 kB / 1.077 GB, free: 1.352 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.134e-05/0.5063, allocations: 37.7 kB / 1.077 GB, free: 1.309 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.764e-05/0.5064, allocations: 121.1 kB / 1.077 GB, free: 1.188 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000101/0.5065, allocations: 79.14 kB / 1.077 GB, free: 1.109 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/0.5067, allocations: 110.1 kB / 1.077 GB, free: 0.9922 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001735/0.5069, allocations: 342.8 kB / 1.077 GB, free: 0.6484 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004285/0.5073, allocations: 328.7 kB / 1.078 GB, free: 336 kB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005472/0.5079, allocations: 422.5 kB / 1.078 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.5089, allocations: 0.7612 MB / 1.079 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.5089, allocations: 7.984 kB / 1.079 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001153/0.5101, allocations: 0.8326 MB / 1.08 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/0.5101, allocations: 7.938 kB / 1.08 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.5101, allocations: 4 kB / 1.08 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.558e-05/0.5101, allocations: 4 kB / 1.08 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002245/0.5104, allocations: 43.91 kB / 1.08 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.56e-05/0.5104, allocations: 11.92 kB / 1.08 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002708/0.5107, allocations: 31.75 kB / 1.08 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003425/0.511, allocations: 267.9 kB / 1.08 GB, free: 13.88 MB / 0.8419 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 (dayTypMonThr.skipIDayIncrement,$PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.iDay,$PRE.dayTypMonThr.iDay,dayTypMonThr.y[3],dayTypMonThr.y[2],dayTypMonThr.y[1],dayTypTwoWeeks.skipIDayIncrement,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.iDay,$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.y[14],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[1],dayTypSat.skipIDayIncrement,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.iDay,$PRE.dayTypSat.iDay,dayTypSat.y[2],dayTypSat.y[1],dayTypMon.skipIDayIncrement,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.iDay,$PRE.dayTypMon.iDay,dayTypMon.y[2],dayTypMon.y[1]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000308/0.5113, allocations: 189.7 kB / 1.08 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.793e-05/0.5114, allocations: 35.64 kB / 1.08 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.081e-05/0.5115, allocations: 34.19 kB / 1.08 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/0.5116, allocations: 7.938 kB / 1.08 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.565e-05/0.5116, allocations: 0 / 1.08 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.54e-05/0.5116, allocations: 7.984 kB / 1.08 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002462/0.5141, allocations: 1.724 MB / 1.082 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.5141, allocations: 0 / 1.082 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.842e-05/0.5142, allocations: 24.05 kB / 1.082 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.124e-06/0.5142, allocations: 4 kB / 1.082 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.091e-05/0.5142, allocations: 19.97 kB / 1.082 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.5142, allocations: 4 kB / 1.082 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.5142, allocations: 0 / 1.082 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/0.5156, allocations: 1.121 MB / 1.083 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.5157, allocations: 104.8 kB / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.847e-05/0.5157, allocations: 8 kB / 1.083 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002706/0.516, allocations: 12 kB / 1.083 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/0.5162, allocations: 55.88 kB / 1.083 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003587/0.5165, allocations: 279.4 kB / 1.084 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002215/0.5168, allocations: 176.4 kB / 1.084 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5168, allocations: 0 / 1.084 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006037/0.5174, allocations: 64 kB / 1.084 GB, free: 9.914 MB / 0.8419 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002538/0.5176, allocations: 131.7 kB / 1.084 GB, free: 9.777 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001259/0.5189, allocations: 0.7784 MB / 1.085 GB, free: 9 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.5189, allocations: 0 / 1.085 GB, free: 9 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006528/0.5196, allocations: 403.8 kB / 1.085 GB, free: 8.605 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001939/0.5215, allocations: 376.8 kB / 1.085 GB, free: 8.27 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001789/0.5233, allocations: 0.9718 MB / 1.086 GB, free: 7.258 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005601/0.5239, allocations: 0.753 MB / 1.087 GB, free: 6.48 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0004185/0.5243, allocations: 90.92 kB / 1.087 GB, free: 6.395 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001628/0.5245, allocations: 71.38 kB / 1.087 GB, free: 6.324 MB / 0.8419 GB Notification: Performance of SimCode: time 1.433e-06/0.5245, allocations: 0 / 1.087 GB, free: 6.324 MB / 0.8419 GB Notification: Performance of Templates: time 0.0173/0.5418, allocations: 8.834 MB / 1.096 GB, free: 13.6 MB / 0.8575 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)