Running: ./testmodel.py --libraries=/home/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 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.821/2.821, allocations: 248.6 MB / 255.9 MB, free: 7.137 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001737/0.001737, allocations: 189.2 kB / 315.1 MB, free: 4.297 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.012/2.012, allocations: 205.2 MB / 0.5658 GB, free: 396 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002092/0.002092, allocations: 91.38 kB / 0.67 GB, free: 5.605 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4968/0.499, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2354/0.7344, allocations: 106.2 MB / 0.8835 GB, free: 13.38 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7843/1.519, allocations: 133.9 MB / 1.014 GB, free: 6.379 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000297/1.519, allocations: 77.14 kB / 1.014 GB, free: 6.336 MB / 0.6355 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.02506/1.544, allocations: 5.138 MB / 1.019 GB, free: 1.969 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/1.544, allocations: 8 kB / 1.019 GB, free: 1.961 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.927e-05/1.544, allocations: 19.81 kB / 1.019 GB, free: 1.941 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004438/1.545, allocations: 240.8 kB / 1.02 GB, free: 1.68 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/1.545, allocations: 4 kB / 1.02 GB, free: 1.676 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.466e-05/1.545, allocations: 8 kB / 1.02 GB, free: 1.668 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002164/1.545, allocations: 47.86 kB / 1.02 GB, free: 1.637 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002732/1.545, allocations: 99.52 kB / 1.02 GB, free: 1.547 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/1.545, allocations: 0 / 1.02 GB, free: 1.547 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.823e-05/1.545, allocations: 4 kB / 1.02 GB, free: 1.543 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/1.546, allocations: 0 / 1.02 GB, free: 1.543 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/1.547, allocations: 406.2 kB / 1.02 GB, free: 1.156 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002322/1.547, allocations: 79.62 kB / 1.02 GB, free: 1.09 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001841/1.547, allocations: 73.2 kB / 1.02 GB, free: 1.031 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.786e-05/1.547, allocations: 0 / 1.02 GB, free: 1.031 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002941/1.547, allocations: 163.6 kB / 1.02 GB, free: 0.8672 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 1.863e-06/1.547, allocations: 0 / 1.02 GB, free: 0.8672 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0007382/1.548, allocations: 160.4 kB / 1.021 GB, free: 0.7305 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002012/1.548, allocations: 162.2 kB / 1.021 GB, free: 0.5352 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003758/1.549, allocations: 155.4 kB / 1.021 GB, free: 404 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 7.306e-05/1.549, allocations: 33.7 kB / 1.021 GB, free: 364 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.000119/1.549, allocations: 96.14 kB / 1.021 GB, free: 264 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 6.501e-05/1.549, allocations: 26.86 kB / 1.021 GB, free: 240 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.512e-05/1.549, allocations: 4 kB / 1.021 GB, free: 236 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002901/1.549, allocations: 325.5 kB / 1.021 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002273/1.55, allocations: 34.61 kB / 1.021 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002955/1.55, allocations: 95.91 kB / 1.021 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002802/1.55, allocations: 50.28 kB / 1.021 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/1.55, allocations: 0 / 1.021 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0008595/1.551, allocations: 165.2 kB / 1.022 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.318e-05/1.551, allocations: 8 kB / 1.022 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/1.551, allocations: 0 / 1.022 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.204e-05/1.551, allocations: 4 kB / 1.022 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003327/1.552, allocations: 19.98 kB / 1.022 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.552e-05/1.552, allocations: 3.938 kB / 1.022 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003211/1.552, allocations: 20.16 kB / 1.022 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.702e-05/1.552, allocations: 7.984 kB / 1.022 GB, free: 15.54 MB / 0.6511 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.0003947/1.553, allocations: 172.1 kB / 1.022 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/1.553, allocations: 19.81 kB / 1.022 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001117/1.553, allocations: 20.83 kB / 1.022 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/1.553, allocations: 0 / 1.022 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/1.553, allocations: 0 / 1.022 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/1.553, allocations: 0 / 1.022 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001289/1.554, allocations: 439.4 kB / 1.022 GB, free: 14.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/1.554, allocations: 0 / 1.022 GB, free: 14.9 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002331/1.554, allocations: 15.98 kB / 1.022 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.177e-06/1.554, allocations: 3.938 kB / 1.022 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.204e-05/1.555, allocations: 6.688 kB / 1.022 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.716e-06/1.555, allocations: 0 / 1.022 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/1.555, allocations: 3.938 kB / 1.022 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009585/1.556, allocations: 265.2 kB / 1.023 GB, free: 14.63 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001206/1.557, allocations: 0.6243 MB / 1.023 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001429/1.557, allocations: 88.92 kB / 1.023 GB, free: 13.92 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001202/1.557, allocations: 7.984 kB / 1.023 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004287/1.558, allocations: 12 kB / 1.023 GB, free: 13.9 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.427e-05/1.558, allocations: 11.36 kB / 1.023 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.405e-05/1.558, allocations: 7.984 kB / 1.023 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0002093/1.558, allocations: 121.1 kB / 1.023 GB, free: 13.78 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.002572/1.561, allocations: 39.92 kB / 1.024 GB, free: 13.74 MB / 0.6511 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.0005682/1.561, allocations: 121 kB / 1.024 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0008285/1.562, allocations: 225.1 kB / 1.024 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/1.562, allocations: 0 / 1.024 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000395/1.563, allocations: 136.1 kB / 1.024 GB, free: 13.29 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005852/1.563, allocations: 16.28 kB / 1.024 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/1.564, allocations: 198.6 kB / 1.024 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006419/1.565, allocations: 0.734 MB / 1.025 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of SimCode: time 2.134e-06/1.565, allocations: 0 / 1.025 GB, free: 12.32 MB / 0.6511 GB