Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.126/2.126, allocations: 284.9 MB / 292.2 MB, free: 10.69 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001582/0.001582, allocations: 185.2 kB / 360.4 MB, free: 7.469 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.623/1.623, allocations: 205.1 MB / 0.6188 GB, free: 12.4 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001138/0.001138, allocations: 80.59 kB / 0.7318 GB, free: 44.95 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.517e-06/9.548e-06, allocations: 0 / 0.8502 GB, free: 3.844 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5259/0.5259, allocations: 115.2 MB / 0.9628 GB, free: 78.39 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1977/0.7236, allocations: 137.6 MB / 1.097 GB, free: 3.152 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/0.7239, allocations: 77.33 kB / 1.097 GB, free: 3.078 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.07804/0.802, allocations: 18.16 MB / 1.115 GB, free: 1.016 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.89e-05/0.8021, allocations: 4.688 kB / 1.115 GB, free: 1.012 MB / 0.7136 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.001145/0.8032, allocations: 0.5968 MB / 1.116 GB, free: 348 kB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.8033, allocations: 8.531 kB / 1.116 GB, free: 340 kB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.512e-05/0.8034, allocations: 28.27 kB / 1.116 GB, free: 312 kB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004101/0.8038, allocations: 247.2 kB / 1.116 GB, free: 24 kB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.35e-05/0.8038, allocations: 11.89 kB / 1.116 GB, free: 12 kB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.71e-05/0.8039, allocations: 12.66 kB / 1.116 GB, free: 0 / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006605/0.8046, allocations: 318.7 kB / 1.116 GB, free: 15.69 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007453/0.8053, allocations: 450.5 kB / 1.117 GB, free: 15.23 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.8054, allocations: 0 / 1.117 GB, free: 15.23 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.776e-05/0.8054, allocations: 0 / 1.117 GB, free: 15.23 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.8054, allocations: 4 kB / 1.117 GB, free: 15.23 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000777/0.8062, allocations: 0.5278 MB / 1.117 GB, free: 14.66 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001714/0.8079, allocations: 1.016 MB / 1.118 GB, free: 13.61 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001129/0.8091, allocations: 0.6555 MB / 1.119 GB, free: 12.94 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.339e-05/0.8091, allocations: 8 kB / 1.119 GB, free: 12.93 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007421/0.8099, allocations: 474.4 kB / 1.119 GB, free: 12.45 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 2.124e-06/0.8099, allocations: 0 / 1.119 GB, free: 12.45 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.001454/0.8114, allocations: 0.7582 MB / 1.12 GB, free: 11.68 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.813e-05/0.8115, allocations: 132.5 kB / 1.12 GB, free: 11.52 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003044/0.8118, allocations: 232 kB / 1.12 GB, free: 11.29 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.337e-05/0.8118, allocations: 25.7 kB / 1.12 GB, free: 11.26 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.443e-05/0.8119, allocations: 100.9 kB / 1.12 GB, free: 11.16 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.812, allocations: 75.06 kB / 1.12 GB, free: 11.08 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.511e-05/0.8121, allocations: 1.5 kB / 1.12 GB, free: 11.08 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001729/0.8122, allocations: 338.8 kB / 1.121 GB, free: 10.74 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006489/0.8129, allocations: 324.7 kB / 1.121 GB, free: 10.43 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007331/0.8137, allocations: 417.6 kB / 1.121 GB, free: 9.984 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007448/0.8144, allocations: 355.7 kB / 1.122 GB, free: 9.637 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.8144, allocations: 4 kB / 1.122 GB, free: 9.633 MB / 0.7292 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001766/0.8162, allocations: 0.8008 MB / 1.123 GB, free: 8.828 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.8162, allocations: 4.781 kB / 1.123 GB, free: 8.824 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.8163, allocations: 4 kB / 1.123 GB, free: 8.82 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.832e-05/0.8163, allocations: 7.938 kB / 1.123 GB, free: 8.812 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002605/0.8166, allocations: 43.84 kB / 1.123 GB, free: 8.77 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.8166, allocations: 8.062 kB / 1.123 GB, free: 8.762 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004118/0.817, allocations: 15.83 kB / 1.123 GB, free: 8.746 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004139/0.8174, allocations: 205.6 kB / 1.123 GB, free: 8.547 MB / 0.7292 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.0002008/0.8177, allocations: 143.7 kB / 1.123 GB, free: 8.402 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.886e-05/0.8177, allocations: 31.61 kB / 1.123 GB, free: 8.371 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001381/0.8179, allocations: 39.86 kB / 1.123 GB, free: 8.336 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.8179, allocations: 8 kB / 1.123 GB, free: 8.328 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.8179, allocations: 0 / 1.123 GB, free: 8.328 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/0.818, allocations: 3.984 kB / 1.123 GB, free: 8.324 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002945/0.8209, allocations: 1.634 MB / 1.125 GB, free: 6.645 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.8209, allocations: 4 kB / 1.125 GB, free: 6.641 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.962e-05/0.821, allocations: 21.61 kB / 1.125 GB, free: 6.621 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.466e-06/0.821, allocations: 8 kB / 1.125 GB, free: 6.613 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.389e-05/0.8211, allocations: 15.97 kB / 1.125 GB, free: 6.598 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/0.8211, allocations: 0 / 1.125 GB, free: 6.598 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.8211, allocations: 4 kB / 1.125 GB, free: 6.594 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001541/0.8227, allocations: 1.115 MB / 1.126 GB, free: 5.441 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 8.517e-05/0.8228, allocations: 104.7 kB / 1.126 GB, free: 5.32 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.951e-05/0.8228, allocations: 4 kB / 1.126 GB, free: 5.316 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003979/0.8233, allocations: 7.984 kB / 1.126 GB, free: 5.309 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.8234, allocations: 51.84 kB / 1.126 GB, free: 5.258 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004245/0.8238, allocations: 223.2 kB / 1.126 GB, free: 5.043 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.000265/0.8241, allocations: 160.5 kB / 1.126 GB, free: 4.883 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0006758/0.8248, allocations: 52 kB / 1.126 GB, free: 4.832 MB / 0.7292 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.0002026/0.825, allocations: 129.1 kB / 1.127 GB, free: 4.699 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001438/0.8265, allocations: 0.722 MB / 1.127 GB, free: 3.977 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.8265, allocations: 2.406 kB / 1.127 GB, free: 3.977 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0008491/0.8273, allocations: 407.7 kB / 1.128 GB, free: 3.578 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002561/0.8299, allocations: 290.5 kB / 1.128 GB, free: 3.312 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002002/0.8319, allocations: 0.8693 MB / 1.129 GB, free: 2.414 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006696/0.8326, allocations: 0.8267 MB / 1.13 GB, free: 1.562 MB / 0.7292 GB Notification: Performance of SimCode: time 1.032e-06/0.8326, allocations: 0 / 1.13 GB, free: 1.562 MB / 0.7292 GB Notification: Performance of Templates: time 0.02052/0.8532, allocations: 7.799 MB / 1.137 GB, free: 9.891 MB / 0.7448 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)