Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.539/2.539, allocations: 284.8 MB / 292.1 MB, free: 10.77 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.001633/0.001633, allocations: 185.2 kB / 360.3 MB, free: 7.539 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.939/1.939, allocations: 205.1 MB / 0.6187 GB, free: 13.22 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.00126/0.00126, allocations: 94.98 kB / 0.7317 GB, free: 45.13 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2902/0.2916, allocations: 121.4 MB / 0.8502 GB, free: 3.957 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6622/0.9538, allocations: 115.2 MB / 0.9627 GB, free: 78.47 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2394/1.193, allocations: 139.2 MB / 1.099 GB, free: 1.734 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003765/1.194, allocations: 76.52 kB / 1.099 GB, free: 1.66 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.02473/1.218, allocations: 5.137 MB / 1.104 GB, free: 12.51 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 6.54e-05/1.219, allocations: 12.94 kB / 1.104 GB, free: 12.5 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/1.219, allocations: 22.38 kB / 1.104 GB, free: 12.48 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007066/1.219, allocations: 242.8 kB / 1.104 GB, free: 12.2 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.168e-05/1.219, allocations: 7.906 kB / 1.104 GB, free: 12.2 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.795e-05/1.22, allocations: 9 kB / 1.104 GB, free: 12.19 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003531/1.22, allocations: 47.92 kB / 1.104 GB, free: 12.14 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004272/1.22, allocations: 94.23 kB / 1.104 GB, free: 12.04 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/1.22, allocations: 2.375 kB / 1.104 GB, free: 12.04 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.882e-05/1.22, allocations: 0 / 1.104 GB, free: 12.04 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/1.221, allocations: 4 kB / 1.104 GB, free: 12.04 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001883/1.222, allocations: 410.5 kB / 1.105 GB, free: 11.61 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003975/1.223, allocations: 74.55 kB / 1.105 GB, free: 11.52 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002936/1.223, allocations: 65.5 kB / 1.105 GB, free: 11.46 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 4.309e-05/1.223, allocations: 0.625 kB / 1.105 GB, free: 11.46 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004492/1.224, allocations: 166.8 kB / 1.105 GB, free: 11.27 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 3.817e-06/1.224, allocations: 0 / 1.105 GB, free: 11.27 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0009149/1.225, allocations: 154 kB / 1.105 GB, free: 11.11 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002129/1.225, allocations: 170 kB / 1.105 GB, free: 10.91 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004108/1.225, allocations: 154.3 kB / 1.105 GB, free: 10.75 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 7.882e-05/1.226, allocations: 29.7 kB / 1.105 GB, free: 10.72 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001236/1.226, allocations: 96.36 kB / 1.105 GB, free: 10.62 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 7.549e-05/1.226, allocations: 23.66 kB / 1.105 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.918e-05/1.226, allocations: 8 kB / 1.105 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0002296/1.226, allocations: 330.7 kB / 1.106 GB, free: 10.25 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002402/1.226, allocations: 32 kB / 1.106 GB, free: 10.22 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003478/1.227, allocations: 94.98 kB / 1.106 GB, free: 10.11 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000324/1.227, allocations: 47.97 kB / 1.106 GB, free: 10.06 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.585e-05/1.227, allocations: 4 kB / 1.106 GB, free: 10.05 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0007475/1.228, allocations: 161.3 kB / 1.106 GB, free: 9.891 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/1.228, allocations: 8.25 kB / 1.106 GB, free: 9.883 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/1.228, allocations: 4 kB / 1.106 GB, free: 9.879 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.652e-05/1.228, allocations: 4 kB / 1.106 GB, free: 9.875 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003301/1.228, allocations: 19.98 kB / 1.106 GB, free: 9.855 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.715e-05/1.228, allocations: 4 kB / 1.106 GB, free: 9.852 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000385/1.229, allocations: 11.98 kB / 1.106 GB, free: 9.84 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.721e-05/1.229, allocations: 8 kB / 1.106 GB, free: 9.832 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.0003799/1.229, allocations: 185.8 kB / 1.106 GB, free: 9.633 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/1.229, allocations: 19.81 kB / 1.106 GB, free: 9.613 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001282/1.23, allocations: 13.41 kB / 1.106 GB, free: 9.602 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/1.23, allocations: 3.938 kB / 1.106 GB, free: 9.598 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/1.23, allocations: 0 / 1.106 GB, free: 9.598 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.882e-06/1.23, allocations: 0 / 1.106 GB, free: 9.598 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001203/1.231, allocations: 434.8 kB / 1.107 GB, free: 9.129 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/1.231, allocations: 4 kB / 1.107 GB, free: 9.125 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002484/1.231, allocations: 11.98 kB / 1.107 GB, free: 9.113 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.634e-05/1.231, allocations: 7.984 kB / 1.107 GB, free: 9.105 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.978e-05/1.231, allocations: 7.984 kB / 1.107 GB, free: 9.098 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.02e-06/1.231, allocations: 0 / 1.107 GB, free: 9.098 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/1.231, allocations: 0 / 1.107 GB, free: 9.098 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008045/1.232, allocations: 265.6 kB / 1.107 GB, free: 8.824 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001097/1.233, allocations: 0.6284 MB / 1.108 GB, free: 8.18 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000128/1.233, allocations: 92.91 kB / 1.108 GB, free: 8.07 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.827e-05/1.234, allocations: 4 kB / 1.108 GB, free: 8.066 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003878/1.234, allocations: 8 kB / 1.108 GB, free: 8.059 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.96e-05/1.234, allocations: 15.89 kB / 1.108 GB, free: 8.043 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.489e-05/1.234, allocations: 8 kB / 1.108 GB, free: 8.035 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.0002382/1.234, allocations: 128.3 kB / 1.108 GB, free: 7.91 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.00218/1.237, allocations: 32 kB / 1.108 GB, free: 7.879 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.0005355/1.237, allocations: 127.1 kB / 1.108 GB, free: 7.758 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0008392/1.238, allocations: 218.7 kB / 1.108 GB, free: 7.52 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/1.238, allocations: 0 / 1.108 GB, free: 7.52 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0004257/1.239, allocations: 143.3 kB / 1.108 GB, free: 7.367 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005346/1.239, allocations: 14.22 kB / 1.108 GB, free: 7.352 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001133/1.24, allocations: 196.8 kB / 1.109 GB, free: 7.141 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005796/1.241, allocations: 0.7309 MB / 1.109 GB, free: 6.383 MB / 0.7136 GB Notification: Performance of SimCode: time 2.034e-06/1.241, allocations: 0 / 1.109 GB, free: 6.383 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)