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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 99.39 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001333/0.001334, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.503/1.503, allocations: 223.2 MB / 239.9 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.703/2.703, allocations: 436.5 MB / 0.7104 GB, free: 7.875 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003546/0.0003546, allocations: 12 kB / 0.8708 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8365/0.8369, allocations: 153.7 MB / 1.021 GB, free: 1.109 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002264/0.8392, allocations: 1.297 MB / 1.022 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0009759/0.8402, allocations: 0.5576 MB / 1.023 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.068e-05/0.8403, allocations: 4 kB / 1.023 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001964/0.8406, allocations: 19.86 kB / 1.023 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002702/0.8408, allocations: 31.94 kB / 1.023 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004463/0.8413, allocations: 99.77 kB / 1.023 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001739/0.8415, allocations: 99.8 kB / 1.023 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001613/0.8416, allocations: 25.06 kB / 1.023 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001742/0.8418, allocations: 67.81 kB / 1.023 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001455/0.842, allocations: 67.73 kB / 1.023 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.686e-05/0.842, allocations: 8 kB / 1.023 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.652e-05/0.8421, allocations: 19.98 kB / 1.023 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.931e-05/0.8422, allocations: 15.92 kB / 1.023 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.044e-05/0.8423, allocations: 53.64 kB / 1.023 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002364/0.8425, allocations: 113.7 kB / 1.023 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.8425, allocations: 0 / 1.023 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.777e-06/0.8425, allocations: 0 / 1.023 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.317e-06/0.8425, allocations: 4 kB / 1.023 GB, free: 14.62 MB / 0.7794 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.001041/0.8436, allocations: 0.5288 MB / 1.024 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 6.15e-05/0.8437, allocations: 11.98 kB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.779e-05/0.8438, allocations: 19.84 kB / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003915/0.8441, allocations: 226.8 kB / 1.024 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.8442, allocations: 11.94 kB / 1.024 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.464e-05/0.8442, allocations: 19.95 kB / 1.024 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002936/0.8445, allocations: 113.6 kB / 1.024 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.8445, allocations: 3.938 kB / 1.024 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.081e-05/0.8446, allocations: 8 kB / 1.024 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.525e-06/0.8446, allocations: 0 / 1.024 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000215/0.8448, allocations: 75.94 kB / 1.024 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007288/0.8455, allocations: 432.5 kB / 1.025 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002133/0.8458, allocations: 90.53 kB / 1.025 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.842e-05/0.8458, allocations: 0 / 1.025 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002894/0.8461, allocations: 182.6 kB / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.8461, allocations: 0 / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0008355/0.847, allocations: 0.5148 MB / 1.025 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.8471, allocations: 166.2 kB / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001773/0.8473, allocations: 174.6 kB / 1.026 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.8473, allocations: 29.7 kB / 1.026 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.974e-05/0.8474, allocations: 112.4 kB / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.134e-05/0.8474, allocations: 23.66 kB / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.44e-05/0.8475, allocations: 8 kB / 1.026 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.8476, allocations: 326.8 kB / 1.026 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.8477, allocations: 55.91 kB / 1.026 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001605/0.8479, allocations: 106.8 kB / 1.026 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002078/0.8481, allocations: 182.7 kB / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.8481, allocations: 288 / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005128/0.8487, allocations: 356.2 kB / 1.027 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001113/0.8488, allocations: 122.8 kB / 1.027 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.8488, allocations: 3.938 kB / 1.027 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.8488, allocations: 4 kB / 1.027 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.8489, allocations: 19.98 kB / 1.027 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.475e-06/0.849, allocations: 3.938 kB / 1.027 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.831e-05/0.8491, allocations: 23.83 kB / 1.027 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.496e-05/0.8491, allocations: 16.09 kB / 1.027 GB, free: 10.27 MB / 0.7794 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.000194/0.8493, allocations: 193.2 kB / 1.027 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.782e-05/0.8493, allocations: 11.91 kB / 1.027 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.363e-05/0.8494, allocations: 17.39 kB / 1.027 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.8494, allocations: 0 / 1.027 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.8494, allocations: 0 / 1.027 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.8494, allocations: 0 / 1.027 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007479/0.8502, allocations: 0.6031 MB / 1.028 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.8502, allocations: 0 / 1.028 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.467e-05/0.8502, allocations: 15.94 kB / 1.028 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.8503, allocations: 4 kB / 1.028 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.042e-05/0.8503, allocations: 7.984 kB / 1.028 GB, free: 9.332 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.8503, allocations: 0 / 1.028 GB, free: 9.332 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.8503, allocations: 4 kB / 1.028 GB, free: 9.328 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005382/0.8508, allocations: 406.6 kB / 1.028 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.659e-05/0.8509, allocations: 92.91 kB / 1.028 GB, free: 8.793 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4e-05/0.851, allocations: 8 kB / 1.028 GB, free: 8.785 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.8511, allocations: 12 kB / 1.028 GB, free: 8.773 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.023e-05/0.8511, allocations: 11.92 kB / 1.028 GB, free: 8.762 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.017e-05/0.8512, allocations: 11.98 kB / 1.028 GB, free: 8.75 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001058/0.8513, allocations: 132.3 kB / 1.029 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.01e-07/0.8513, allocations: 0 / 1.029 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003004/0.8516, allocations: 36 kB / 1.029 GB, free: 8.586 MB / 0.7794 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.0003179/0.8519, allocations: 124.5 kB / 1.029 GB, free: 8.457 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005273/0.8525, allocations: 365.8 kB / 1.029 GB, free: 8.051 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.8525, allocations: 4.125 kB / 1.029 GB, free: 8.047 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002574/0.8527, allocations: 218.7 kB / 1.029 GB, free: 7.809 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000241/0.853, allocations: 16.14 kB / 1.029 GB, free: 7.793 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006571/0.8536, allocations: 306 kB / 1.03 GB, free: 7.469 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003361/0.854, allocations: 0.7121 MB / 1.03 GB, free: 6.73 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.584e-05/0.8541, allocations: 24.53 kB / 1.03 GB, free: 6.707 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.883e-05/0.8541, allocations: 15.44 kB / 1.03 GB, free: 6.691 MB / 0.7794 GB Notification: Performance of SimCode: time 3.416e-06/0.8541, allocations: 0 / 1.03 GB, free: 6.691 MB / 0.7794 GB Notification: Performance of Templates: time 0.005369/0.8595, allocations: 1.948 MB / 1.032 GB, free: 4.762 MB / 0.7794 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