Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.702/0.702, allocations: 141.8 MB / 149.1 MB, free: 12.97 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 176 kB / 181.9 MB, free: 9.652 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.226/1.226, allocations: 221.3 MB / 436 MB, free: 2.102 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009755/0.0009756, allocations: 86.95 kB / 0.507 GB, free: 10.88 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001783/0.001783, allocations: 276.6 kB / 0.5884 GB, free: 7.719 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1679/0.1697, allocations: 89.66 MB / 0.676 GB, free: 13.97 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3488/0.5185, allocations: 82.76 MB / 0.7568 GB, free: 138.9 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1093/0.6279, allocations: 109.9 MB / 0.8642 GB, free: 28.77 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/0.6281, allocations: 80.89 kB / 0.8643 GB, free: 28.7 MB / 0.5575 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.01265/0.6408, allocations: 5.205 MB / 0.8693 GB, free: 23.43 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.6408, allocations: 12.97 kB / 0.8694 GB, free: 23.41 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.272e-05/0.6409, allocations: 15.81 kB / 0.8694 GB, free: 23.4 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002566/0.6412, allocations: 236.4 kB / 0.8696 GB, free: 23.13 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.6412, allocations: 4.562 kB / 0.8696 GB, free: 23.12 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.645e-05/0.6412, allocations: 15.91 kB / 0.8696 GB, free: 23.11 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001426/0.6414, allocations: 44.58 kB / 0.8697 GB, free: 23.07 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001421/0.6415, allocations: 106.2 kB / 0.8698 GB, free: 22.96 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.6416, allocations: 3.984 kB / 0.8698 GB, free: 22.95 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.6416, allocations: 4.5 kB / 0.8698 GB, free: 22.95 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.83e-06/0.6416, allocations: 0.9375 kB / 0.8698 GB, free: 22.95 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005407/0.6421, allocations: 400.6 kB / 0.8701 GB, free: 22.52 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001132/0.6423, allocations: 75.73 kB / 0.8702 GB, free: 22.44 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.553e-05/0.6424, allocations: 60.84 kB / 0.8703 GB, free: 22.38 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.6424, allocations: 5.25 kB / 0.8703 GB, free: 22.38 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000148/0.6425, allocations: 171.9 kB / 0.8704 GB, free: 22.18 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=10): time 1.583e-06/0.6426, allocations: 0 / 0.8704 GB, free: 22.18 MB / 0.5575 GB Notification: Performance of matching and sorting (n=10): time 0.0003054/0.6429, allocations: 157.4 kB / 0.8706 GB, free: 22.02 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/0.6429, allocations: 171.7 kB / 0.8708 GB, free: 21.82 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.6431, allocations: 149.9 kB / 0.8709 GB, free: 21.66 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.6431, allocations: 29.7 kB / 0.8709 GB, free: 21.63 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 3.254e-05/0.6431, allocations: 101.6 kB / 0.871 GB, free: 21.52 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 2.289e-05/0.6432, allocations: 23.7 kB / 0.8711 GB, free: 21.5 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.217e-05/0.6432, allocations: 0 / 0.8711 GB, free: 21.5 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 5.207e-05/0.6432, allocations: 328 kB / 0.8714 GB, free: 21.17 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.147e-05/0.6433, allocations: 39.98 kB / 0.8714 GB, free: 21.13 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.887e-05/0.6434, allocations: 81.73 kB / 0.8715 GB, free: 21.03 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.507e-05/0.6435, allocations: 54.47 kB / 0.8715 GB, free: 20.98 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.6435, allocations: 0 / 0.8715 GB, free: 20.98 MB / 0.5575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000243/0.6437, allocations: 166.8 kB / 0.8717 GB, free: 20.81 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.6438, allocations: 8.469 kB / 0.8717 GB, free: 20.8 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.6438, allocations: 0 / 0.8717 GB, free: 20.8 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.6438, allocations: 4.656 kB / 0.8717 GB, free: 20.8 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.6439, allocations: 21.36 kB / 0.8717 GB, free: 20.78 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.303e-06/0.6439, allocations: 6.266 kB / 0.8717 GB, free: 20.78 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/0.6441, allocations: 16.23 kB / 0.8717 GB, free: 20.76 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.932e-05/0.6441, allocations: 8 kB / 0.8718 GB, free: 20.75 MB / 0.5575 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 9.51e-05/0.6442, allocations: 184.2 kB / 0.8719 GB, free: 20.55 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.796e-05/0.6442, allocations: 15.81 kB / 0.8719 GB, free: 20.54 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.332e-05/0.6443, allocations: 13.41 kB / 0.872 GB, free: 20.52 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.6443, allocations: 0 / 0.872 GB, free: 20.52 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.6443, allocations: 7.938 kB / 0.872 GB, free: 20.52 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.6443, allocations: 3.984 kB / 0.872 GB, free: 20.51 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003473/0.6446, allocations: 423 kB / 0.8724 GB, free: 20.05 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.6447, allocations: 7.891 kB / 0.8724 GB, free: 20.05 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.103e-05/0.6447, allocations: 12 kB / 0.8724 GB, free: 20.04 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.6447, allocations: 0 / 0.8724 GB, free: 20.04 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.958e-05/0.6448, allocations: 7.984 kB / 0.8724 GB, free: 20.03 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.6448, allocations: 4 kB / 0.8724 GB, free: 20.02 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.6448, allocations: 0 / 0.8724 GB, free: 20.02 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002495/0.645, allocations: 271.2 kB / 0.8727 GB, free: 19.74 MB / 0.5575 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002972/0.6453, allocations: 0.6286 MB / 0.8733 GB, free: 19.09 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.807e-05/0.6454, allocations: 92.91 kB / 0.8734 GB, free: 18.98 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.839e-05/0.6454, allocations: 4 kB / 0.8734 GB, free: 18.98 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.6456, allocations: 12 kB / 0.8734 GB, free: 18.97 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.151e-05/0.6456, allocations: 7.984 kB / 0.8734 GB, free: 18.96 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/0.6456, allocations: 15.89 kB / 0.8734 GB, free: 18.95 MB / 0.5575 GB Notification: Performance of sort global known variables: time 5.899e-05/0.6457, allocations: 120.3 kB / 0.8735 GB, free: 18.83 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.000834/0.6465, allocations: 36 kB / 0.8735 GB, free: 18.79 MB / 0.5575 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.000235/0.6468, allocations: 138.6 kB / 0.8737 GB, free: 18.66 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 0.000257/0.647, allocations: 222.7 kB / 0.8739 GB, free: 18.42 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.6471, allocations: 0 / 0.8739 GB, free: 18.42 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001251/0.6472, allocations: 135.9 kB / 0.874 GB, free: 18.27 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002286/0.6474, allocations: 16.19 kB / 0.874 GB, free: 18.25 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004387/0.6479, allocations: 193.5 kB / 0.8742 GB, free: 18.05 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001684/0.6481, allocations: 0.7347 MB / 0.8749 GB, free: 17.29 MB / 0.5575 GB Notification: Performance of SimCode: time 2.5e-07/0.6481, allocations: 3.938 kB / 0.8749 GB, free: 17.28 MB / 0.5575 GB (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter.fmu > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)