Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.596/1.596, allocations: 289.8 MB / 297.1 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001084/0.001084, allocations: 173.3 kB / 366.3 MB, free: 1.98 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.595/1.595, allocations: 205.1 MB / 0.6256 GB, free: 5.836 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009147/0.0009147, allocations: 95.17 kB / 0.7395 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2814/0.2824, allocations: 122.4 MB / 0.8591 GB, free: 13.29 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6826/0.965, allocations: 116.3 MB / 0.9726 GB, free: 68.11 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1823/1.147, allocations: 140.3 MB / 1.11 GB, free: 8.156 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000248/1.148, allocations: 88.56 kB / 1.11 GB, free: 8.07 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.01418/1.162, allocations: 5.133 MB / 1.115 GB, free: 2.871 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/1.162, allocations: 8 kB / 1.115 GB, free: 2.863 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.671e-05/1.162, allocations: 23.81 kB / 1.115 GB, free: 2.84 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003374/1.162, allocations: 226.9 kB / 1.115 GB, free: 2.578 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/1.162, allocations: 7.906 kB / 1.115 GB, free: 2.57 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.167e-05/1.162, allocations: 12 kB / 1.115 GB, free: 2.559 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001467/1.163, allocations: 44.64 kB / 1.115 GB, free: 2.516 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001682/1.163, allocations: 101.5 kB / 1.115 GB, free: 2.41 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/1.163, allocations: 0 / 1.115 GB, free: 2.41 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.711e-05/1.163, allocations: 5.406 kB / 1.115 GB, free: 2.406 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/1.163, allocations: 0 / 1.115 GB, free: 2.406 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006302/1.164, allocations: 409.2 kB / 1.116 GB, free: 1.969 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001333/1.164, allocations: 82.59 kB / 1.116 GB, free: 1.879 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/1.164, allocations: 60.84 kB / 1.116 GB, free: 1.816 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.426e-05/1.164, allocations: 4 kB / 1.116 GB, free: 1.812 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001756/1.164, allocations: 162.9 kB / 1.116 GB, free: 1.629 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/1.164, allocations: 0 / 1.116 GB, free: 1.629 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0003487/1.164, allocations: 159.1 kB / 1.116 GB, free: 1.469 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.858e-05/1.164, allocations: 170.2 kB / 1.116 GB, free: 1.266 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/1.165, allocations: 146.4 kB / 1.116 GB, free: 1.109 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/1.165, allocations: 33.69 kB / 1.116 GB, free: 1.07 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.642e-05/1.165, allocations: 96.38 kB / 1.116 GB, free: 0.9688 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.937e-05/1.165, allocations: 27.64 kB / 1.116 GB, free: 0.9414 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.179e-05/1.165, allocations: 0 / 1.116 GB, free: 0.9414 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001044/1.165, allocations: 326.7 kB / 1.117 GB, free: 0.6133 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.004e-05/1.165, allocations: 39.98 kB / 1.117 GB, free: 0.5742 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.829e-05/1.165, allocations: 90.86 kB / 1.117 GB, free: 472 kB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.56e-05/1.165, allocations: 47.91 kB / 1.117 GB, free: 424 kB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/1.165, allocations: 0 / 1.117 GB, free: 424 kB / 0.7136 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002684/1.165, allocations: 165.3 kB / 1.117 GB, free: 252 kB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/1.165, allocations: 4 kB / 1.117 GB, free: 248 kB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/1.165, allocations: 8 kB / 1.117 GB, free: 240 kB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/1.165, allocations: 0 / 1.117 GB, free: 240 kB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/1.166, allocations: 24.23 kB / 1.117 GB, free: 216 kB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/1.166, allocations: 18.08 kB / 1.117 GB, free: 200 kB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/1.166, allocations: 8 kB / 1.117 GB, free: 192 kB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/1.166, allocations: 8 kB / 1.117 GB, free: 184 kB / 0.7136 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.0001278/1.166, allocations: 178.9 kB / 1.117 GB, free: 15.99 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.005e-05/1.166, allocations: 15.81 kB / 1.117 GB, free: 15.97 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.73e-05/1.166, allocations: 17.39 kB / 1.117 GB, free: 15.95 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/1.166, allocations: 4 kB / 1.117 GB, free: 15.95 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/1.166, allocations: 7.938 kB / 1.117 GB, free: 15.94 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/1.166, allocations: 0 / 1.117 GB, free: 15.94 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004644/1.167, allocations: 430.8 kB / 1.118 GB, free: 15.48 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/1.167, allocations: 0 / 1.118 GB, free: 15.48 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.529e-05/1.167, allocations: 12 kB / 1.118 GB, free: 15.46 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/1.167, allocations: 0 / 1.118 GB, free: 15.46 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.269e-05/1.167, allocations: 11.92 kB / 1.118 GB, free: 15.45 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/1.167, allocations: 8 kB / 1.118 GB, free: 15.45 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/1.167, allocations: 0 / 1.118 GB, free: 15.45 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003122/1.167, allocations: 256.4 kB / 1.118 GB, free: 15.18 MB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000421/1.167, allocations: 0.6332 MB / 1.119 GB, free: 14.53 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.969e-05/1.167, allocations: 88.92 kB / 1.119 GB, free: 14.42 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.921e-05/1.168, allocations: 8 kB / 1.119 GB, free: 14.41 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/1.168, allocations: 11.98 kB / 1.119 GB, free: 14.4 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.2e-05/1.168, allocations: 7.906 kB / 1.119 GB, free: 14.39 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-05/1.168, allocations: 11.98 kB / 1.119 GB, free: 14.38 MB / 0.7292 GB Notification: Performance of sort global known variables: time 9.595e-05/1.168, allocations: 120.3 kB / 1.119 GB, free: 14.27 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0009006/1.169, allocations: 37.41 kB / 1.119 GB, free: 14.23 MB / 0.7292 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.0002537/1.169, allocations: 134.8 kB / 1.119 GB, free: 14.09 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003063/1.169, allocations: 218.7 kB / 1.119 GB, free: 13.86 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/1.169, allocations: 0 / 1.119 GB, free: 13.86 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001581/1.17, allocations: 135.9 kB / 1.119 GB, free: 13.71 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002292/1.17, allocations: 22.83 kB / 1.119 GB, free: 13.69 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005031/1.17, allocations: 197.6 kB / 1.12 GB, free: 13.48 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003606/1.171, allocations: 0.727 MB / 1.12 GB, free: 12.72 MB / 0.7292 GB Notification: Performance of SimCode: time 2.6e-07/1.171, allocations: 0 / 1.12 GB, free: 12.72 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)