Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json 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 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") [: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 7.0.1/package.mo): time 2.129/2.129, allocations: 253.1 MB / 260.4 MB, free: 7.523 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001584/0.001584, allocations: 184.6 kB / 319.6 MB, free: 3.324 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.755/1.755, allocations: 205.4 MB / 0.5704 GB, free: 15.07 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001332/0.001332, allocations: 86.02 kB / 0.6746 GB, free: 4.43 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.125e-06/8.215e-06, allocations: 4 kB / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1954/0.1954, allocations: 106.3 MB / 0.888 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6805/0.876, allocations: 139.5 MB / 1.024 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003445/0.8764, allocations: 90.81 kB / 1.024 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of FrontEnd: time 0.0373/0.9137, allocations: 8.43 MB / 1.033 GB, free: 7.945 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 5.388e-05/0.9138, allocations: 12.88 kB / 1.033 GB, free: 7.934 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002102/0.9159, allocations: 0.7516 MB / 1.033 GB, free: 7.164 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.916, allocations: 12.03 kB / 1.033 GB, free: 7.152 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002149/0.9162, allocations: 62.62 kB / 1.033 GB, free: 7.094 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009318/0.9172, allocations: 421.7 kB / 1.034 GB, free: 6.723 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.901e-05/0.9172, allocations: 16 kB / 1.034 GB, free: 6.707 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.9173, allocations: 28 kB / 1.034 GB, free: 6.68 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001068/0.9184, allocations: 313.3 kB / 1.034 GB, free: 6.504 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.9196, allocations: 456.5 kB / 1.035 GB, free: 6.141 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.9196, allocations: 0 / 1.035 GB, free: 6.141 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.841e-05/0.9197, allocations: 7.906 kB / 1.035 GB, free: 6.133 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.95e-05/0.9197, allocations: 12 kB / 1.035 GB, free: 6.121 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003788/0.9235, allocations: 1.802 MB / 1.036 GB, free: 4.598 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009329/0.9245, allocations: 273.9 kB / 1.037 GB, free: 4.414 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003401/0.9249, allocations: 118.8 kB / 1.037 GB, free: 4.344 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.302e-05/0.925, allocations: 4 kB / 1.037 GB, free: 4.34 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004348/0.9254, allocations: 173 kB / 1.037 GB, free: 4.203 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=34): time 3.507e-06/0.9254, allocations: 0 / 1.037 GB, free: 4.203 MB / 0.6511 GB Notification: Performance of matching and sorting (n=34): time 0.0008788/0.9263, allocations: 256.8 kB / 1.037 GB, free: 4.012 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.323e-05/0.9264, allocations: 106.8 kB / 1.037 GB, free: 3.883 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005436/0.927, allocations: 290.8 kB / 1.038 GB, free: 3.648 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.021e-05/0.9271, allocations: 33.08 kB / 1.038 GB, free: 3.613 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002139/0.9273, allocations: 226.3 kB / 1.038 GB, free: 3.414 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001293/0.9274, allocations: 92.64 kB / 1.038 GB, free: 3.336 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.343e-05/0.9275, allocations: 4 kB / 1.038 GB, free: 3.332 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001625/0.9276, allocations: 347.2 kB / 1.038 GB, free: 3 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003806/0.928, allocations: 110.2 kB / 1.038 GB, free: 2.941 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004908/0.9285, allocations: 227 kB / 1.039 GB, free: 2.727 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003871/0.9289, allocations: 127.1 kB / 1.039 GB, free: 2.648 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.929, allocations: 0 / 1.039 GB, free: 2.648 MB / 0.6511 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001213/0.9302, allocations: 370.1 kB / 1.039 GB, free: 2.367 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/0.9303, allocations: 4.375 kB / 1.039 GB, free: 2.363 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/0.9303, allocations: 8 kB / 1.039 GB, free: 2.355 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.266e-05/0.9303, allocations: 7.906 kB / 1.039 GB, free: 2.348 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007512/0.9311, allocations: 93.69 kB / 1.039 GB, free: 2.262 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.593e-05/0.9311, allocations: 8 kB / 1.039 GB, free: 2.254 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008485/0.932, allocations: 63.8 kB / 1.039 GB, free: 2.191 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.012e-05/0.9321, allocations: 19.73 kB / 1.039 GB, free: 2.176 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,preHeatCoil.stateGraphRoot.resume,preHeatCoil.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,$PRE.TMix.T_start,TMix.T_start,$PRE.TMix.count,TMix.count,$PRE.preHeatCoil.preHeaOn.y,preHeatCoil.preHeaOn.y,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,$PRE.preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.localActive,$PRE.preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.newActive,$PRE.preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.enableFire,preHeatCoil.toOff.fire,$PRE.preHeatCoil.toOff.t_start,preHeatCoil.toOff.t_start,preHeatCoil.preHeaCoiCon.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * 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.0002349/0.9323, allocations: 139.6 kB / 1.039 GB, free: 2.035 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.9325, allocations: 39.62 kB / 1.039 GB, free: 1.996 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001026/0.9335, allocations: 296.4 kB / 1.04 GB, free: 1.785 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.006e-06/0.9335, allocations: 4 kB / 1.04 GB, free: 1.781 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.9336, allocations: 4 kB / 1.04 GB, free: 1.777 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.9336, allocations: 3.984 kB / 1.04 GB, free: 1.773 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002288/0.9359, allocations: 0.8136 MB / 1.04 GB, free: 1.117 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.936, allocations: 0 / 1.04 GB, free: 1.117 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006138/0.9366, allocations: 63.92 kB / 1.041 GB, free: 1.055 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-05/0.9366, allocations: 3.984 kB / 1.041 GB, free: 1.051 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.582e-05/0.9367, allocations: 7.812 kB / 1.041 GB, free: 1.047 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/0.9367, allocations: 0 / 1.041 GB, free: 1.047 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.9367, allocations: 7.844 kB / 1.041 GB, free: 1.039 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00134/0.938, allocations: 0.5302 MB / 1.041 GB, free: 0.625 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002913/0.9384, allocations: 149.2 kB / 1.041 GB, free: 492 kB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.9385, allocations: 3.984 kB / 1.041 GB, free: 488 kB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000737/0.9393, allocations: 55.2 kB / 1.041 GB, free: 436 kB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001936/0.9395, allocations: 47.23 kB / 1.041 GB, free: 396 kB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.882e-05/0.9395, allocations: 15.5 kB / 1.041 GB, free: 384 kB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0003567/0.9399, allocations: 205.8 kB / 1.042 GB, free: 224 kB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006489/0.9406, allocations: 87.25 kB / 1.042 GB, free: 140 kB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 20 (preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.localActive,preHeatCoil.pumOff.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.fire,preHeatCoil.toOff.t_start) * Number of discrete states: 4 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0002516/0.9408, allocations: 119.7 kB / 1.042 GB, free: 16 kB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0009388/0.9418, allocations: 321.9 kB / 1.042 GB, free: 15.79 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.9418, allocations: 4.25 kB / 1.042 GB, free: 15.79 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0004077/0.9422, allocations: 143.1 kB / 1.042 GB, free: 15.7 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007267/0.943, allocations: 59.86 kB / 1.042 GB, free: 15.65 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00193/0.9449, allocations: 0.5159 MB / 1.043 GB, free: 15.17 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008209/0.9457, allocations: 0.8822 MB / 1.044 GB, free: 14.27 MB / 0.6667 GB Notification: Performance of SimCode: time 3.657e-06/0.9458, allocations: 0 / 1.044 GB, free: 14.27 MB / 0.6667 GB Notification: Performance of Templates: time 0.01715/0.9629, allocations: 4.958 MB / 1.048 GB, free: 9.363 MB / 0.6667 GB