Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001997/0.001997, 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.002276/0.002276, allocations: 217.9 kB / 22.25 MB, free: 5.121 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.476/1.476, 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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.25/3.25, allocations: 0.505 GB / 0.8101 GB, free: 22.01 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_latest_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.002026/0.002026, allocations: 71.97 kB / 1.177 GB, free: 17.11 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3266/0.3286, allocations: 180.2 MB / 1.353 GB, free: 8.391 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003099/0.3317, allocations: 1.654 MB / 1.354 GB, free: 6.727 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001252/0.3329, allocations: 0.6979 MB / 1.355 GB, free: 6.023 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.501e-05/0.333, allocations: 4 kB / 1.355 GB, free: 6.02 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001699/0.3332, allocations: 23.8 kB / 1.355 GB, free: 5.996 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0002437/0.3334, allocations: 43.75 kB / 1.355 GB, free: 5.953 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004776/0.3339, allocations: 123.7 kB / 1.355 GB, free: 5.832 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002988/0.3342, allocations: 191.5 kB / 1.356 GB, free: 5.645 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.3343, allocations: 21.91 kB / 1.356 GB, free: 5.621 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002192/0.3346, allocations: 95.75 kB / 1.356 GB, free: 5.527 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001736/0.3347, allocations: 91.66 kB / 1.356 GB, free: 5.438 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.75e-05/0.3348, allocations: 12 kB / 1.356 GB, free: 5.426 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.019e-05/0.3349, allocations: 28 kB / 1.356 GB, free: 5.398 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001027/0.335, allocations: 35.89 kB / 1.356 GB, free: 5.363 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001086/0.3351, allocations: 71.66 kB / 1.356 GB, free: 5.293 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003164/0.3354, allocations: 179.3 kB / 1.356 GB, free: 5.117 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3354, allocations: 0 / 1.356 GB, free: 5.117 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3354, allocations: 0 / 1.356 GB, free: 5.117 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.615e-06/0.3354, allocations: 0 / 1.356 GB, free: 5.117 MB / 1.045 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.0007876/0.3362, allocations: 0.4904 MB / 1.357 GB, free: 4.574 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.3362, allocations: 8.031 kB / 1.357 GB, free: 4.566 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.37e-05/0.3363, allocations: 34.75 kB / 1.357 GB, free: 4.523 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001975/0.3365, allocations: 36.77 kB / 1.357 GB, free: 4.488 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003325/0.3368, allocations: 178.4 kB / 1.357 GB, free: 4.289 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.3368, allocations: 8.375 kB / 1.357 GB, free: 4.281 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.474e-05/0.3369, allocations: 20.38 kB / 1.357 GB, free: 4.262 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002841/0.3372, allocations: 117.5 kB / 1.357 GB, free: 4.141 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.3372, allocations: 0 / 1.357 GB, free: 4.141 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.894e-05/0.3372, allocations: 4 kB / 1.357 GB, free: 4.137 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.3372, allocations: 0 / 1.357 GB, free: 4.137 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002011/0.3374, allocations: 75.88 kB / 1.357 GB, free: 4.062 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007302/0.3381, allocations: 391.6 kB / 1.357 GB, free: 3.637 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002099/0.3383, allocations: 82.56 kB / 1.357 GB, free: 3.547 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000154/0.3385, allocations: 64.81 kB / 1.357 GB, free: 3.48 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.3385, allocations: 4 kB / 1.357 GB, free: 3.477 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003067/0.3388, allocations: 178.7 kB / 1.358 GB, free: 3.277 MB / 1.045 GB Notification: Performance of pre-optimization done (n=10): time 1.633e-06/0.3388, allocations: 0 / 1.358 GB, free: 3.277 MB / 1.045 GB Notification: Performance of matching and sorting (n=10): time 0.0007928/0.3396, allocations: 356.9 kB / 1.358 GB, free: 2.91 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001402/0.3398, allocations: 166.2 kB / 1.358 GB, free: 2.711 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001985/0.3399, allocations: 175.6 kB / 1.358 GB, free: 2.527 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.346e-05/0.34, allocations: 33.7 kB / 1.358 GB, free: 2.488 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.927e-05/0.3401, allocations: 112.3 kB / 1.358 GB, free: 2.371 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.395e-05/0.3401, allocations: 27.8 kB / 1.358 GB, free: 2.344 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.238e-05/0.3402, allocations: 45.7 kB / 1.359 GB, free: 2.293 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001734/0.3404, allocations: 330.8 kB / 1.359 GB, free: 1.961 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001415/0.3405, allocations: 55.89 kB / 1.359 GB, free: 1.906 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.3407, allocations: 102.8 kB / 1.359 GB, free: 1.781 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003954/0.3411, allocations: 316.9 kB / 1.359 GB, free: 1.41 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.3411, allocations: 0 / 1.359 GB, free: 1.41 MB / 1.045 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005694/0.3416, allocations: 352.2 kB / 1.36 GB, free: 1.035 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 9.72e-05/0.3417, allocations: 119 kB / 1.36 GB, free: 0.8945 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.3418, allocations: 4 kB / 1.36 GB, free: 0.8906 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.3418, allocations: 0 / 1.36 GB, free: 0.8906 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.3419, allocations: 23.92 kB / 1.36 GB, free: 0.8672 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.3419, allocations: 0 / 1.36 GB, free: 0.8672 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.342, allocations: 20.17 kB / 1.36 GB, free: 0.8477 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.95e-05/0.342, allocations: 8 kB / 1.36 GB, free: 0.8398 MB / 1.045 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.0002013/0.3422, allocations: 209 kB / 1.36 GB, free: 0.6133 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.774e-05/0.3423, allocations: 23.84 kB / 1.36 GB, free: 0.5898 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.634e-05/0.3423, allocations: 13.41 kB / 1.36 GB, free: 0.5703 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.3423, allocations: 4 kB / 1.36 GB, free: 0.5664 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.3423, allocations: 0 / 1.36 GB, free: 0.5664 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.3423, allocations: 3.984 kB / 1.36 GB, free: 0.5625 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007967/0.3431, allocations: 0.5633 MB / 1.361 GB, free: 15.93 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3431, allocations: 0 / 1.361 GB, free: 15.93 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.473e-05/0.3432, allocations: 15.97 kB / 1.361 GB, free: 15.92 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.063e-06/0.3432, allocations: 0 / 1.361 GB, free: 15.92 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.3432, allocations: 8 kB / 1.361 GB, free: 15.91 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.3432, allocations: 160 / 1.361 GB, free: 15.91 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.3432, allocations: 7.922 kB / 1.361 GB, free: 15.9 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005784/0.3438, allocations: 414.6 kB / 1.361 GB, free: 15.47 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.212e-05/0.3438, allocations: 11.91 kB / 1.361 GB, free: 15.46 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.836e-05/0.3438, allocations: 8 kB / 1.361 GB, free: 15.45 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.344, allocations: 8 kB / 1.361 GB, free: 15.44 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.592e-05/0.344, allocations: 11.92 kB / 1.361 GB, free: 15.43 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.991e-05/0.344, allocations: 15.89 kB / 1.361 GB, free: 15.42 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.000116/0.3441, allocations: 124.1 kB / 1.361 GB, free: 15.3 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3441, allocations: 0 / 1.361 GB, free: 15.3 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003115/0.3445, allocations: 39.94 kB / 1.361 GB, free: 15.26 MB / 1.061 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.001096/0.3456, allocations: 0.9651 MB / 1.362 GB, free: 14.26 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005546/0.3461, allocations: 361.6 kB / 1.363 GB, free: 13.86 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3461, allocations: 0 / 1.363 GB, free: 13.86 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002356/0.3463, allocations: 182.8 kB / 1.363 GB, free: 13.66 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003357/0.3467, allocations: 23.94 kB / 1.363 GB, free: 13.63 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002689/0.3494, allocations: 2.119 MB / 1.365 GB, free: 11.37 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003239/0.3497, allocations: 0.708 MB / 1.365 GB, free: 10.63 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 6.886e-05/0.3498, allocations: 24.42 kB / 1.366 GB, free: 10.61 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.679e-05/0.3498, allocations: 39.42 kB / 1.366 GB, free: 10.57 MB / 1.061 GB Notification: Performance of SimCode: time 4.31e-07/0.3498, allocations: 0 / 1.366 GB, free: 10.57 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02901/0.3788, allocations: 3.839 MB / 1.369 GB, free: 6.875 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.57, allocations: 16.5 kB / 1.369 GB, free: 6.859 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv --start-time -1.21 --stop-time 10 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004484 Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv. Warning: Get data of variable cos.y from file Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv failed! Error: Could not read variable step.y in file Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv. Warning: Get data of variable step.y from file Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.385896937000325]