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.0023/0.0023, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.003162/0.003162, allocations: 214.7 kB / 22.25 MB, free: 5.125 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.508/1.508, allocations: 230.6 MB / 256 MB, free: 7.992 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.725/2.725, allocations: 476.7 MB / 0.7707 GB, free: 4.258 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.001986/0.001986, allocations: 69.52 kB / 1.117 GB, free: 39.8 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3138, allocations: 170 MB / 1.283 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003118/0.3169, allocations: 1.658 MB / 1.285 GB, free: 9.91 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001147/0.318, allocations: 0.6952 MB / 1.286 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.886e-05/0.3181, allocations: 4 kB / 1.286 GB, free: 9.207 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001439/0.3182, allocations: 23.8 kB / 1.286 GB, free: 9.184 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.00021/0.3184, allocations: 46.14 kB / 1.286 GB, free: 9.141 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004558/0.3189, allocations: 119.7 kB / 1.286 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002895/0.3192, allocations: 195.6 kB / 1.286 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.3193, allocations: 17.64 kB / 1.286 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002115/0.3195, allocations: 95.67 kB / 1.286 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001513/0.3197, allocations: 83.72 kB / 1.286 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.65e-05/0.3197, allocations: 20 kB / 1.286 GB, free: 8.617 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.596e-05/0.3198, allocations: 32 kB / 1.286 GB, free: 8.586 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.032e-05/0.3199, allocations: 31.89 kB / 1.286 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.32, allocations: 79.66 kB / 1.286 GB, free: 8.477 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002521/0.3202, allocations: 170.9 kB / 1.287 GB, free: 8.312 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.3202, allocations: 4 kB / 1.287 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.212e-06/0.3202, allocations: 0 / 1.287 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.3202, allocations: 0 / 1.287 GB, free: 8.309 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.0006871/0.3209, allocations: 496.4 kB / 1.287 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.321, allocations: 16.03 kB / 1.287 GB, free: 7.754 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.893e-05/0.321, allocations: 34.75 kB / 1.287 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001634/0.3212, allocations: 32.83 kB / 1.287 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003276/0.3215, allocations: 186.9 kB / 1.287 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.3215, allocations: 12.38 kB / 1.287 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.001e-05/0.3216, allocations: 8.375 kB / 1.287 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002843/0.3218, allocations: 121.5 kB / 1.287 GB, free: 7.328 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.3218, allocations: 0 / 1.287 GB, free: 7.328 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.807e-05/0.3219, allocations: 4 kB / 1.287 GB, free: 7.324 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.421e-06/0.3219, allocations: 0 / 1.287 GB, free: 7.324 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001962/0.3221, allocations: 71.88 kB / 1.287 GB, free: 7.254 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007032/0.3228, allocations: 383.7 kB / 1.288 GB, free: 6.836 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002021/0.323, allocations: 90.55 kB / 1.288 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.3231, allocations: 64.81 kB / 1.288 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.751e-05/0.3232, allocations: 3.938 kB / 1.288 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002848/0.3235, allocations: 178.7 kB / 1.288 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.382e-06/0.3235, allocations: 0 / 1.288 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0007742/0.3242, allocations: 368.9 kB / 1.289 GB, free: 6.09 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.3243, allocations: 166.2 kB / 1.289 GB, free: 5.891 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001941/0.3245, allocations: 180.1 kB / 1.289 GB, free: 5.703 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.652e-05/0.3246, allocations: 29.7 kB / 1.289 GB, free: 5.668 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.537e-05/0.3246, allocations: 108.4 kB / 1.289 GB, free: 5.555 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.35e-05/0.3247, allocations: 27.75 kB / 1.289 GB, free: 5.527 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.392e-05/0.3247, allocations: 37.7 kB / 1.289 GB, free: 5.484 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001413/0.3249, allocations: 334.8 kB / 1.289 GB, free: 5.148 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.325, allocations: 51.95 kB / 1.289 GB, free: 5.098 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000168/0.3252, allocations: 102.8 kB / 1.29 GB, free: 4.973 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003614/0.3256, allocations: 316.9 kB / 1.29 GB, free: 4.602 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3256, allocations: 0 / 1.29 GB, free: 4.602 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005699/0.3261, allocations: 352.2 kB / 1.29 GB, free: 4.227 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.000103/0.3262, allocations: 122.8 kB / 1.29 GB, free: 4.082 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.3262, allocations: 0 / 1.29 GB, free: 4.082 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.3263, allocations: 4.25 kB / 1.29 GB, free: 4.078 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.3264, allocations: 23.92 kB / 1.29 GB, free: 4.055 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.3264, allocations: 4 kB / 1.29 GB, free: 4.051 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.3265, allocations: 11.94 kB / 1.29 GB, free: 4.039 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.171e-05/0.3265, allocations: 11.98 kB / 1.29 GB, free: 4.027 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.0001778/0.3267, allocations: 205.1 kB / 1.291 GB, free: 3.805 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.298e-05/0.3267, allocations: 15.91 kB / 1.291 GB, free: 3.789 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.02e-05/0.3267, allocations: 13.41 kB / 1.291 GB, free: 3.766 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3268, allocations: 0 / 1.291 GB, free: 3.766 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.3268, allocations: 4 kB / 1.291 GB, free: 3.762 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3268, allocations: 4 kB / 1.291 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007842/0.3275, allocations: 0.5673 MB / 1.291 GB, free: 3.129 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3275, allocations: 0 / 1.291 GB, free: 3.129 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.376e-05/0.3276, allocations: 11.98 kB / 1.291 GB, free: 3.117 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.3276, allocations: 7.938 kB / 1.291 GB, free: 3.109 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.3276, allocations: 4 kB / 1.291 GB, free: 3.105 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3277, allocations: 160 / 1.291 GB, free: 3.105 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3277, allocations: 7.938 kB / 1.291 GB, free: 3.098 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005703/0.3282, allocations: 414.7 kB / 1.292 GB, free: 2.664 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.893e-05/0.3282, allocations: 7.953 kB / 1.292 GB, free: 2.656 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.442e-05/0.3283, allocations: 4 kB / 1.292 GB, free: 2.652 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.3284, allocations: 8 kB / 1.292 GB, free: 2.645 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.132e-05/0.3284, allocations: 15.92 kB / 1.292 GB, free: 2.629 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.3285, allocations: 11.98 kB / 1.292 GB, free: 2.617 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001079/0.3286, allocations: 129.2 kB / 1.292 GB, free: 2.492 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3286, allocations: 0 / 1.292 GB, free: 2.492 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002936/0.3289, allocations: 39.89 kB / 1.292 GB, free: 2.453 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.001009/0.3299, allocations: 0.9675 MB / 1.293 GB, free: 1.453 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005235/0.3304, allocations: 361.3 kB / 1.293 GB, free: 1.051 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3304, allocations: 0.5 kB / 1.293 GB, free: 1.051 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000227/0.3306, allocations: 178.8 kB / 1.293 GB, free: 0.8516 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.3309, allocations: 35.84 kB / 1.293 GB, free: 0.8164 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002602/0.3335, allocations: 2.123 MB / 1.295 GB, free: 14.55 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.3339, allocations: 0.7117 MB / 1.296 GB, free: 13.81 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 6.861e-05/0.3339, allocations: 20.47 kB / 1.296 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.952e-05/0.334, allocations: 39.42 kB / 1.296 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of SimCode: time 4.3e-07/0.334, allocations: 0 / 1.296 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03101/0.365, allocations: 3.836 MB / 1.3 GB, free: 10.07 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/11.17, allocations: 6.906 kB / 1.3 GB, free: 10.07 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: 17.87875327099937]