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: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter") [: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.209/1.209, allocations: 249.4 MB / 256.7 MB, free: 6.984 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.001075/0.001075, allocations: 181.1 kB / 316 MB, free: 3.547 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.045/1.045, allocations: 205.2 MB / 0.5667 GB, free: 15.62 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.0007866/0.0007867, allocations: 86.16 kB / 0.671 GB, free: 4.758 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.35e-06/5.37e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1353, allocations: 106.3 MB / 0.8846 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4121/0.5474, allocations: 134.1 MB / 1.016 GB, free: 4.645 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001983/0.5477, allocations: 79.27 kB / 1.016 GB, free: 4.602 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01241/0.5601, allocations: 4.615 MB / 1.02 GB, free: 0.8164 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.068e-05/0.5601, allocations: 4 kB / 1.02 GB, free: 0.8125 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.0004824/0.5606, allocations: 0.5145 MB / 1.021 GB, free: 248 kB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.5607, allocations: 12.03 kB / 1.021 GB, free: 236 kB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.443e-05/0.5607, allocations: 15.81 kB / 1.021 GB, free: 220 kB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002889/0.561, allocations: 232.7 kB / 1.021 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.636e-05/0.5611, allocations: 4 kB / 1.021 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.004e-05/0.5611, allocations: 15.94 kB / 1.021 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001324/0.5612, allocations: 45.92 kB / 1.021 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001554/0.5614, allocations: 103.2 kB / 1.021 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.5614, allocations: 0 / 1.021 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.719e-05/0.5614, allocations: 4 kB / 1.021 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.5614, allocations: 3.906 kB / 1.021 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005852/0.562, allocations: 405.8 kB / 1.021 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001222/0.5622, allocations: 76.44 kB / 1.021 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.282e-05/0.5623, allocations: 66.08 kB / 1.022 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.043e-05/0.5623, allocations: 0 / 1.022 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001726/0.5625, allocations: 167.1 kB / 1.022 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=10): time 1.263e-06/0.5625, allocations: 4 kB / 1.022 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of matching and sorting (n=10): time 0.0003018/0.5628, allocations: 153.1 kB / 1.022 GB, free: 15.01 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.089e-05/0.5629, allocations: 166 kB / 1.022 GB, free: 14.81 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001287/0.563, allocations: 154.9 kB / 1.022 GB, free: 14.67 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/0.563, allocations: 29.7 kB / 1.022 GB, free: 14.64 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 4.553e-05/0.5631, allocations: 95.7 kB / 1.022 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.339e-05/0.5631, allocations: 26.84 kB / 1.022 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.06e-05/0.5631, allocations: 0 / 1.022 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 8.69e-05/0.5632, allocations: 329.8 kB / 1.023 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.013e-05/0.5633, allocations: 38.48 kB / 1.023 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.338e-05/0.5634, allocations: 91.05 kB / 1.023 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.46e-05/0.5635, allocations: 53.59 kB / 1.023 GB, free: 14.03 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.5635, allocations: 0 / 1.023 GB, free: 14.03 MB / 0.6511 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002511/0.5638, allocations: 161.6 kB / 1.023 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 9.989e-06/0.5638, allocations: 4 kB / 1.023 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.5638, allocations: 4.234 kB / 1.023 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.5638, allocations: 8 kB / 1.023 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.5639, allocations: 23.92 kB / 1.023 GB, free: 13.85 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.5639, allocations: 8 kB / 1.023 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.974e-05/0.564, allocations: 15.84 kB / 1.023 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/0.5641, allocations: 15.73 kB / 1.023 GB, free: 13.81 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.0001077/0.5642, allocations: 176 kB / 1.023 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.828e-05/0.5642, allocations: 15.81 kB / 1.023 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.369e-05/0.5643, allocations: 16.95 kB / 1.023 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.5643, allocations: 0 / 1.023 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.5643, allocations: 0 / 1.023 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.5643, allocations: 4 kB / 1.023 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000395/0.5647, allocations: 432 kB / 1.024 GB, free: 13.18 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.5647, allocations: 0 / 1.024 GB, free: 13.18 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.578e-05/0.5648, allocations: 23.42 kB / 1.024 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.5648, allocations: 0 / 1.024 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.5648, allocations: 4 kB / 1.024 GB, free: 13.15 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.5648, allocations: 0 / 1.024 GB, free: 13.15 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.5648, allocations: 7.938 kB / 1.024 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002945/0.5651, allocations: 264.7 kB / 1.024 GB, free: 12.9 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.069e-05/0.5652, allocations: 89 kB / 1.024 GB, free: 12.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.841e-05/0.5652, allocations: 11.91 kB / 1.024 GB, free: 12.79 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001252/0.5654, allocations: 11.38 kB / 1.024 GB, free: 12.78 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.815e-05/0.5654, allocations: 7.984 kB / 1.024 GB, free: 12.77 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.5654, allocations: 4 kB / 1.024 GB, free: 12.77 MB / 0.6511 GB Notification: Performance of sort global known variables: time 7.488e-05/0.5655, allocations: 123.1 kB / 1.024 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002595/0.5658, allocations: 32 kB / 1.024 GB, free: 12.63 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.0002088/0.566, allocations: 121.5 kB / 1.024 GB, free: 12.51 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.00027/0.5663, allocations: 224.3 kB / 1.025 GB, free: 12.29 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.5663, allocations: 3.938 kB / 1.025 GB, free: 12.29 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001348/0.5664, allocations: 138.1 kB / 1.025 GB, free: 12.17 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001972/0.5666, allocations: 20.06 kB / 1.025 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004115/0.567, allocations: 194.5 kB / 1.025 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002554/0.5673, allocations: 0.7386 MB / 1.026 GB, free: 11.2 MB / 0.6511 GB Notification: Performance of SimCode: time 1.363e-06/0.5673, allocations: 0 / 1.026 GB, free: 11.2 MB / 0.6511 GB Notification: Performance of Templates: time 0.004111/0.5714, allocations: 1.928 MB / 1.027 GB, free: 9.312 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches