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.001609/0.001609, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001933/0.001933, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.317/1.317, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.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.292/2.292, allocations: 390.2 MB / 0.6647 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 63.89 kB / 0.8127 GB, free: 14.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6043/0.6058, allocations: 140.4 MB / 0.9497 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00237/0.6082, allocations: 1.595 MB / 0.9513 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007391/0.609, allocations: 0.6235 MB / 0.9519 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.489e-05/0.6091, allocations: 2.25 kB / 0.9519 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001191/0.6092, allocations: 22.02 kB / 0.9519 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001666/0.6094, allocations: 41.69 kB / 0.952 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003388/0.6097, allocations: 111.7 kB / 0.9521 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001904/0.6099, allocations: 193.6 kB / 0.9522 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.61, allocations: 33.41 kB / 0.9523 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001191/0.6102, allocations: 86.06 kB / 0.9524 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001058/0.6103, allocations: 88 kB / 0.9524 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.881e-05/0.6103, allocations: 13.78 kB / 0.9525 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.642e-05/0.6104, allocations: 29.25 kB / 0.9525 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.487e-05/0.6105, allocations: 35.83 kB / 0.9525 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.105e-05/0.6106, allocations: 72 kB / 0.9526 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001739/0.6107, allocations: 159.7 kB / 0.9527 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.6107, allocations: 3.984 kB / 0.9527 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.563e-06/0.6108, allocations: 0 / 0.9527 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.999e-06/0.6108, allocations: 0 / 0.9527 GB, free: 6.82 MB / 0.7169 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.000508/0.6113, allocations: 0.5548 MB / 0.9533 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.6113, allocations: 8.688 kB / 0.9533 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.087e-05/0.6114, allocations: 46.77 kB / 0.9533 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.271e-05/0.6114, allocations: 16.03 kB / 0.9534 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002139/0.6116, allocations: 235.2 kB / 0.9536 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.6116, allocations: 14 kB / 0.9536 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.945e-05/0.6117, allocations: 12.16 kB / 0.9536 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.6119, allocations: 115.4 kB / 0.9537 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.6119, allocations: 0 / 0.9537 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.672e-05/0.612, allocations: 2.906 kB / 0.9537 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.612, allocations: 0.7812 kB / 0.9537 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001818/0.6122, allocations: 71.3 kB / 0.9538 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005128/0.6127, allocations: 424.7 kB / 0.9542 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001718/0.6129, allocations: 90.62 kB / 0.9543 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.613, allocations: 80.09 kB / 0.9544 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.77e-05/0.613, allocations: 9.219 kB / 0.9544 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002154/0.6133, allocations: 173.3 kB / 0.9545 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.6133, allocations: 1.406 kB / 0.9545 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.000638/0.6139, allocations: 353.8 kB / 0.9549 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/0.614, allocations: 164.3 kB / 0.955 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.6141, allocations: 181.6 kB / 0.9552 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/0.6141, allocations: 29.11 kB / 0.9552 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.474e-05/0.6142, allocations: 112.4 kB / 0.9553 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.146e-05/0.6142, allocations: 23.28 kB / 0.9553 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.134e-05/0.6143, allocations: 39.2 kB / 0.9554 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.071e-05/0.6143, allocations: 331.4 kB / 0.9557 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001275/0.6145, allocations: 52.77 kB / 0.9558 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.6146, allocations: 100.8 kB / 0.9558 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002531/0.6149, allocations: 315.6 kB / 0.9562 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.6149, allocations: 4 kB / 0.9562 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004496/0.6153, allocations: 343 kB / 0.9565 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.121e-05/0.6154, allocations: 116.6 kB / 0.9566 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-06/0.6154, allocations: 1.781 kB / 0.9566 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.6154, allocations: 3.719 kB / 0.9566 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.6155, allocations: 19.89 kB / 0.9566 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.6155, allocations: 11.83 kB / 0.9566 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.763e-05/0.6156, allocations: 15.78 kB / 0.9566 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.6157, allocations: 7.75 kB / 0.9567 GB, free: 3.297 MB / 0.7169 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.000101/0.6158, allocations: 198 kB / 0.9568 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.294e-05/0.6158, allocations: 21.08 kB / 0.9569 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.931e-05/0.6158, allocations: 13.75 kB / 0.9569 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.6158, allocations: 1.25 kB / 0.9569 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.6158, allocations: 4 kB / 0.9569 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.6159, allocations: 0 / 0.9569 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005664/0.6164, allocations: 0.5864 MB / 0.9575 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.6164, allocations: 0 / 0.9575 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.528e-05/0.6165, allocations: 21.52 kB / 0.9575 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.6165, allocations: 0 / 0.9575 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.881e-05/0.6165, allocations: 13.48 kB / 0.9575 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.6165, allocations: 3.938 kB / 0.9575 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.6166, allocations: 9.312 kB / 0.9575 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004579/0.617, allocations: 394.8 kB / 0.9579 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.167e-05/0.617, allocations: 85.14 kB / 0.958 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.748e-05/0.6171, allocations: 8.109 kB / 0.958 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.6172, allocations: 5.5 kB / 0.958 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.099e-05/0.6173, allocations: 16.05 kB / 0.958 GB, free: 2.148 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.6173, allocations: 9.5 kB / 0.958 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.139e-05/0.6174, allocations: 134.7 kB / 0.9581 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6174, allocations: 0 / 0.9581 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002909/0.6177, allocations: 34.19 kB / 0.9582 GB, free: 2.035 MB / 0.7169 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.0007329/0.6184, allocations: 0.9572 MB / 0.9591 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004225/0.6188, allocations: 369.6 kB / 0.9594 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.6188, allocations: 0.5 kB / 0.9594 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001998/0.619, allocations: 213.2 kB / 0.9596 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000297/0.6194, allocations: 29.66 kB / 0.9597 GB, free: 0.6914 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002291/0.6217, allocations: 2.094 MB / 0.9617 GB, free: 14.9 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002559/0.6219, allocations: 0.7123 MB / 0.9624 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.772e-05/0.622, allocations: 20.47 kB / 0.9624 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.853e-05/0.6221, allocations: 37.77 kB / 0.9625 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of SimCode: time 2.61e-07/0.6221, allocations: 0 / 0.9625 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02022/0.6423, allocations: 3.585 MB / 0.966 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.37/8.013, allocations: 10.83 kB / 0.966 GB, free: 12.26 MB / 0.7325 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv --start-time -1.21 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004484 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.csv","/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