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/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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 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_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.01188/0.01188, allocations: 101.4 kB / 15.73 MB, free: 5.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001811/0.001811, allocations: 188.6 kB / 16.67 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.979/1.979, allocations: 205.1 MB / 222.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.543/1.543, allocations: 251.7 MB / 0.5094 GB, free: 392 kB / 430.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 67.91 kB / 0.7257 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.057/1.058, allocations: 104.7 MB / 0.828 GB, free: 2.57 MB / 0.6231 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.003413/1.062, allocations: 1.431 MB / 0.8294 GB, free: 1.125 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.0007817/1.063, allocations: 273.4 kB / 0.8297 GB, free: 0.8594 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.592e-05/1.063, allocations: 3.938 kB / 0.8297 GB, free: 0.8555 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.000198/1.063, allocations: 15.86 kB / 0.8297 GB, free: 0.8398 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 6.097e-05/1.063, allocations: 11.88 kB / 0.8297 GB, free: 0.8281 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.000448/1.064, allocations: 99.75 kB / 0.8298 GB, free: 0.7305 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.0003597/1.064, allocations: 240 kB / 0.83 GB, free: 0.4961 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 8.176e-05/1.064, allocations: 13.05 kB / 0.83 GB, free: 492 kB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/1.064, allocations: 79.83 kB / 0.8301 GB, free: 412 kB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001943/1.064, allocations: 107.7 kB / 0.8302 GB, free: 304 kB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 4.91e-05/1.064, allocations: 16 kB / 0.8302 GB, free: 288 kB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 5.495e-05/1.064, allocations: 16 kB / 0.8302 GB, free: 272 kB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0001428/1.065, allocations: 83.73 kB / 0.8303 GB, free: 188 kB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0001339/1.065, allocations: 107.4 kB / 0.8304 GB, free: 80 kB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.0003894/1.065, allocations: 262.6 kB / 0.8307 GB, free: 15.82 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/1.065, allocations: 3.938 kB / 0.8307 GB, free: 15.82 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.925e-06/1.065, allocations: 4 kB / 0.8307 GB, free: 15.82 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 9.728e-06/1.065, allocations: 0 / 0.8307 GB, free: 15.82 MB / 0.6387 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.001259/1.066, allocations: 0.6884 MB / 0.8313 GB, free: 15.05 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.935e-05/1.066, allocations: 12.03 kB / 0.8314 GB, free: 15.04 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.022e-05/1.067, allocations: 24.66 kB / 0.8314 GB, free: 15.02 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004016/1.067, allocations: 258.8 kB / 0.8316 GB, free: 14.73 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.97e-05/1.067, allocations: 16.66 kB / 0.8316 GB, free: 14.71 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.337e-05/1.067, allocations: 20.36 kB / 0.8317 GB, free: 14.69 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006697/1.068, allocations: 460.5 kB / 0.8321 GB, free: 14.23 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/1.068, allocations: 192 / 0.8321 GB, free: 14.23 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.15e-05/1.068, allocations: 7.938 kB / 0.8321 GB, free: 14.22 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/1.068, allocations: 4 kB / 0.8321 GB, free: 14.21 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004493/1.068, allocations: 327.8 kB / 0.8324 GB, free: 13.89 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007747/1.069, allocations: 0.5585 MB / 0.833 GB, free: 13.28 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001415/1.071, allocations: 1.033 MB / 0.834 GB, free: 12.21 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000849/1.071, allocations: 0.6632 MB / 0.8346 GB, free: 11.53 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 4.183e-05/1.071, allocations: 7.984 kB / 0.8346 GB, free: 11.52 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007697/1.072, allocations: 486 kB / 0.8351 GB, free: 11.02 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=37): time 1.953e-06/1.072, allocations: 0 / 0.8351 GB, free: 11.02 MB / 0.6387 GB Notification: Performance of matching and sorting (n=37): time 0.001702/1.074, allocations: 1.114 MB / 0.8362 GB, free: 9.902 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001464/1.074, allocations: 144.5 kB / 0.8363 GB, free: 9.73 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003102/1.074, allocations: 252.8 kB / 0.8366 GB, free: 9.477 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 4.569e-05/1.074, allocations: 41.69 kB / 0.8366 GB, free: 9.43 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 9.396e-05/1.075, allocations: 125.1 kB / 0.8367 GB, free: 9.305 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 8.438e-05/1.075, allocations: 79.14 kB / 0.8368 GB, free: 9.227 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/1.075, allocations: 106.1 kB / 0.8369 GB, free: 9.117 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001658/1.075, allocations: 342.8 kB / 0.8372 GB, free: 8.773 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003991/1.075, allocations: 332.7 kB / 0.8376 GB, free: 8.449 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004754/1.076, allocations: 430.4 kB / 0.838 GB, free: 7.992 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008814/1.077, allocations: 0.7586 MB / 0.8387 GB, free: 7.199 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.431e-06/1.077, allocations: 4 kB / 0.8387 GB, free: 7.195 MB / 0.6387 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001051/1.078, allocations: 0.8326 MB / 0.8395 GB, free: 6.355 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.765e-05/1.078, allocations: 11.94 kB / 0.8395 GB, free: 6.344 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/1.078, allocations: 3.938 kB / 0.8395 GB, free: 6.34 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.533e-05/1.078, allocations: 7.938 kB / 0.8395 GB, free: 6.332 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001939/1.078, allocations: 43.89 kB / 0.8396 GB, free: 6.289 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.292e-05/1.078, allocations: 4 kB / 0.8396 GB, free: 6.285 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000262/1.078, allocations: 27.75 kB / 0.8396 GB, free: 6.258 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003302/1.079, allocations: 279.6 kB / 0.8399 GB, free: 5.984 MB / 0.6387 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.0002744/1.079, allocations: 197.6 kB / 0.8401 GB, free: 5.781 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.986e-05/1.079, allocations: 27.66 kB / 0.8401 GB, free: 5.754 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.281e-05/1.079, allocations: 38.17 kB / 0.8401 GB, free: 5.715 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/1.079, allocations: 4 kB / 0.8401 GB, free: 5.711 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/1.079, allocations: 0 / 0.8401 GB, free: 5.711 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/1.079, allocations: 4 kB / 0.8401 GB, free: 5.707 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002088/1.081, allocations: 1.718 MB / 0.8418 GB, free: 3.934 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/1.081, allocations: 3.938 kB / 0.8418 GB, free: 3.93 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.211e-05/1.081, allocations: 19.97 kB / 0.8418 GB, free: 3.91 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/1.081, allocations: 0 / 0.8418 GB, free: 3.91 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.6e-05/1.081, allocations: 27.97 kB / 0.8419 GB, free: 3.883 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.708e-06/1.081, allocations: 0 / 0.8419 GB, free: 3.883 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/1.081, allocations: 8 kB / 0.8419 GB, free: 3.875 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/1.083, allocations: 1.114 MB / 0.843 GB, free: 2.742 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 8.792e-05/1.083, allocations: 108.7 kB / 0.8431 GB, free: 2.617 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.482e-05/1.083, allocations: 15.98 kB / 0.8431 GB, free: 2.602 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002576/1.083, allocations: 8 kB / 0.8431 GB, free: 2.594 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/1.083, allocations: 51.88 kB / 0.8431 GB, free: 2.543 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003276/1.083, allocations: 279.4 kB / 0.8434 GB, free: 2.27 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0001921/1.084, allocations: 176.4 kB / 0.8436 GB, free: 2.098 MB / 0.6387 GB Notification: Performance of sort global known variables: time 3.61e-07/1.084, allocations: 0 / 0.8436 GB, free: 2.098 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0005376/1.084, allocations: 67.98 kB / 0.8436 GB, free: 2.031 MB / 0.6387 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.0003143/1.085, allocations: 134.3 kB / 0.8438 GB, free: 1.898 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.001218/1.086, allocations: 0.7416 MB / 0.8445 GB, free: 1.156 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/1.086, allocations: 0 / 0.8445 GB, free: 1.156 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0005896/1.086, allocations: 404.2 kB / 0.8449 GB, free: 0.7617 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001736/1.088, allocations: 373.1 kB / 0.8452 GB, free: 440 kB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00142/1.09, allocations: 0.9782 MB / 0.8462 GB, free: 15.41 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004395/1.09, allocations: 0.753 MB / 0.8469 GB, free: 14.64 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0003264/1.09, allocations: 94.92 kB / 0.847 GB, free: 14.55 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000145/1.091, allocations: 71.38 kB / 0.8471 GB, free: 14.48 MB / 0.6544 GB Notification: Performance of SimCode: time 3.656e-06/1.091, allocations: 0 / 0.8471 GB, free: 14.48 MB / 0.6544 GB Notification: Performance of Templates: time 0.01404/1.105, allocations: 8.857 MB / 0.8557 GB, free: 5.734 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)