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.001828/0.001828, allocations: 99.64 kB / 18.95 MB, free: 2.676 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.002475/0.002475, allocations: 216.3 kB / 22.25 MB, free: 5.258 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.498/1.498, allocations: 230.6 MB / 256 MB, free: 7.801 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.821/2.821, allocations: 476 MB / 0.7699 GB, free: 4.773 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.002127/0.002127, allocations: 69.5 kB / 1.117 GB, free: 9.188 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3602/0.3623, allocations: 169.9 MB / 1.283 GB, free: 4.234 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003529/0.3658, allocations: 1.626 MB / 1.284 GB, free: 2.594 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001327/0.3672, allocations: 0.656 MB / 1.285 GB, free: 1.934 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.48e-05/0.3673, allocations: 3.938 kB / 1.285 GB, free: 1.93 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001659/0.3674, allocations: 15.86 kB / 1.285 GB, free: 1.914 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002427/0.3677, allocations: 47.75 kB / 1.285 GB, free: 1.867 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005611/0.3682, allocations: 123.7 kB / 1.285 GB, free: 1.746 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003138/0.3685, allocations: 187.6 kB / 1.285 GB, free: 1.562 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.3687, allocations: 13.91 kB / 1.285 GB, free: 1.547 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002626/0.3689, allocations: 95.75 kB / 1.285 GB, free: 1.453 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001592/0.3691, allocations: 83.66 kB / 1.285 GB, free: 1.371 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.119e-05/0.3691, allocations: 12 kB / 1.285 GB, free: 1.359 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.3692, allocations: 35.98 kB / 1.285 GB, free: 1.324 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.736e-05/0.3693, allocations: 31.91 kB / 1.285 GB, free: 1.293 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.3694, allocations: 67.7 kB / 1.285 GB, free: 1.227 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003052/0.3697, allocations: 179.3 kB / 1.286 GB, free: 1.051 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.3697, allocations: 0 / 1.286 GB, free: 1.051 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3697, allocations: 0 / 1.286 GB, free: 1.051 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.205e-06/0.3697, allocations: 0 / 1.286 GB, free: 1.051 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.0007842/0.3705, allocations: 496.4 kB / 1.286 GB, free: 0.5117 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.3706, allocations: 12.03 kB / 1.286 GB, free: 0.5 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.955e-05/0.3706, allocations: 42.73 kB / 1.286 GB, free: 460 kB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001847/0.3708, allocations: 28.84 kB / 1.286 GB, free: 432 kB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003559/0.3712, allocations: 174.5 kB / 1.286 GB, free: 232 kB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.669e-05/0.3712, allocations: 8.312 kB / 1.286 GB, free: 224 kB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.877e-05/0.3712, allocations: 12.38 kB / 1.286 GB, free: 212 kB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003515/0.3716, allocations: 188.9 kB / 1.287 GB, free: 4 kB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.3716, allocations: 0 / 1.287 GB, free: 4 kB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.658e-05/0.3716, allocations: 4.109 kB / 1.287 GB, free: 16 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.3716, allocations: 7.938 kB / 1.287 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002503/0.3718, allocations: 123.3 kB / 1.287 GB, free: 15.86 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007101/0.3725, allocations: 363.7 kB / 1.287 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002548/0.3728, allocations: 137.9 kB / 1.287 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000207/0.373, allocations: 128.2 kB / 1.287 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.612e-05/0.373, allocations: 4 kB / 1.287 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000337/0.3734, allocations: 246.3 kB / 1.288 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=10): time 1.733e-06/0.3734, allocations: 0 / 1.288 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10): time 0.0008667/0.3742, allocations: 479.6 kB / 1.288 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001249/0.3744, allocations: 166.2 kB / 1.288 GB, free: 14.17 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001914/0.3746, allocations: 171.6 kB / 1.288 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.333e-05/0.3746, allocations: 37.69 kB / 1.288 GB, free: 13.95 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.585e-05/0.3747, allocations: 108.4 kB / 1.288 GB, free: 13.83 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.762e-05/0.3747, allocations: 31.73 kB / 1.288 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.45e-05/0.3748, allocations: 37.7 kB / 1.289 GB, free: 13.76 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001626/0.375, allocations: 330.8 kB / 1.289 GB, free: 13.43 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002312/0.3752, allocations: 158.8 kB / 1.289 GB, free: 13.25 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000264/0.3755, allocations: 224 kB / 1.289 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004052/0.3759, allocations: 316.9 kB / 1.289 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.3759, allocations: 0 / 1.289 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000658/0.3765, allocations: 463.1 kB / 1.29 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.179e-05/0.3766, allocations: 118.8 kB / 1.29 GB, free: 11.96 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.3766, allocations: 0 / 1.29 GB, free: 11.96 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.3766, allocations: 4 kB / 1.29 GB, free: 11.96 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.3767, allocations: 15.98 kB / 1.29 GB, free: 11.94 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.3768, allocations: 11.88 kB / 1.29 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.3769, allocations: 11.98 kB / 1.29 GB, free: 11.92 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.091e-05/0.3769, allocations: 12 kB / 1.29 GB, free: 11.91 MB / 0.9981 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.0001847/0.3771, allocations: 199.7 kB / 1.29 GB, free: 11.69 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.361e-05/0.3771, allocations: 19.91 kB / 1.29 GB, free: 11.67 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.541e-05/0.3772, allocations: 17.67 kB / 1.29 GB, free: 11.65 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.3772, allocations: 7.984 kB / 1.29 GB, free: 11.64 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.3772, allocations: 0 / 1.29 GB, free: 11.64 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3772, allocations: 3.938 kB / 1.29 GB, free: 11.64 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008397/0.378, allocations: 0.6056 MB / 1.291 GB, free: 10.96 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.378, allocations: 0 / 1.291 GB, free: 10.96 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.835e-05/0.3781, allocations: 11.98 kB / 1.291 GB, free: 10.95 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.471e-06/0.3781, allocations: 4 kB / 1.291 GB, free: 10.94 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.3781, allocations: 8 kB / 1.291 GB, free: 10.93 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.3781, allocations: 0 / 1.291 GB, free: 10.93 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.3781, allocations: 7.875 kB / 1.291 GB, free: 10.93 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006555/0.3788, allocations: 466.1 kB / 1.291 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.742e-05/0.3788, allocations: 7.953 kB / 1.291 GB, free: 10.42 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.899e-05/0.3788, allocations: 8 kB / 1.291 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.379, allocations: 7.984 kB / 1.291 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.21e-05/0.379, allocations: 11.92 kB / 1.291 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-05/0.379, allocations: 12 kB / 1.291 GB, free: 10.38 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001299/0.3792, allocations: 133.8 kB / 1.292 GB, free: 10.25 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.3792, allocations: 0 / 1.292 GB, free: 10.25 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003107/0.3795, allocations: 47.77 kB / 1.292 GB, free: 10.21 MB / 0.9981 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.00117/0.3806, allocations: 1.022 MB / 1.293 GB, free: 9.145 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0006521/0.3813, allocations: 0.5113 MB / 1.293 GB, free: 8.547 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3813, allocations: 0 / 1.293 GB, free: 8.547 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002896/0.3816, allocations: 250.4 kB / 1.293 GB, free: 8.266 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003155/0.3819, allocations: 15.94 kB / 1.293 GB, free: 8.25 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003195/0.3851, allocations: 2.625 MB / 1.296 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001096/0.3852, allocations: 97.05 kB / 1.296 GB, free: 5.258 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.399e-05/0.3853, allocations: 24.47 kB / 1.296 GB, free: 5.234 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.192e-05/0.3854, allocations: 35.42 kB / 1.296 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of SimCode: time 3.9e-07/0.3854, allocations: 0 / 1.296 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03388/0.4192, allocations: 4.341 MB / 1.3 GB, free: 1.035 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.96, allocations: 8.156 kB / 1.3 GB, free: 1.031 MB / 0.9981 GB " [Timeout remaining time 288] (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: 18.715941406786442]