Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_maint_8_0_x_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.0.1-maint.8.0.x/package.mo): time 1.407/1.407, allocations: 285.5 MB / 292.8 MB, free: 10.45 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.001066/0.001066, allocations: 193.2 kB / 361.1 MB, free: 7.074 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.213/1.213, allocations: 205.1 MB / 0.6195 GB, free: 10.27 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.0007797/0.0007797, allocations: 88.62 kB / 0.7326 GB, free: 44.22 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2006/0.2014, allocations: 121.4 MB / 0.8511 GB, free: 2.867 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.491/0.6924, allocations: 115.3 MB / 0.9637 GB, free: 78.18 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1406/0.8331, allocations: 139.3 MB / 1.1 GB, free: 0.6094 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002109/0.8334, allocations: 76.52 kB / 1.1 GB, free: 0.5352 MB / 0.698 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.01348/0.8469, allocations: 5.139 MB / 1.105 GB, free: 11.39 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.043e-05/0.8469, allocations: 12.5 kB / 1.105 GB, free: 11.38 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.895e-05/0.847, allocations: 16.69 kB / 1.105 GB, free: 11.37 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002714/0.8472, allocations: 234.8 kB / 1.105 GB, free: 11.1 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.569e-05/0.8473, allocations: 8.562 kB / 1.105 GB, free: 11.09 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.938e-05/0.8473, allocations: 18.31 kB / 1.105 GB, free: 11.07 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001285/0.8474, allocations: 48.64 kB / 1.105 GB, free: 11.03 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001489/0.8476, allocations: 94.33 kB / 1.105 GB, free: 10.93 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.8476, allocations: 0 / 1.105 GB, free: 10.93 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.753e-05/0.8476, allocations: 4.594 kB / 1.105 GB, free: 10.93 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.8476, allocations: 0 / 1.105 GB, free: 10.93 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005788/0.8482, allocations: 409.4 kB / 1.106 GB, free: 10.49 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001198/0.8484, allocations: 75.86 kB / 1.106 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.56e-05/0.8485, allocations: 60.84 kB / 1.106 GB, free: 10.35 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.03e-05/0.8485, allocations: 4.5 kB / 1.106 GB, free: 10.34 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001614/0.8487, allocations: 162.1 kB / 1.106 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 1.553e-06/0.8487, allocations: 0.8438 kB / 1.106 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0003054/0.849, allocations: 159.9 kB / 1.106 GB, free: 10 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.272e-05/0.8491, allocations: 171 kB / 1.106 GB, free: 9.801 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.8492, allocations: 154.4 kB / 1.106 GB, free: 9.641 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.093e-05/0.8492, allocations: 29.7 kB / 1.107 GB, free: 9.605 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.366e-05/0.8493, allocations: 96.36 kB / 1.107 GB, free: 9.504 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/0.8493, allocations: 27.64 kB / 1.107 GB, free: 9.477 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.143e-05/0.8493, allocations: 0 / 1.107 GB, free: 9.477 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.713e-05/0.8494, allocations: 330.7 kB / 1.107 GB, free: 9.145 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.831e-05/0.8495, allocations: 39.98 kB / 1.107 GB, free: 9.105 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.494e-05/0.8496, allocations: 90.8 kB / 1.107 GB, free: 8.992 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.021e-05/0.8497, allocations: 43.97 kB / 1.107 GB, free: 8.949 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.8497, allocations: 0 / 1.107 GB, free: 8.949 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002638/0.85, allocations: 169.3 kB / 1.107 GB, free: 8.777 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/0.85, allocations: 4 kB / 1.107 GB, free: 8.773 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.85, allocations: 0 / 1.107 GB, free: 8.773 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.547e-06/0.85, allocations: 5.688 kB / 1.107 GB, free: 8.77 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.8502, allocations: 24.17 kB / 1.107 GB, free: 8.746 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.8502, allocations: 8 kB / 1.107 GB, free: 8.738 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.8503, allocations: 13.11 kB / 1.107 GB, free: 8.727 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.572e-05/0.8503, allocations: 8 kB / 1.107 GB, free: 8.719 MB / 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.0001329/0.8505, allocations: 183.1 kB / 1.108 GB, free: 8.523 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.11e-05/0.8505, allocations: 15.81 kB / 1.108 GB, free: 8.508 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.544e-05/0.8505, allocations: 17.34 kB / 1.108 GB, free: 8.492 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.8505, allocations: 4 kB / 1.108 GB, free: 8.488 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.8506, allocations: 4 kB / 1.108 GB, free: 8.484 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.8506, allocations: 0 / 1.108 GB, free: 8.484 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004562/0.851, allocations: 430.8 kB / 1.108 GB, free: 8.02 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.851, allocations: 5.672 kB / 1.108 GB, free: 8.016 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.415e-05/0.8511, allocations: 17.39 kB / 1.108 GB, free: 8 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.8511, allocations: 0 / 1.108 GB, free: 8 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.056e-05/0.8512, allocations: 7.984 kB / 1.108 GB, free: 7.992 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.8512, allocations: 8 kB / 1.108 GB, free: 7.984 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.8512, allocations: 0 / 1.108 GB, free: 7.984 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000296/0.8515, allocations: 255.2 kB / 1.108 GB, free: 7.719 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003886/0.8519, allocations: 0.6292 MB / 1.109 GB, free: 7.07 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.532e-05/0.8519, allocations: 92.91 kB / 1.109 GB, free: 6.961 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.13e-05/0.852, allocations: 9.219 kB / 1.109 GB, free: 6.953 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001294/0.8521, allocations: 8 kB / 1.109 GB, free: 6.945 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.29e-05/0.8522, allocations: 11.89 kB / 1.109 GB, free: 6.934 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.859e-05/0.8522, allocations: 9.438 kB / 1.109 GB, free: 6.926 MB / 0.7136 GB Notification: Performance of sort global known variables: time 8.878e-05/0.8523, allocations: 129 kB / 1.109 GB, free: 6.801 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0008364/0.8531, allocations: 32 kB / 1.109 GB, free: 6.77 MB / 0.7136 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.0002512/0.8534, allocations: 137.5 kB / 1.109 GB, free: 6.637 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0003109/0.8537, allocations: 218.7 kB / 1.109 GB, free: 6.398 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.8537, allocations: 1.875 kB / 1.109 GB, free: 6.398 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001605/0.8539, allocations: 139.8 kB / 1.11 GB, free: 6.25 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002312/0.8541, allocations: 16.19 kB / 1.11 GB, free: 6.23 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004823/0.8546, allocations: 195.7 kB / 1.11 GB, free: 6.02 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002898/0.8549, allocations: 0.727 MB / 1.111 GB, free: 5.266 MB / 0.7136 GB Notification: Performance of SimCode: time 1.302e-06/0.8549, allocations: 0 / 1.111 GB, free: 5.266 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)