Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.952/1.952, allocations: 387.2 MB / 394.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 189.2 kB / 487 MB, free: 5.359 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 221.3 MB / 0.7819 GB, free: 1.434 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009468/0.000947, allocations: 103.1 kB / 0.9213 GB, free: 2.676 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.252e-06/6.272e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2002/0.2002, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5541/0.7544, allocations: 150.6 MB / 1.352 GB, free: 16.25 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002057/0.7546, allocations: 77.5 kB / 1.352 GB, free: 16.25 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01401/0.7686, allocations: 4.68 MB / 1.357 GB, free: 15.94 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.368e-05/0.7687, allocations: 1.938 kB / 1.357 GB, free: 15.94 MB / 0.8073 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.0005017/0.7692, allocations: 0.5168 MB / 1.357 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.7692, allocations: 10.2 kB / 1.357 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.502e-05/0.7693, allocations: 19.19 kB / 1.357 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002985/0.7696, allocations: 239 kB / 1.358 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.7696, allocations: 7.312 kB / 1.358 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.258e-05/0.7697, allocations: 10.69 kB / 1.358 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000153/0.7698, allocations: 47.25 kB / 1.358 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001804/0.77, allocations: 91.5 kB / 1.358 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.7701, allocations: 0.7969 kB / 1.358 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.7701, allocations: 2.625 kB / 1.358 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.7701, allocations: 0.9062 kB / 1.358 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000664/0.7708, allocations: 413.2 kB / 1.358 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001345/0.7709, allocations: 69.81 kB / 1.358 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001177/0.771, allocations: 68.67 kB / 1.358 GB, free: 14.9 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.7711, allocations: 1.625 kB / 1.358 GB, free: 14.9 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001952/0.7713, allocations: 176.5 kB / 1.358 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=10): time 1.472e-06/0.7713, allocations: 0 / 1.358 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10): time 0.0003353/0.7716, allocations: 151 kB / 1.359 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.856e-05/0.7717, allocations: 166 kB / 1.359 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.7718, allocations: 155.9 kB / 1.359 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.7718, allocations: 36.67 kB / 1.359 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.821e-05/0.7719, allocations: 104.9 kB / 1.359 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.657e-05/0.7719, allocations: 21.14 kB / 1.359 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.321e-05/0.7719, allocations: 3.5 kB / 1.359 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.295e-05/0.772, allocations: 328.4 kB / 1.359 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.321e-05/0.7721, allocations: 37.52 kB / 1.359 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.7722, allocations: 90.81 kB / 1.36 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.794e-05/0.7723, allocations: 46.14 kB / 1.36 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.7723, allocations: 0.625 kB / 1.36 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002951/0.7726, allocations: 162.6 kB / 1.36 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.7726, allocations: 9.875 kB / 1.36 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.7727, allocations: 1.906 kB / 1.36 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.7727, allocations: 3.094 kB / 1.36 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.7728, allocations: 22.84 kB / 1.36 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.7728, allocations: 3.672 kB / 1.36 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001091/0.7729, allocations: 14.52 kB / 1.36 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.435e-05/0.773, allocations: 8.828 kB / 1.36 GB, free: 13.86 MB / 0.8073 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.0001221/0.7731, allocations: 187.8 kB / 1.36 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.53e-05/0.7731, allocations: 17.12 kB / 1.36 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.494e-05/0.7732, allocations: 14.92 kB / 1.36 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.7732, allocations: 1.375 kB / 1.36 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.7732, allocations: 8 kB / 1.36 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.7732, allocations: 1.688 kB / 1.36 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004709/0.7737, allocations: 426 kB / 1.36 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.7737, allocations: 1.766 kB / 1.36 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.108e-05/0.7738, allocations: 12.69 kB / 1.36 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.7738, allocations: 0.6875 kB / 1.36 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.6e-05/0.7738, allocations: 17.61 kB / 1.36 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.7739, allocations: 5.641 kB / 1.36 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.7739, allocations: 0 / 1.36 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003354/0.7742, allocations: 258.5 kB / 1.361 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3.629e-05/0.7743, allocations: 90.14 kB / 1.361 GB, free: 13.15 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.484e-05/0.7743, allocations: 3.812 kB / 1.361 GB, free: 13.15 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.7744, allocations: 9.984 kB / 1.361 GB, free: 13.15 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.432e-05/0.7745, allocations: 13.17 kB / 1.361 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.188e-05/0.7745, allocations: 7.703 kB / 1.361 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of sort global known variables: time 8.145e-05/0.7746, allocations: 122.9 kB / 1.361 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003/0.7749, allocations: 36.81 kB / 1.361 GB, free: 13.06 MB / 0.8073 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.0002656/0.7752, allocations: 130.8 kB / 1.361 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003206/0.7755, allocations: 222.2 kB / 1.361 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.7755, allocations: 0 / 1.361 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001827/0.7757, allocations: 136.2 kB / 1.361 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002393/0.776, allocations: 13.72 kB / 1.361 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005373/0.7765, allocations: 198.2 kB / 1.362 GB, free: 12.67 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002204/0.7768, allocations: 0.7319 MB / 1.362 GB, free: 11.96 MB / 0.8073 GB Notification: Performance of SimCode: time 2.61e-07/0.7768, allocations: 0 / 1.362 GB, free: 11.96 MB / 0.8073 GB Notification: Performance of Templates: time 0.005004/0.7818, allocations: 1.925 MB / 1.364 GB, free: 10.91 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches