Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.254/1.254, allocations: 249.4 MB / 256.7 MB, free: 7.035 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.001051/0.001051, allocations: 188.9 kB / 316 MB, free: 3.605 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.13/1.13, allocations: 205.2 MB / 0.5667 GB, free: 15.73 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008187/0.0008186, allocations: 105.8 kB / 0.671 GB, free: 4.867 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3391/0.34, allocations: 112.5 MB / 0.7808 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1545/0.4945, allocations: 106.3 MB / 0.8847 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.515/1.01, allocations: 134.1 MB / 1.016 GB, free: 4.902 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001788/1.01, allocations: 82.3 kB / 1.016 GB, free: 4.859 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.01331/1.023, allocations: 5.132 MB / 1.021 GB, free: 0.4961 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/1.023, allocations: 8 kB / 1.021 GB, free: 500 kB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.905e-05/1.023, allocations: 19.81 kB / 1.021 GB, free: 480 kB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003259/1.024, allocations: 235.9 kB / 1.021 GB, free: 216 kB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.418e-05/1.024, allocations: 4 kB / 1.021 GB, free: 212 kB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3e-05/1.024, allocations: 12 kB / 1.021 GB, free: 200 kB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001412/1.024, allocations: 49.67 kB / 1.021 GB, free: 168 kB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001701/1.024, allocations: 91.58 kB / 1.021 GB, free: 84 kB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/1.024, allocations: 0 / 1.021 GB, free: 84 kB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.065e-05/1.024, allocations: 4 kB / 1.021 GB, free: 80 kB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/1.024, allocations: 3.906 kB / 1.021 GB, free: 76 kB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006977/1.025, allocations: 405.2 kB / 1.021 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001252/1.025, allocations: 78.92 kB / 1.022 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.622e-05/1.025, allocations: 63.89 kB / 1.022 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.236e-05/1.025, allocations: 4 kB / 1.022 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001617/1.025, allocations: 162.8 kB / 1.022 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=10): time 1.422e-06/1.025, allocations: 7.938 kB / 1.022 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of matching and sorting (n=10): time 0.0002939/1.025, allocations: 152.5 kB / 1.022 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.855e-05/1.026, allocations: 169.6 kB / 1.022 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/1.026, allocations: 148.1 kB / 1.022 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.205e-05/1.026, allocations: 37.52 kB / 1.022 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 4.441e-05/1.026, allocations: 99.2 kB / 1.022 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.555e-05/1.026, allocations: 22.78 kB / 1.022 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.109e-05/1.026, allocations: 0 / 1.022 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001015/1.026, allocations: 329.8 kB / 1.023 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.03e-05/1.026, allocations: 38.17 kB / 1.023 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.361e-05/1.026, allocations: 87.61 kB / 1.023 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.792e-05/1.026, allocations: 52.58 kB / 1.023 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/1.026, allocations: 0 / 1.023 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002776/1.026, allocations: 165.7 kB / 1.023 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/1.027, allocations: 7.938 kB / 1.023 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/1.027, allocations: 8.25 kB / 1.023 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/1.027, allocations: 0 / 1.023 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/1.027, allocations: 19.98 kB / 1.023 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.575e-06/1.027, allocations: 8.062 kB / 1.023 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/1.027, allocations: 11.91 kB / 1.023 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.076e-05/1.027, allocations: 11.69 kB / 1.023 GB, free: 14.08 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.0001219/1.027, allocations: 185.8 kB / 1.023 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.807e-05/1.027, allocations: 15.81 kB / 1.023 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.819e-05/1.027, allocations: 17.14 kB / 1.023 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/1.027, allocations: 4 kB / 1.023 GB, free: 13.85 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/1.027, allocations: 0 / 1.023 GB, free: 13.85 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/1.027, allocations: 0 / 1.023 GB, free: 13.85 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004114/1.027, allocations: 427.6 kB / 1.024 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/1.027, allocations: 0 / 1.024 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.499e-05/1.028, allocations: 23.98 kB / 1.024 GB, free: 13.42 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/1.028, allocations: 0 / 1.024 GB, free: 13.42 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.037e-05/1.028, allocations: 7.984 kB / 1.024 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/1.028, allocations: 4 kB / 1.024 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/1.028, allocations: 3.938 kB / 1.024 GB, free: 13.4 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002873/1.028, allocations: 261.8 kB / 1.024 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004095/1.028, allocations: 0.6306 MB / 1.025 GB, free: 12.55 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.277e-05/1.028, allocations: 96.73 kB / 1.025 GB, free: 12.44 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.766e-05/1.028, allocations: 4 kB / 1.025 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001261/1.029, allocations: 11.98 kB / 1.025 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.101e-05/1.029, allocations: 3.984 kB / 1.025 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.666e-05/1.029, allocations: 12 kB / 1.025 GB, free: 12.41 MB / 0.6511 GB Notification: Performance of sort global known variables: time 7.951e-05/1.029, allocations: 119.8 kB / 1.025 GB, free: 12.3 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0008155/1.03, allocations: 35.98 kB / 1.025 GB, free: 12.27 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.0002065/1.03, allocations: 132.5 kB / 1.025 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002766/1.03, allocations: 221.1 kB / 1.025 GB, free: 11.93 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/1.03, allocations: 0 / 1.025 GB, free: 11.93 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001491/1.03, allocations: 138.4 kB / 1.025 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000237/1.03, allocations: 15.8 kB / 1.025 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004673/1.031, allocations: 194.7 kB / 1.026 GB, free: 11.61 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003356/1.031, allocations: 0.7391 MB / 1.026 GB, free: 10.85 MB / 0.6511 GB Notification: Performance of SimCode: time 2.71e-07/1.031, allocations: 0 / 1.026 GB, free: 10.85 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)