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/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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00693/0.00693, allocations: 103.5 kB / 15.73 MB, free: 6.047 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.001369/0.001369, allocations: 188 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.223/2.223, allocations: 390.3 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 55.91 kB / 0.9504 GB, free: 8.184 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8555/0.8568, allocations: 140.4 MB / 1.087 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003047/0.8599, allocations: 1.6 MB / 1.089 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001005/0.8609, allocations: 0.61 MB / 1.09 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.02e-05/0.861, allocations: 1.125 kB / 1.09 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001747/0.8612, allocations: 28.92 kB / 1.09 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000231/0.8615, allocations: 39.89 kB / 1.09 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004096/0.8619, allocations: 111.8 kB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003155/0.8622, allocations: 197.9 kB / 1.09 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001348/0.8623, allocations: 32.14 kB / 1.09 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001736/0.8625, allocations: 86.34 kB / 1.09 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001574/0.8627, allocations: 84.16 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.503e-05/0.8627, allocations: 13.41 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.512e-05/0.8628, allocations: 33.97 kB / 1.09 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.772e-05/0.8629, allocations: 28.06 kB / 1.09 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001037/0.863, allocations: 77.5 kB / 1.09 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002789/0.8633, allocations: 163.8 kB / 1.09 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.8633, allocations: 0 / 1.09 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.975e-06/0.8633, allocations: 0.5156 kB / 1.09 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.404e-06/0.8634, allocations: 1.188 kB / 1.09 GB, free: 3.332 MB / 0.8575 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.0006727/0.864, allocations: 0.5603 MB / 1.091 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.8641, allocations: 11.17 kB / 1.091 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.223e-05/0.8641, allocations: 34.45 kB / 1.091 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.155e-05/0.8642, allocations: 24.12 kB / 1.091 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003109/0.8645, allocations: 238.3 kB / 1.091 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.094e-05/0.8645, allocations: 7.188 kB / 1.091 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.679e-05/0.8646, allocations: 16.05 kB / 1.091 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003167/0.8649, allocations: 115.1 kB / 1.091 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.8649, allocations: 3.938 kB / 1.091 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.027e-05/0.865, allocations: 7.281 kB / 1.091 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.865, allocations: 1.625 kB / 1.091 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002283/0.8652, allocations: 64.09 kB / 1.092 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007033/0.8659, allocations: 426.9 kB / 1.092 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002253/0.8662, allocations: 86.27 kB / 1.092 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002085/0.8664, allocations: 80.48 kB / 1.092 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.927e-05/0.8664, allocations: 5.281 kB / 1.092 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003109/0.8667, allocations: 174 kB / 1.092 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.643e-06/0.8667, allocations: 4 kB / 1.092 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0008758/0.8676, allocations: 355.2 kB / 1.093 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.815e-05/0.8677, allocations: 166.7 kB / 1.093 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000191/0.8679, allocations: 177.2 kB / 1.093 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.8679, allocations: 33.31 kB / 1.093 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.565e-05/0.868, allocations: 110.7 kB / 1.093 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.921e-05/0.8681, allocations: 26.27 kB / 1.093 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.402e-05/0.8681, allocations: 42.97 kB / 1.093 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.4e-05/0.8682, allocations: 335.5 kB / 1.093 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000154/0.8684, allocations: 46.73 kB / 1.094 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.8686, allocations: 106.1 kB / 1.094 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003489/0.8689, allocations: 315.7 kB / 1.094 GB, free: 496 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.8689, allocations: 1.406 kB / 1.094 GB, free: 496 kB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006148/0.8696, allocations: 344.4 kB / 1.094 GB, free: 276 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 7.005e-05/0.8696, allocations: 119.9 kB / 1.094 GB, free: 144 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.928e-06/0.8697, allocations: 6.375 kB / 1.094 GB, free: 140 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.217e-05/0.8697, allocations: 3.312 kB / 1.094 GB, free: 140 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.8698, allocations: 19.81 kB / 1.094 GB, free: 136 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.8698, allocations: 3.453 kB / 1.094 GB, free: 136 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.8699, allocations: 18.03 kB / 1.094 GB, free: 128 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.718e-05/0.87, allocations: 8.734 kB / 1.094 GB, free: 128 kB / 0.8575 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 (combiTimeTableWriter.str,$PRE.combiTimeTableWriter.str,csvWriter.str,$PRE.csvWriter.str,combiTimeTableWriter.sampleTrigger,$whenCondition2,csvWriter.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002062/0.8702, allocations: 197.3 kB / 1.095 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.039e-05/0.8702, allocations: 18.3 kB / 1.095 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.206e-05/0.8703, allocations: 22.39 kB / 1.095 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.8703, allocations: 1.406 kB / 1.095 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.8703, allocations: 0.7031 kB / 1.095 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.8703, allocations: 5.109 kB / 1.095 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009027/0.8712, allocations: 0.5802 MB / 1.095 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.8713, allocations: 0 / 1.095 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.932e-05/0.8713, allocations: 11.08 kB / 1.095 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.8713, allocations: 5.172 kB / 1.095 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.253e-05/0.8714, allocations: 11.02 kB / 1.095 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.8714, allocations: 0.6875 kB / 1.095 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.8714, allocations: 4.719 kB / 1.095 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006783/0.8721, allocations: 399.8 kB / 1.096 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.997e-05/0.8722, allocations: 89.64 kB / 1.096 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.005e-05/0.8722, allocations: 8.156 kB / 1.096 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.8723, allocations: 11.66 kB / 1.096 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.978e-05/0.8724, allocations: 10.28 kB / 1.096 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.696e-05/0.8724, allocations: 19.69 kB / 1.096 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001676/0.8726, allocations: 125.6 kB / 1.096 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8726, allocations: 3.938 kB / 1.096 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003422/0.873, allocations: 39.25 kB / 1.096 GB, free: 14.98 MB / 0.8731 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001216/0.8742, allocations: 0.9598 MB / 1.097 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0006202/0.8748, allocations: 365.3 kB / 1.097 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.8748, allocations: 0 / 1.097 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002901/0.8751, allocations: 201.2 kB / 1.097 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003767/0.8755, allocations: 32.09 kB / 1.097 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002988/0.8785, allocations: 2.098 MB / 1.099 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003195/0.8788, allocations: 0.7088 MB / 1.1 GB, free: 11.37 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 9.577e-05/0.8789, allocations: 23.98 kB / 1.1 GB, free: 11.37 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.115e-05/0.879, allocations: 41.7 kB / 1.1 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of SimCode: time 2.21e-07/0.879, allocations: 0 / 1.1 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02754/0.9066, allocations: 3.697 MB / 1.104 GB, free: 10.66 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.577/8.484, allocations: 5.281 kB / 1.104 GB, free: 10.66 MB / 0.8731 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches