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.001331/0.001331, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.001633/0.001633, allocations: 214.1 kB / 22.25 MB, free: 5.242 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.525/1.525, allocations: 230.6 MB / 256 MB, free: 7.805 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.243/3.243, allocations: 0.4892 GB / 0.7943 GB, free: 35.62 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.002025/0.002025, allocations: 68.22 kB / 1.153 GB, free: 25.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.345/0.3471, allocations: 176.1 MB / 1.325 GB, free: 2.41 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.004077/0.3511, allocations: 1.625 MB / 1.327 GB, free: 0.7773 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001465/0.3526, allocations: 0.6584 MB / 1.327 GB, free: 116 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.356e-05/0.3527, allocations: 4 kB / 1.327 GB, free: 112 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001762/0.3529, allocations: 27.78 kB / 1.327 GB, free: 84 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0002481/0.3531, allocations: 47.75 kB / 1.327 GB, free: 36 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004921/0.3536, allocations: 123.7 kB / 1.327 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002902/0.3539, allocations: 187.6 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000124/0.354, allocations: 13.91 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002298/0.3542, allocations: 91.75 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.3544, allocations: 79.72 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.886e-05/0.3544, allocations: 12 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.742e-05/0.3545, allocations: 39.98 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.432e-05/0.3546, allocations: 35.84 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.3547, allocations: 67.77 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002677/0.355, allocations: 171.3 kB / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 1.486e-05/0.355, allocations: 4 kB / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of FrontEnd: time 3.547e-06/0.355, allocations: 4 kB / 1.328 GB, free: 15.21 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.045e-05/0.355, allocations: 0 / 1.328 GB, free: 15.21 MB / 1.029 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.0007737/0.3558, allocations: 492.4 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.3558, allocations: 12.03 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.207e-05/0.3559, allocations: 34.69 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001966/0.3561, allocations: 40.83 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000372/0.3564, allocations: 175 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.302e-05/0.3565, allocations: 12.38 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.264e-05/0.3565, allocations: 8.375 kB / 1.329 GB, free: 14.37 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003496/0.3569, allocations: 184.9 kB / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.3569, allocations: 0 / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.3569, allocations: 3.938 kB / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.3569, allocations: 11.94 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002508/0.3571, allocations: 127.3 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007057/0.3578, allocations: 367.6 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000263/0.3581, allocations: 133.9 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002062/0.3583, allocations: 124.2 kB / 1.33 GB, free: 13.33 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/0.3583, allocations: 7.984 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003275/0.3587, allocations: 234.3 kB / 1.33 GB, free: 13.05 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.3587, allocations: 96 / 1.33 GB, free: 13.05 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0008698/0.3595, allocations: 483.6 kB / 1.33 GB, free: 12.54 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/0.3597, allocations: 162.2 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002057/0.3599, allocations: 179.6 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.231e-05/0.3599, allocations: 33.64 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.881e-05/0.36, allocations: 108.4 kB / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.816e-05/0.36, allocations: 31.73 kB / 1.331 GB, free: 11.97 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.511e-05/0.3601, allocations: 45.69 kB / 1.331 GB, free: 11.92 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001718/0.3603, allocations: 330.8 kB / 1.331 GB, free: 11.59 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002178/0.3605, allocations: 162.8 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002586/0.3608, allocations: 217.6 kB / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003925/0.3612, allocations: 312.9 kB / 1.332 GB, free: 10.78 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3612, allocations: 0 / 1.332 GB, free: 10.78 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006635/0.3618, allocations: 459 kB / 1.332 GB, free: 10.27 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.439e-05/0.3619, allocations: 123 kB / 1.333 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.3619, allocations: 4 kB / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.3619, allocations: 0 / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.3621, allocations: 19.92 kB / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.3621, allocations: 4 kB / 1.333 GB, free: 10.1 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.3622, allocations: 15.94 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.262e-05/0.3622, allocations: 11.98 kB / 1.333 GB, free: 10.07 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.0001884/0.3624, allocations: 202.1 kB / 1.333 GB, free: 9.855 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.499e-05/0.3624, allocations: 19.84 kB / 1.333 GB, free: 9.836 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.314e-05/0.3625, allocations: 21.67 kB / 1.333 GB, free: 9.809 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.3625, allocations: 7.984 kB / 1.333 GB, free: 9.801 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3625, allocations: 0 / 1.333 GB, free: 9.801 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.3625, allocations: 3.938 kB / 1.333 GB, free: 9.797 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008224/0.3633, allocations: 0.6017 MB / 1.333 GB, free: 9.121 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3633, allocations: 0 / 1.333 GB, free: 9.121 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.531e-05/0.3634, allocations: 12 kB / 1.333 GB, free: 9.109 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.3634, allocations: 3.984 kB / 1.333 GB, free: 9.105 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.3634, allocations: 12 kB / 1.333 GB, free: 9.094 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3634, allocations: 4 kB / 1.333 GB, free: 9.09 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3634, allocations: 3.938 kB / 1.333 GB, free: 9.086 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006423/0.364, allocations: 470.1 kB / 1.334 GB, free: 8.586 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.989e-05/0.3641, allocations: 11.91 kB / 1.334 GB, free: 8.574 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.46e-05/0.3641, allocations: 4 kB / 1.334 GB, free: 8.57 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.3642, allocations: 7.984 kB / 1.334 GB, free: 8.562 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.868e-05/0.3643, allocations: 11.94 kB / 1.334 GB, free: 8.551 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.145e-05/0.3643, allocations: 11.98 kB / 1.334 GB, free: 8.539 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001239/0.3644, allocations: 132.1 kB / 1.334 GB, free: 8.41 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3644, allocations: 4 kB / 1.334 GB, free: 8.406 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002969/0.3647, allocations: 35.94 kB / 1.334 GB, free: 8.371 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.001142/0.3658, allocations: 1.019 MB / 1.335 GB, free: 7.309 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006709/0.3665, allocations: 0.5269 MB / 1.336 GB, free: 6.695 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3665, allocations: 0 / 1.336 GB, free: 6.695 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002816/0.3668, allocations: 242.1 kB / 1.336 GB, free: 6.422 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003103/0.3671, allocations: 19.94 kB / 1.336 GB, free: 6.402 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003028/0.3701, allocations: 2.617 MB / 1.338 GB, free: 3.527 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001072/0.3702, allocations: 97.17 kB / 1.339 GB, free: 3.41 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.726e-05/0.3703, allocations: 24.47 kB / 1.339 GB, free: 3.387 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.532e-05/0.3704, allocations: 35.42 kB / 1.339 GB, free: 3.352 MB / 1.029 GB Notification: Performance of SimCode: time 4.01e-07/0.3704, allocations: 0 / 1.339 GB, free: 3.352 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03434/0.4047, allocations: 4.329 MB / 1.343 GB, free: 15.19 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.27, allocations: 18.67 kB / 1.343 GB, free: 15.18 MB / 1.045 GB " [Timeout remaining time 288] (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: 19.14995558699593]