Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.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.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter") [: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 1.984/1.984, allocations: 253.1 MB / 260.4 MB, free: 0.5312 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.001731/0.00173, allocations: 179.8 kB / 319.6 MB, free: 7.656 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.919/1.919, allocations: 205.4 MB / 0.5704 GB, free: 25.57 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.001701/0.001701, allocations: 98.06 kB / 0.6746 GB, free: 3.043 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 8.355e-06/8.436e-06, allocations: 0 / 0.7843 GB, free: 2.652 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5099/0.5099, allocations: 106.2 MB / 0.888 GB, free: 77.07 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2111/0.7211, allocations: 132.8 MB / 1.018 GB, free: 8.02 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003135/0.7214, allocations: 75.95 kB / 1.018 GB, free: 7.945 MB / 0.6667 GB Notification: Performance of FrontEnd: time 0.02215/0.7436, allocations: 4.614 MB / 1.022 GB, free: 3.305 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.923e-05/0.7437, allocations: 4 kB / 1.022 GB, free: 3.301 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007394/0.7444, allocations: 0.5203 MB / 1.023 GB, free: 2.711 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.7445, allocations: 8.031 kB / 1.023 GB, free: 2.703 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.268e-05/0.7446, allocations: 19.81 kB / 1.023 GB, free: 2.684 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004579/0.745, allocations: 226.8 kB / 1.023 GB, free: 2.422 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.823e-05/0.7451, allocations: 4 kB / 1.023 GB, free: 2.418 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.98e-05/0.7451, allocations: 12 kB / 1.023 GB, free: 2.406 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002133/0.7454, allocations: 51.92 kB / 1.023 GB, free: 2.355 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002671/0.7457, allocations: 97.62 kB / 1.023 GB, free: 2.254 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.7457, allocations: 4 kB / 1.023 GB, free: 2.25 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.313e-05/0.7457, allocations: 0 / 1.023 GB, free: 2.25 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.7457, allocations: 0 / 1.023 GB, free: 2.25 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000967/0.7467, allocations: 405.1 kB / 1.024 GB, free: 1.816 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002189/0.7469, allocations: 82.41 kB / 1.024 GB, free: 1.727 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001837/0.7471, allocations: 60.83 kB / 1.024 GB, free: 1.664 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 3.489e-05/0.7472, allocations: 7.984 kB / 1.024 GB, free: 1.656 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002868/0.7475, allocations: 166.9 kB / 1.024 GB, free: 1.469 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=10): time 3.277e-06/0.7475, allocations: 0 / 1.024 GB, free: 1.469 MB / 0.6667 GB Notification: Performance of matching and sorting (n=10): time 0.000545/0.7481, allocations: 157.5 kB / 1.024 GB, free: 1.309 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001739/0.7482, allocations: 166.2 kB / 1.024 GB, free: 1.109 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002149/0.7485, allocations: 150 kB / 1.024 GB, free: 0.9531 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 3.524e-05/0.7485, allocations: 25.7 kB / 1.024 GB, free: 0.9219 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 7.929e-05/0.7486, allocations: 100.3 kB / 1.025 GB, free: 0.8164 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 6.009e-05/0.7487, allocations: 23.66 kB / 1.025 GB, free: 0.793 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.901e-05/0.7487, allocations: 0 / 1.025 GB, free: 0.793 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001515/0.7489, allocations: 334.8 kB / 1.025 GB, free: 468 kB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001393/0.749, allocations: 40 kB / 1.025 GB, free: 428 kB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001896/0.7492, allocations: 94.78 kB / 1.025 GB, free: 308 kB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001703/0.7494, allocations: 47.97 kB / 1.025 GB, free: 260 kB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.7494, allocations: 0 / 1.025 GB, free: 260 kB / 0.6667 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004801/0.7499, allocations: 161.3 kB / 1.025 GB, free: 92 kB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.75, allocations: 8.188 kB / 1.025 GB, free: 84 kB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.75, allocations: 8 kB / 1.025 GB, free: 76 kB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.75, allocations: 0 / 1.025 GB, free: 76 kB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002169/0.7502, allocations: 23.92 kB / 1.025 GB, free: 52 kB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.7503, allocations: 8.062 kB / 1.025 GB, free: 44 kB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001769/0.7504, allocations: 11.91 kB / 1.025 GB, free: 32 kB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.886e-05/0.7505, allocations: 15.98 kB / 1.025 GB, free: 16 kB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.combiTimeTableWriter.str,combiTimeTableWriter.str,$PRE.csvWriter.str,csvWriter.str,$whenCondition2,combiTimeTableWriter.sampleTrigger,$whenCondition1,csvWriter.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * 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.000209/0.7507, allocations: 172.3 kB / 1.025 GB, free: 15.83 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.055e-05/0.7508, allocations: 15.81 kB / 1.025 GB, free: 15.81 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.46e-05/0.7509, allocations: 17.39 kB / 1.025 GB, free: 15.8 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.7509, allocations: 4 kB / 1.025 GB, free: 15.79 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.7509, allocations: 0 / 1.025 GB, free: 15.79 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.88e-06/0.7509, allocations: 0 / 1.025 GB, free: 15.79 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007593/0.7517, allocations: 430.8 kB / 1.026 GB, free: 15.33 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.7517, allocations: 0 / 1.026 GB, free: 15.33 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001309/0.7518, allocations: 19.98 kB / 1.026 GB, free: 15.31 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.7518, allocations: 0 / 1.026 GB, free: 15.31 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.756e-05/0.7519, allocations: 12 kB / 1.026 GB, free: 15.3 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.7519, allocations: 3.938 kB / 1.026 GB, free: 15.29 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.7519, allocations: 3.984 kB / 1.026 GB, free: 15.29 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005195/0.7524, allocations: 263.1 kB / 1.026 GB, free: 15.02 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.438e-05/0.7525, allocations: 93 kB / 1.026 GB, free: 14.91 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.971e-05/0.7526, allocations: 8 kB / 1.026 GB, free: 14.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002275/0.7528, allocations: 11.91 kB / 1.026 GB, free: 14.89 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.616e-05/0.7529, allocations: 7.984 kB / 1.026 GB, free: 14.88 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.982e-05/0.7529, allocations: 8 kB / 1.026 GB, free: 14.87 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0001461/0.7531, allocations: 124.8 kB / 1.026 GB, free: 14.75 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0004514/0.7536, allocations: 28 kB / 1.026 GB, free: 14.72 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,combiTimeTableWriter.str,combiTimeTableWriter.sampleTrigger,csvWriter.str,csvWriter.sampleTrigger) * Number of discrete states: 4 (combiTimeTableWriter.str,$whenCondition2,csvWriter.str,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.000322/0.7539, allocations: 125 kB / 1.027 GB, free: 14.6 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0005536/0.7545, allocations: 222.7 kB / 1.027 GB, free: 14.36 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.7545, allocations: 0.5 kB / 1.027 GB, free: 14.36 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002677/0.7548, allocations: 143.3 kB / 1.027 GB, free: 14.2 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003389/0.7551, allocations: 16.12 kB / 1.027 GB, free: 14.18 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007188/0.7558, allocations: 190.8 kB / 1.027 GB, free: 13.98 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004441/0.7563, allocations: 0.7348 MB / 1.028 GB, free: 13.21 MB / 0.6823 GB Notification: Performance of SimCode: time 8.02e-07/0.7563, allocations: 0 / 1.028 GB, free: 13.21 MB / 0.6823 GB Notification: Performance of Templates: time 0.007249/0.7636, allocations: 1.93 MB / 1.03 GB, free: 11.31 MB / 0.6823 GB