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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 106.2 kB / 16.45 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002567/0.002567, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.493/1.493, allocations: 230.6 MB / 252.8 MB, free: 8.945 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.787/2.787, allocations: 476.7 MB / 0.7672 GB, free: 5.223 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002281/0.002281, allocations: 59.91 kB / 1.112 GB, free: 1.551 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8087/0.811, allocations: 169.9 MB / 1.278 GB, free: 13.45 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003791/0.8148, allocations: 1.661 MB / 1.28 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001298/0.8161, allocations: 0.6834 MB / 1.281 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.8162, allocations: 0 / 1.281 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001717/0.8163, allocations: 27.8 kB / 1.281 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002568/0.8166, allocations: 43.77 kB / 1.281 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005483/0.8171, allocations: 123.7 kB / 1.281 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003175/0.8175, allocations: 191.6 kB / 1.281 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.8176, allocations: 17.44 kB / 1.281 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002476/0.8178, allocations: 87.75 kB / 1.281 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001785/0.818, allocations: 87.66 kB / 1.281 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.567e-05/0.8181, allocations: 16 kB / 1.281 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.777e-05/0.8182, allocations: 31.98 kB / 1.281 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.947e-05/0.8182, allocations: 35.91 kB / 1.281 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000105/0.8184, allocations: 75.66 kB / 1.281 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003086/0.8187, allocations: 173.2 kB / 1.281 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.8187, allocations: 0 / 1.281 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.242e-06/0.8187, allocations: 7.875 kB / 1.281 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.254e-05/0.8187, allocations: 0 / 1.281 GB, free: 10.18 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.0008211/0.8195, allocations: 0.5639 MB / 1.282 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.8195, allocations: 8.031 kB / 1.282 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.936e-05/0.8196, allocations: 38.73 kB / 1.282 GB, free: 9.492 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001962/0.8198, allocations: 28.84 kB / 1.282 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004217/0.8202, allocations: 252.7 kB / 1.282 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.878e-05/0.8202, allocations: 4.375 kB / 1.282 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.668e-05/0.8203, allocations: 16.38 kB / 1.282 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003085/0.8206, allocations: 117.5 kB / 1.282 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.8206, allocations: 0 / 1.282 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.526e-05/0.8206, allocations: 0 / 1.282 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.8206, allocations: 8 kB / 1.282 GB, free: 9.031 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002176/0.8208, allocations: 67.94 kB / 1.282 GB, free: 8.965 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007014/0.8215, allocations: 412.6 kB / 1.283 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002286/0.8217, allocations: 78.53 kB / 1.283 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.8219, allocations: 72.81 kB / 1.283 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.8219, allocations: 0 / 1.283 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002973/0.8222, allocations: 182.7 kB / 1.283 GB, free: 8.148 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.733e-06/0.8222, allocations: 0 / 1.283 GB, free: 8.148 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0008169/0.8231, allocations: 357 kB / 1.284 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/0.8232, allocations: 170.1 kB / 1.284 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/0.8234, allocations: 187.9 kB / 1.284 GB, free: 7.383 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.869e-05/0.8234, allocations: 29.7 kB / 1.284 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.432e-05/0.8235, allocations: 108.4 kB / 1.284 GB, free: 7.234 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.35e-05/0.8235, allocations: 28.09 kB / 1.284 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.94e-05/0.8236, allocations: 37.7 kB / 1.284 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001583/0.8238, allocations: 330.8 kB / 1.284 GB, free: 6.832 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001519/0.8239, allocations: 55.91 kB / 1.284 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000189/0.8241, allocations: 104.8 kB / 1.285 GB, free: 6.652 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003921/0.8245, allocations: 312.9 kB / 1.285 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.8245, allocations: 3.938 kB / 1.285 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006066/0.8251, allocations: 352.1 kB / 1.285 GB, free: 5.906 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.757e-05/0.8252, allocations: 121.6 kB / 1.285 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.8252, allocations: 4 kB / 1.285 GB, free: 5.762 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.8252, allocations: 4 kB / 1.285 GB, free: 5.758 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.8253, allocations: 15.98 kB / 1.285 GB, free: 5.742 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.8254, allocations: 256 / 1.285 GB, free: 5.742 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001116/0.8255, allocations: 23.94 kB / 1.285 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.791e-05/0.8255, allocations: 15.97 kB / 1.285 GB, free: 5.703 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.0001936/0.8257, allocations: 195.8 kB / 1.286 GB, free: 5.492 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.265e-05/0.8257, allocations: 19.91 kB / 1.286 GB, free: 5.473 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.79e-05/0.8258, allocations: 17.41 kB / 1.286 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.8258, allocations: 0 / 1.286 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.8258, allocations: 4 kB / 1.286 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.8258, allocations: 3.984 kB / 1.286 GB, free: 5.434 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008493/0.8266, allocations: 0.5953 MB / 1.286 GB, free: 4.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.8266, allocations: 3.984 kB / 1.286 GB, free: 4.766 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.255e-05/0.8267, allocations: 11.98 kB / 1.286 GB, free: 4.754 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.8267, allocations: 0 / 1.286 GB, free: 4.754 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.8267, allocations: 11.98 kB / 1.286 GB, free: 4.742 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.8267, allocations: 4 kB / 1.286 GB, free: 4.738 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.8268, allocations: 3.938 kB / 1.286 GB, free: 4.734 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006327/0.8274, allocations: 406.7 kB / 1.287 GB, free: 4.309 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.979e-05/0.8274, allocations: 85.06 kB / 1.287 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.6e-05/0.8275, allocations: 7.938 kB / 1.287 GB, free: 4.199 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.8276, allocations: 7.984 kB / 1.287 GB, free: 4.191 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.905e-05/0.8276, allocations: 11.94 kB / 1.287 GB, free: 4.18 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.271e-05/0.8277, allocations: 15.92 kB / 1.287 GB, free: 4.164 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001206/0.8278, allocations: 129.2 kB / 1.287 GB, free: 4.039 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.8278, allocations: 4 kB / 1.287 GB, free: 4.035 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003199/0.8281, allocations: 35.95 kB / 1.287 GB, free: 4 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.00111/0.8292, allocations: 0.9662 MB / 1.288 GB, free: 3 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005728/0.8298, allocations: 357.7 kB / 1.288 GB, free: 2.602 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.8298, allocations: 0 / 1.288 GB, free: 2.602 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002582/0.8301, allocations: 183.2 kB / 1.288 GB, free: 2.398 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003214/0.8304, allocations: 27.92 kB / 1.288 GB, free: 2.371 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002998/0.8334, allocations: 2.125 MB / 1.29 GB, free: 104 kB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003955/0.8338, allocations: 0.7117 MB / 1.291 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.73e-05/0.8338, allocations: 20.48 kB / 1.291 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.548e-05/0.8339, allocations: 39.42 kB / 1.291 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of SimCode: time 3.5e-07/0.8339, allocations: 0 / 1.291 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02956/0.8635, allocations: 3.676 MB / 1.295 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.348/9.211, allocations: 8.766 kB / 1.295 GB, free: 11.73 MB / 0.9981 GB " [Timeout remaining time 291] (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 400 --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) [Timeout 420.0] 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) [Timeout 300] "Error: Could not read variable cos.y in file Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv. Warning: Get data of variable cos.y from file Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv failed! Error: Could not read variable step.y in file Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv. Warning: Get data of variable step.y from file Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.353539680829272]