Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 2.009/2.009, allocations: 390.4 MB / 397.7 MB, free: 11.28 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.0009558/0.0009559, allocations: 178.7 kB / 490.8 MB, free: 1.988 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.292/1.292, allocations: 221.4 MB / 0.7863 GB, free: 13.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009273/0.0009273, allocations: 92.86 kB / 0.9264 GB, free: 14.22 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.682e-06/6.702e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.313/0.313, allocations: 143 MB / 1.212 GB, free: 40.16 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7568/1.07, allocations: 151.3 MB / 1.359 GB, free: 17.47 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003112/1.07, allocations: 80.38 kB / 1.359 GB, free: 17.47 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.01607/1.086, allocations: 4.681 MB / 1.364 GB, free: 17.15 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.402e-05/1.086, allocations: 5.531 kB / 1.364 GB, free: 17.15 MB / 0.823 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.0006445/1.087, allocations: 0.5148 MB / 1.365 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/1.087, allocations: 9.062 kB / 1.365 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.085e-05/1.087, allocations: 21.36 kB / 1.365 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003321/1.088, allocations: 225.3 kB / 1.365 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.8e-05/1.088, allocations: 7.312 kB / 1.365 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.651e-05/1.088, allocations: 10.34 kB / 1.365 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001677/1.088, allocations: 54.08 kB / 1.365 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001925/1.088, allocations: 94.94 kB / 1.365 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/1.088, allocations: 1.125 kB / 1.365 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.039e-05/1.088, allocations: 2.031 kB / 1.365 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/1.088, allocations: 3 kB / 1.365 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000706/1.089, allocations: 406.1 kB / 1.365 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001489/1.089, allocations: 77.89 kB / 1.365 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001177/1.089, allocations: 68.17 kB / 1.365 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/1.089, allocations: 6.125 kB / 1.365 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000191/1.089, allocations: 169.5 kB / 1.366 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 2.374e-06/1.089, allocations: 96 / 1.366 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0003602/1.09, allocations: 156.8 kB / 1.366 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.146e-05/1.09, allocations: 165.2 kB / 1.366 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/1.09, allocations: 152.5 kB / 1.366 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.229e-05/1.09, allocations: 28.42 kB / 1.366 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.065e-05/1.09, allocations: 101.9 kB / 1.366 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.936e-05/1.09, allocations: 23.33 kB / 1.366 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.321e-05/1.09, allocations: 2.312 kB / 1.366 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001338/1.09, allocations: 325.4 kB / 1.367 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.998e-05/1.09, allocations: 38.59 kB / 1.367 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001114/1.09, allocations: 90.44 kB / 1.367 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.936e-05/1.09, allocations: 48.53 kB / 1.367 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/1.09, allocations: 1.406 kB / 1.367 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002794/1.091, allocations: 168.1 kB / 1.367 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/1.091, allocations: 4.969 kB / 1.367 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/1.091, allocations: 2.75 kB / 1.367 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/1.091, allocations: 6.375 kB / 1.367 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/1.091, allocations: 21.89 kB / 1.367 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.822e-06/1.091, allocations: 4.062 kB / 1.367 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/1.091, allocations: 16.69 kB / 1.367 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.177e-05/1.091, allocations: 10.66 kB / 1.367 GB, free: 31.07 MB / 0.8386 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.0001365/1.091, allocations: 180.1 kB / 1.367 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.143e-05/1.091, allocations: 17.25 kB / 1.367 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.845e-05/1.091, allocations: 20.58 kB / 1.367 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/1.091, allocations: 1.438 kB / 1.367 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/1.091, allocations: 0 / 1.367 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/1.091, allocations: 0 / 1.367 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000464/1.092, allocations: 428 kB / 1.368 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-06/1.092, allocations: 0 / 1.368 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.443e-05/1.092, allocations: 13.66 kB / 1.368 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/1.092, allocations: 7.844 kB / 1.368 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.221e-05/1.092, allocations: 10.39 kB / 1.368 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/1.092, allocations: 1.438 kB / 1.368 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/1.092, allocations: 3.938 kB / 1.368 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003708/1.092, allocations: 267.2 kB / 1.368 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.485e-05/1.092, allocations: 89.94 kB / 1.368 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.223e-05/1.092, allocations: 4.625 kB / 1.368 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001298/1.093, allocations: 10.12 kB / 1.368 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.978e-05/1.093, allocations: 4.766 kB / 1.368 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-05/1.093, allocations: 11.69 kB / 1.368 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of sort global known variables: time 9.282e-05/1.093, allocations: 126.9 kB / 1.368 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002932/1.093, allocations: 32.66 kB / 1.368 GB, free: 30.27 MB / 0.8386 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.0002775/1.093, allocations: 122.5 kB / 1.368 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003218/1.094, allocations: 222.4 kB / 1.368 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/1.094, allocations: 0 / 1.368 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001498/1.094, allocations: 139.1 kB / 1.369 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002518/1.094, allocations: 17.02 kB / 1.369 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004914/1.095, allocations: 197.3 kB / 1.369 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003278/1.095, allocations: 0.7332 MB / 1.369 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of SimCode: time 2.9e-07/1.095, allocations: 0 / 1.369 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of Templates: time 0.005253/1.1, allocations: 1.941 MB / 1.371 GB, free: 28.9 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches