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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_latest_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.007429/0.007429, allocations: 97.31 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.00172/0.00172, allocations: 184.4 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.799/2.799, allocations: 469.4 MB / 0.7422 GB, free: 7.559 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 63.89 kB / 1.064 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3217, allocations: 159.1 MB / 1.22 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00307/0.3248, allocations: 1.62 MB / 1.221 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0011/0.3259, allocations: 0.6078 MB / 1.222 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000114/0.3261, allocations: 4 kB / 1.222 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001907/0.3263, allocations: 27.78 kB / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002784/0.3266, allocations: 51.69 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004585/0.3271, allocations: 107.8 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002968/0.3274, allocations: 199.6 kB / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.3275, allocations: 21.11 kB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001987/0.3277, allocations: 83.81 kB / 1.222 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000165/0.3279, allocations: 87.72 kB / 1.222 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.157e-05/0.3279, allocations: 12 kB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.984e-05/0.328, allocations: 28 kB / 1.223 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.792e-05/0.3281, allocations: 31.91 kB / 1.223 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001138/0.3283, allocations: 75.64 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002867/0.3286, allocations: 167.3 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3286, allocations: 0 / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3286, allocations: 0 / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.075e-06/0.3286, allocations: 0 / 1.223 GB, free: 11.54 MB / 0.9825 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.0007541/0.3294, allocations: 0.5678 MB / 1.223 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.3294, allocations: 8.031 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.542e-05/0.3295, allocations: 34.75 kB / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.018e-05/0.3295, allocations: 28.83 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003922/0.3299, allocations: 240.8 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.762e-05/0.33, allocations: 4.375 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.351e-05/0.33, allocations: 20.36 kB / 1.224 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002804/0.3303, allocations: 125.4 kB / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/0.3303, allocations: 0 / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.949e-05/0.3303, allocations: 4 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.3303, allocations: 4 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000203/0.3305, allocations: 59.95 kB / 1.224 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007153/0.3313, allocations: 428.5 kB / 1.224 GB, free: 9.863 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001993/0.3315, allocations: 90.53 kB / 1.224 GB, free: 9.766 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.3317, allocations: 72.81 kB / 1.224 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.68e-05/0.3317, allocations: 4 kB / 1.224 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002631/0.332, allocations: 178.8 kB / 1.225 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.844e-06/0.332, allocations: 4 kB / 1.225 GB, free: 9.484 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0007313/0.3327, allocations: 356.9 kB / 1.225 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.577e-05/0.3328, allocations: 166.2 kB / 1.225 GB, free: 8.918 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001588/0.333, allocations: 179.2 kB / 1.225 GB, free: 8.73 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.763e-05/0.333, allocations: 29.7 kB / 1.225 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.98e-05/0.3331, allocations: 108.4 kB / 1.225 GB, free: 8.582 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.242e-05/0.3331, allocations: 31.69 kB / 1.225 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.233e-05/0.3332, allocations: 41.7 kB / 1.225 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001121/0.3333, allocations: 330.8 kB / 1.226 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.3335, allocations: 51.95 kB / 1.226 GB, free: 8.121 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.3337, allocations: 98.83 kB / 1.226 GB, free: 8 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003455/0.334, allocations: 320.9 kB / 1.226 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.334, allocations: 0 / 1.226 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005441/0.3346, allocations: 348.1 kB / 1.227 GB, free: 7.254 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 7.114e-05/0.3347, allocations: 118.8 kB / 1.227 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.3347, allocations: 256 / 1.227 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.3347, allocations: 8 kB / 1.227 GB, free: 7.105 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.3348, allocations: 15.98 kB / 1.227 GB, free: 7.09 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.3348, allocations: 8.266 kB / 1.227 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001182/0.3349, allocations: 15.94 kB / 1.227 GB, free: 7.066 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.087e-05/0.335, allocations: 11.94 kB / 1.227 GB, free: 7.055 MB / 0.9825 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.0001512/0.3351, allocations: 202 kB / 1.227 GB, free: 6.836 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.101e-05/0.3352, allocations: 15.91 kB / 1.227 GB, free: 6.82 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.03e-05/0.3352, allocations: 17.39 kB / 1.227 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.3352, allocations: 4 kB / 1.227 GB, free: 6.789 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.3353, allocations: 0 / 1.227 GB, free: 6.789 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.3353, allocations: 4 kB / 1.227 GB, free: 6.785 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007115/0.336, allocations: 0.5836 MB / 1.228 GB, free: 6.133 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.336, allocations: 0 / 1.228 GB, free: 6.133 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.042e-05/0.3361, allocations: 8 kB / 1.228 GB, free: 6.125 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.774e-06/0.3361, allocations: 7.984 kB / 1.228 GB, free: 6.117 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.3361, allocations: 4 kB / 1.228 GB, free: 6.113 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.3361, allocations: 4 kB / 1.228 GB, free: 6.109 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3361, allocations: 3.938 kB / 1.228 GB, free: 6.105 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005531/0.3367, allocations: 398.7 kB / 1.228 GB, free: 5.688 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.747e-05/0.3367, allocations: 85.06 kB / 1.228 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.347e-05/0.3368, allocations: 11.98 kB / 1.228 GB, free: 5.574 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001263/0.3369, allocations: 11.98 kB / 1.228 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.631e-05/0.337, allocations: 19.86 kB / 1.228 GB, free: 5.543 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.337, allocations: 11.98 kB / 1.228 GB, free: 5.531 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001108/0.3371, allocations: 128.3 kB / 1.228 GB, free: 5.406 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3371, allocations: 0 / 1.228 GB, free: 5.406 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003139/0.3374, allocations: 43.89 kB / 1.228 GB, free: 5.363 MB / 0.9825 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.000949/0.3384, allocations: 0.9554 MB / 1.229 GB, free: 4.375 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004864/0.3389, allocations: 358 kB / 1.23 GB, free: 3.977 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3389, allocations: 4.188 kB / 1.23 GB, free: 3.973 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002359/0.3391, allocations: 210.7 kB / 1.23 GB, free: 3.742 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003216/0.3395, allocations: 19.94 kB / 1.23 GB, free: 3.723 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002504/0.342, allocations: 2.112 MB / 1.232 GB, free: 1.465 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.3423, allocations: 0.7041 MB / 1.232 GB, free: 0.7344 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.431e-05/0.3423, allocations: 20.53 kB / 1.232 GB, free: 0.7148 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.684e-05/0.3424, allocations: 39.42 kB / 1.233 GB, free: 0.6758 MB / 0.9825 GB Notification: Performance of SimCode: time 6.41e-07/0.3424, allocations: 0 / 1.233 GB, free: 0.6758 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02326/0.3657, allocations: 3.65 MB / 1.236 GB, free: 13.14 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.782/8.147, allocations: 10.25 kB / 1.236 GB, free: 13.13 MB / 0.9981 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches