Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.002038/0.002038, allocations: 107.3 kB / 16.46 MB, free: 6.508 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.002812/0.002812, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.628/1.628, allocations: 230.6 MB / 252.8 MB, free: 9.121 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.341/3.341, allocations: 0.49 GB / 0.7916 GB, free: 33.4 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_12_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.002215/0.002215, allocations: 68.16 kB / 1.149 GB, free: 26.32 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3746/0.3768, allocations: 176.1 MB / 1.321 GB, free: 3.359 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003409/0.3802, allocations: 1.641 MB / 1.322 GB, free: 1.711 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001279/0.3815, allocations: 0.6895 MB / 1.323 GB, free: 1.016 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.971e-05/0.3816, allocations: 7.938 kB / 1.323 GB, free: 1.008 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001729/0.3817, allocations: 15.86 kB / 1.323 GB, free: 0.9922 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0002411/0.382, allocations: 47.75 kB / 1.323 GB, free: 0.9453 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004916/0.3825, allocations: 131.7 kB / 1.323 GB, free: 0.8164 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002977/0.3828, allocations: 179.6 kB / 1.323 GB, free: 0.6406 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001193/0.3829, allocations: 17.72 kB / 1.323 GB, free: 0.6172 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002198/0.3831, allocations: 91.75 kB / 1.324 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001524/0.3832, allocations: 91.64 kB / 1.324 GB, free: 448 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.528e-05/0.3833, allocations: 12 kB / 1.324 GB, free: 436 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 9.124e-05/0.3834, allocations: 32 kB / 1.324 GB, free: 404 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 9.313e-05/0.3835, allocations: 31.91 kB / 1.324 GB, free: 372 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.3836, allocations: 79.64 kB / 1.324 GB, free: 292 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002978/0.3839, allocations: 175.3 kB / 1.324 GB, free: 116 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.3839, allocations: 0 / 1.324 GB, free: 116 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3839, allocations: 0 / 1.324 GB, free: 116 kB / 1.014 GB Notification: Performance of Transformations before backend: time 1.186e-05/0.3839, allocations: 4 kB / 1.324 GB, free: 112 kB / 1.014 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.0008333/0.3847, allocations: 0.5602 MB / 1.324 GB, free: 15.47 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.3848, allocations: 15.98 kB / 1.325 GB, free: 15.46 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.203e-05/0.3848, allocations: 42.73 kB / 1.325 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001905/0.385, allocations: 28.84 kB / 1.325 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003647/0.3854, allocations: 236.3 kB / 1.325 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.3854, allocations: 8.375 kB / 1.325 GB, free: 15.1 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.656e-05/0.3854, allocations: 16.31 kB / 1.325 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000303/0.3857, allocations: 113.5 kB / 1.325 GB, free: 14.97 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.3857, allocations: 0 / 1.325 GB, free: 14.97 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.3858, allocations: 4 kB / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.772e-06/0.3858, allocations: 7.984 kB / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002136/0.386, allocations: 71.94 kB / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007195/0.3867, allocations: 420.5 kB / 1.325 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000217/0.3869, allocations: 74.53 kB / 1.325 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001629/0.3871, allocations: 72.81 kB / 1.326 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.413e-05/0.3871, allocations: 0 / 1.326 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003097/0.3874, allocations: 190.8 kB / 1.326 GB, free: 14.06 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.3874, allocations: 0 / 1.326 GB, free: 14.06 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.000837/0.3883, allocations: 360.8 kB / 1.326 GB, free: 13.69 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.3884, allocations: 166.2 kB / 1.326 GB, free: 13.49 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00021/0.3886, allocations: 175.5 kB / 1.326 GB, free: 13.3 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.538e-05/0.3886, allocations: 29.7 kB / 1.326 GB, free: 13.27 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.3887, allocations: 116.3 kB / 1.327 GB, free: 13.15 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.358e-05/0.3888, allocations: 27.73 kB / 1.327 GB, free: 13.12 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.564e-05/0.3889, allocations: 45.69 kB / 1.327 GB, free: 13.07 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001729/0.389, allocations: 326.8 kB / 1.327 GB, free: 12.74 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001524/0.3892, allocations: 51.97 kB / 1.327 GB, free: 12.69 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.3894, allocations: 102.8 kB / 1.327 GB, free: 12.57 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004051/0.3898, allocations: 312.9 kB / 1.327 GB, free: 12.2 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3898, allocations: 0 / 1.327 GB, free: 12.2 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006115/0.3904, allocations: 352.1 kB / 1.328 GB, free: 11.82 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001083/0.3905, allocations: 124.8 kB / 1.328 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.3905, allocations: 0 / 1.328 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/0.3905, allocations: 4 kB / 1.328 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.3907, allocations: 15.98 kB / 1.328 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.3907, allocations: 7.938 kB / 1.328 GB, free: 11.65 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.3908, allocations: 20.19 kB / 1.328 GB, free: 11.63 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.534e-05/0.3908, allocations: 12 kB / 1.328 GB, free: 11.62 MB / 1.029 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.0002041/0.391, allocations: 201.7 kB / 1.328 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.762e-05/0.391, allocations: 11.95 kB / 1.328 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.567e-05/0.3911, allocations: 21.39 kB / 1.328 GB, free: 11.37 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.3911, allocations: 4 kB / 1.328 GB, free: 11.36 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3911, allocations: 0 / 1.328 GB, free: 11.36 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.3911, allocations: 0 / 1.328 GB, free: 11.36 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008809/0.392, allocations: 0.5917 MB / 1.329 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/0.392, allocations: 7.922 kB / 1.329 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.8e-05/0.3921, allocations: 8 kB / 1.329 GB, free: 10.69 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.3921, allocations: 0 / 1.329 GB, free: 10.69 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.713e-05/0.3921, allocations: 15.98 kB / 1.329 GB, free: 10.67 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.3921, allocations: 0 / 1.329 GB, free: 10.67 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.3921, allocations: 7.875 kB / 1.329 GB, free: 10.66 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006481/0.3927, allocations: 410.7 kB / 1.329 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.525e-05/0.3928, allocations: 89.02 kB / 1.329 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.45e-05/0.3928, allocations: 4 kB / 1.329 GB, free: 10.12 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001185/0.393, allocations: 11.98 kB / 1.329 GB, free: 10.11 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.31e-05/0.393, allocations: 7.938 kB / 1.329 GB, free: 10.11 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.393, allocations: 11.98 kB / 1.329 GB, free: 10.09 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001243/0.3932, allocations: 133.2 kB / 1.329 GB, free: 9.965 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3932, allocations: 7.938 kB / 1.329 GB, free: 9.957 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003215/0.3935, allocations: 43.92 kB / 1.329 GB, free: 9.914 MB / 1.029 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.001145/0.3946, allocations: 0.956 MB / 1.33 GB, free: 8.926 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005403/0.3952, allocations: 353.5 kB / 1.331 GB, free: 8.531 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3952, allocations: 3.938 kB / 1.331 GB, free: 8.527 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002759/0.3955, allocations: 190.7 kB / 1.331 GB, free: 8.316 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003168/0.3958, allocations: 21.06 kB / 1.331 GB, free: 8.297 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002859/0.3986, allocations: 2.13 MB / 1.333 GB, free: 6.027 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003667/0.399, allocations: 0.708 MB / 1.334 GB, free: 5.293 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.906e-05/0.3991, allocations: 20.53 kB / 1.334 GB, free: 5.273 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.294e-05/0.3991, allocations: 35.42 kB / 1.334 GB, free: 5.238 MB / 1.029 GB Notification: Performance of SimCode: time 2.7e-07/0.3991, allocations: 0 / 1.334 GB, free: 5.238 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02964/0.4288, allocations: 3.671 MB / 1.337 GB, free: 1.668 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.353/8.781, allocations: 16.56 kB / 1.337 GB, free: 1.656 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv. Warning: Get data of variable cos.y from file Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv failed! Error: Could not read variable step.y in file Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv. Warning: Get data of variable step.y from file Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.932736699003726]