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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.341/1.341, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001225/0.001225, allocations: 178.8 kB / 326.5 MB, free: 2.258 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.696/1.696, allocations: 205.4 MB / 0.5775 GB, free: 20.3 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.0008791/0.000879, allocations: 102 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003514/0.0003514, allocations: 9.594 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2066/0.2069, allocations: 106.3 MB / 0.9001 GB, free: 63.97 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1589/0.3659, allocations: 133.9 MB / 1.031 GB, free: 9.934 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002035/0.3661, allocations: 75.95 kB / 1.031 GB, free: 9.859 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01281/0.3789, allocations: 5.019 MB / 1.036 GB, free: 4.805 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.784e-06/0.3789, allocations: 0 / 1.036 GB, free: 4.805 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.468e-06/0.379, allocations: 4 kB / 1.036 GB, free: 4.801 MB / 0.6823 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.0005639/0.3795, allocations: 0.5483 MB / 1.036 GB, free: 4.18 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.045e-05/0.3796, allocations: 8.031 kB / 1.036 GB, free: 4.172 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.095e-05/0.3796, allocations: 15.91 kB / 1.036 GB, free: 4.156 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002543/0.3799, allocations: 230.7 kB / 1.037 GB, free: 3.891 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.3799, allocations: 8 kB / 1.037 GB, free: 3.883 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.997e-05/0.38, allocations: 16 kB / 1.037 GB, free: 3.867 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002419/0.3802, allocations: 109.6 kB / 1.037 GB, free: 3.754 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.782e-06/0.3802, allocations: 0 / 1.037 GB, free: 3.754 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.803e-05/0.3802, allocations: 12 kB / 1.037 GB, free: 3.742 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.3803, allocations: 0 / 1.037 GB, free: 3.742 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001922/0.3805, allocations: 87.81 kB / 1.037 GB, free: 3.656 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006063/0.3811, allocations: 416.7 kB / 1.037 GB, free: 3.199 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001785/0.3813, allocations: 98.55 kB / 1.037 GB, free: 3.094 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.543e-05/0.3813, allocations: 0 / 1.037 GB, free: 3.094 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002403/0.3815, allocations: 186.7 kB / 1.037 GB, free: 2.887 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=10): time 1.332e-06/0.3815, allocations: 0 / 1.037 GB, free: 2.887 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10): time 0.0007308/0.3823, allocations: 0.5186 MB / 1.038 GB, free: 2.312 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.227e-05/0.3824, allocations: 166.2 kB / 1.038 GB, free: 2.113 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001271/0.3825, allocations: 159.1 kB / 1.038 GB, free: 1.949 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.3825, allocations: 33.69 kB / 1.038 GB, free: 1.91 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.659e-05/0.3826, allocations: 108.3 kB / 1.038 GB, free: 1.797 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.433e-05/0.3826, allocations: 23.7 kB / 1.038 GB, free: 1.773 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.299e-05/0.3827, allocations: 8 kB / 1.038 GB, free: 1.766 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.3828, allocations: 326.8 kB / 1.039 GB, free: 1.438 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001398/0.3829, allocations: 55.95 kB / 1.039 GB, free: 1.383 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000156/0.3831, allocations: 106.8 kB / 1.039 GB, free: 1.254 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001945/0.3833, allocations: 178.7 kB / 1.039 GB, free: 1.055 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.3833, allocations: 4 kB / 1.039 GB, free: 1.051 MB / 0.6823 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005104/0.3838, allocations: 356 kB / 1.039 GB, free: 0.6719 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 6.629e-05/0.3839, allocations: 118.8 kB / 1.04 GB, free: 0.5312 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3839, allocations: 4 kB / 1.04 GB, free: 0.5273 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.3839, allocations: 256 / 1.04 GB, free: 0.5273 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.384, allocations: 23.98 kB / 1.04 GB, free: 0.5039 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.3841, allocations: 4 kB / 1.04 GB, free: 0.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.3842, allocations: 19.89 kB / 1.04 GB, free: 492 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.105e-05/0.3842, allocations: 8 kB / 1.04 GB, free: 484 kB / 0.6823 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 () * Number of clocked 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.0001548/0.3844, allocations: 199.2 kB / 1.04 GB, free: 264 kB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.954e-05/0.3844, allocations: 15.81 kB / 1.04 GB, free: 248 kB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.584e-05/0.3845, allocations: 21.41 kB / 1.04 GB, free: 228 kB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.3845, allocations: 0 / 1.04 GB, free: 228 kB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.3845, allocations: 4 kB / 1.04 GB, free: 224 kB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.3845, allocations: 0 / 1.04 GB, free: 224 kB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006825/0.3852, allocations: 0.5914 MB / 1.04 GB, free: 15.56 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3852, allocations: 4 kB / 1.04 GB, free: 15.55 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.194e-05/0.3853, allocations: 12 kB / 1.04 GB, free: 15.54 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.3853, allocations: 3.984 kB / 1.04 GB, free: 15.54 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.953e-05/0.3853, allocations: 4.281 kB / 1.04 GB, free: 15.54 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.3853, allocations: 0 / 1.04 GB, free: 15.54 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3853, allocations: 0 / 1.04 GB, free: 15.54 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005099/0.3858, allocations: 418.5 kB / 1.041 GB, free: 15.1 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.436e-05/0.3859, allocations: 85.02 kB / 1.041 GB, free: 15 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.358e-05/0.3859, allocations: 12 kB / 1.041 GB, free: 14.98 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001148/0.3861, allocations: 11.98 kB / 1.041 GB, free: 14.97 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.767e-05/0.3861, allocations: 11.97 kB / 1.041 GB, free: 14.96 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/0.3861, allocations: 12 kB / 1.041 GB, free: 14.95 MB / 0.698 GB Notification: Performance of sorting global known variables: time 8.977e-05/0.3862, allocations: 131.5 kB / 1.041 GB, free: 14.82 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3862, allocations: 0 / 1.041 GB, free: 14.82 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002673/0.3865, allocations: 47.89 kB / 1.041 GB, free: 14.77 MB / 0.698 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) * Number of clocked states: 0 () * 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.0002114/0.3867, allocations: 126.3 kB / 1.041 GB, free: 14.65 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0004942/0.3872, allocations: 377.4 kB / 1.042 GB, free: 14.23 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3872, allocations: 0 / 1.042 GB, free: 14.23 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002275/0.3875, allocations: 202.7 kB / 1.042 GB, free: 14.01 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002131/0.3877, allocations: 27.08 kB / 1.042 GB, free: 13.98 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005555/0.3883, allocations: 309.9 kB / 1.042 GB, free: 13.65 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002564/0.3885, allocations: 0.716 MB / 1.043 GB, free: 12.91 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 6.02e-05/0.3886, allocations: 16.53 kB / 1.043 GB, free: 12.89 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.08e-05/0.3886, allocations: 23.42 kB / 1.043 GB, free: 12.87 MB / 0.698 GB Notification: Performance of SimCode: time 3.7e-07/0.3886, allocations: 0 / 1.043 GB, free: 12.87 MB / 0.698 GB Notification: Performance of Templates: time 0.004409/0.3931, allocations: 1.901 MB / 1.045 GB, free: 10.99 MB / 0.698 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