Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_11_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.005057/0.005057, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001437/0.001437, allocations: 194.2 kB / 16.67 MB, free: 5.977 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.488/1.488, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.924/2.924, allocations: 469.8 MB / 0.7425 GB, free: 7.293 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 63.91 kB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3205, allocations: 159.1 MB / 1.22 GB, free: 14.26 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003028/0.3236, allocations: 1.62 MB / 1.222 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001034/0.3246, allocations: 0.6078 MB / 1.222 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.314e-05/0.3247, allocations: 7.938 kB / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001562/0.3249, allocations: 15.88 kB / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.000222/0.3251, allocations: 47.75 kB / 1.222 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003926/0.3255, allocations: 111.7 kB / 1.223 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002888/0.3258, allocations: 199.5 kB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.3259, allocations: 25.11 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002314/0.3262, allocations: 83.81 kB / 1.223 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001439/0.3263, allocations: 87.66 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.287e-05/0.3264, allocations: 12 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.9e-05/0.3265, allocations: 28 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.216e-05/0.3266, allocations: 35.91 kB / 1.223 GB, free: 11.37 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000171/0.3267, allocations: 71.66 kB / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.00026/0.327, allocations: 163.4 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.327, allocations: 0 / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.583e-06/0.327, allocations: 0 / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.464e-05/0.3271, allocations: 3.984 kB / 1.223 GB, free: 11.14 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.0007883/0.3278, allocations: 0.5639 MB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.3279, allocations: 8.031 kB / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.145e-05/0.3279, allocations: 38.73 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.612e-05/0.328, allocations: 24.84 kB / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003469/0.3284, allocations: 245.2 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.3284, allocations: 4.375 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.94e-05/0.3284, allocations: 16.38 kB / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00029/0.3287, allocations: 113.5 kB / 1.224 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.3287, allocations: 0 / 1.224 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/0.3288, allocations: 4 kB / 1.224 GB, free: 10 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.3288, allocations: 8 kB / 1.224 GB, free: 9.996 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002588/0.329, allocations: 67.88 kB / 1.224 GB, free: 9.93 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006786/0.3297, allocations: 416.5 kB / 1.225 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002023/0.3299, allocations: 86.56 kB / 1.225 GB, free: 9.379 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001702/0.3301, allocations: 88.73 kB / 1.225 GB, free: 9.289 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.62e-05/0.3302, allocations: 8.141 kB / 1.225 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003316/0.3305, allocations: 170.7 kB / 1.225 GB, free: 9.09 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.3305, allocations: 0 / 1.225 GB, free: 9.09 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0007792/0.3313, allocations: 352.8 kB / 1.225 GB, free: 8.727 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.3314, allocations: 170.2 kB / 1.225 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001954/0.3316, allocations: 175.2 kB / 1.226 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0001423/0.3318, allocations: 33.7 kB / 1.226 GB, free: 8.301 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.494e-05/0.3319, allocations: 108.4 kB / 1.226 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.612e-05/0.3319, allocations: 31.73 kB / 1.226 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.763e-05/0.332, allocations: 37.7 kB / 1.226 GB, free: 8.113 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002707/0.3323, allocations: 338.7 kB / 1.226 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001445/0.3324, allocations: 51.97 kB / 1.226 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002228/0.3327, allocations: 102.8 kB / 1.226 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003897/0.3331, allocations: 313 kB / 1.227 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3331, allocations: 0 / 1.227 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0007237/0.3338, allocations: 352.1 kB / 1.227 GB, free: 6.855 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 8.899e-05/0.3339, allocations: 122.8 kB / 1.227 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.3339, allocations: 0 / 1.227 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.3339, allocations: 4 kB / 1.227 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.3341, allocations: 19.92 kB / 1.227 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.3341, allocations: 4.25 kB / 1.227 GB, free: 6.684 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.3342, allocations: 19.94 kB / 1.227 GB, free: 6.664 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.3342, allocations: 8 kB / 1.227 GB, free: 6.656 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.0001811/0.3344, allocations: 197.2 kB / 1.227 GB, free: 6.441 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.703e-05/0.3344, allocations: 19.91 kB / 1.227 GB, free: 6.422 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.353e-05/0.3345, allocations: 13.41 kB / 1.227 GB, free: 6.398 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.3345, allocations: 0 / 1.227 GB, free: 6.398 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3345, allocations: 0 / 1.227 GB, free: 6.398 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.3345, allocations: 4 kB / 1.227 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008212/0.3353, allocations: 0.5917 MB / 1.228 GB, free: 5.734 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.3353, allocations: 0 / 1.228 GB, free: 5.734 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.795e-05/0.3354, allocations: 15.92 kB / 1.228 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.3354, allocations: 0 / 1.228 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.408e-05/0.3355, allocations: 8 kB / 1.228 GB, free: 5.711 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.3355, allocations: 0 / 1.228 GB, free: 5.711 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/0.3355, allocations: 3.938 kB / 1.228 GB, free: 5.707 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006387/0.3361, allocations: 410.7 kB / 1.228 GB, free: 5.277 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.722e-05/0.3362, allocations: 85.06 kB / 1.228 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.792e-05/0.3362, allocations: 8 kB / 1.228 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.3364, allocations: 8 kB / 1.228 GB, free: 5.16 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.262e-05/0.3364, allocations: 7.922 kB / 1.228 GB, free: 5.152 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.138e-05/0.3364, allocations: 12 kB / 1.228 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001188/0.3366, allocations: 132.2 kB / 1.229 GB, free: 5.012 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3366, allocations: 4 kB / 1.229 GB, free: 5.008 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003045/0.3369, allocations: 43.89 kB / 1.229 GB, free: 4.965 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.001076/0.338, allocations: 0.9458 MB / 1.23 GB, free: 3.984 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005467/0.3385, allocations: 357.4 kB / 1.23 GB, free: 3.586 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3385, allocations: 0 / 1.23 GB, free: 3.586 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002801/0.3388, allocations: 214.7 kB / 1.23 GB, free: 3.352 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003256/0.3392, allocations: 36.5 kB / 1.23 GB, free: 3.32 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00281/0.342, allocations: 2.104 MB / 1.232 GB, free: 1.07 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000375/0.3424, allocations: 0.7119 MB / 1.233 GB, free: 340 kB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.37e-05/0.3425, allocations: 20.53 kB / 1.233 GB, free: 320 kB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.119e-05/0.3425, allocations: 35.42 kB / 1.233 GB, free: 284 kB / 0.9825 GB Notification: Performance of SimCode: time 3.61e-07/0.3425, allocations: 0 / 1.233 GB, free: 284 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02608/0.3686, allocations: 3.645 MB / 1.237 GB, free: 12.74 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.496/8.865, allocations: 11.91 kB / 1.237 GB, free: 12.73 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches