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.001881/0.001881, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002338/0.002338, allocations: 211.9 kB / 22.24 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.552/1.552, allocations: 230.6 MB / 256 MB, free: 7.785 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.37/3.37, allocations: 0.5107 GB / 0.8158 GB, free: 17.8 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.002108/0.002108, allocations: 69.69 kB / 1.186 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3532/0.3553, allocations: 181.9 MB / 1.363 GB, free: 14.07 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003321/0.3586, allocations: 1.63 MB / 1.365 GB, free: 12.43 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001245/0.3599, allocations: 0.6518 MB / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.869e-05/0.3599, allocations: 4 kB / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001592/0.3601, allocations: 19.8 kB / 1.366 GB, free: 11.75 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0002363/0.3603, allocations: 43.77 kB / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004554/0.3608, allocations: 123.7 kB / 1.366 GB, free: 11.58 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002705/0.3611, allocations: 187.6 kB / 1.366 GB, free: 11.4 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.3612, allocations: 21.91 kB / 1.366 GB, free: 11.37 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002063/0.3614, allocations: 99.67 kB / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001387/0.3615, allocations: 75.72 kB / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.92e-05/0.3616, allocations: 16 kB / 1.366 GB, free: 11.18 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 9.633e-05/0.3617, allocations: 32 kB / 1.366 GB, free: 11.15 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 8.095e-05/0.3618, allocations: 23.92 kB / 1.366 GB, free: 11.13 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 9.087e-05/0.3618, allocations: 67.7 kB / 1.366 GB, free: 11.06 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002665/0.3621, allocations: 183.2 kB / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3621, allocations: 4 kB / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3621, allocations: 0 / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.099e-06/0.3621, allocations: 0 / 1.366 GB, free: 10.88 MB / 1.061 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.000726/0.3628, allocations: 0.4886 MB / 1.367 GB, free: 10.34 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.3629, allocations: 12.03 kB / 1.367 GB, free: 10.32 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.111e-05/0.3629, allocations: 38.75 kB / 1.367 GB, free: 10.28 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001776/0.3631, allocations: 24.88 kB / 1.367 GB, free: 10.25 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003583/0.3635, allocations: 178.5 kB / 1.367 GB, free: 10.05 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.3635, allocations: 12.38 kB / 1.367 GB, free: 10.04 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.219e-05/0.3635, allocations: 16.38 kB / 1.367 GB, free: 10.03 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003238/0.3638, allocations: 172.9 kB / 1.367 GB, free: 9.84 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.3639, allocations: 0 / 1.367 GB, free: 9.84 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.058e-05/0.3639, allocations: 4 kB / 1.367 GB, free: 9.836 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.3639, allocations: 0 / 1.367 GB, free: 9.836 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002485/0.3641, allocations: 123.3 kB / 1.368 GB, free: 9.703 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008177/0.3649, allocations: 379.6 kB / 1.368 GB, free: 9.289 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002657/0.3652, allocations: 137.9 kB / 1.368 GB, free: 9.133 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000211/0.3654, allocations: 124.2 kB / 1.368 GB, free: 8.996 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.109e-05/0.3655, allocations: 0 / 1.368 GB, free: 8.996 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004052/0.3659, allocations: 242.2 kB / 1.368 GB, free: 8.723 MB / 1.061 GB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.3659, allocations: 0 / 1.368 GB, free: 8.723 MB / 1.061 GB Notification: Performance of matching and sorting (n=10): time 0.001039/0.3669, allocations: 479.6 kB / 1.369 GB, free: 8.211 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002109/0.3671, allocations: 170.1 kB / 1.369 GB, free: 8.008 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000251/0.3674, allocations: 175.6 kB / 1.369 GB, free: 7.824 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.921e-05/0.3674, allocations: 33.7 kB / 1.369 GB, free: 7.785 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.3675, allocations: 116.5 kB / 1.369 GB, free: 7.664 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.059e-05/0.3676, allocations: 23.8 kB / 1.369 GB, free: 7.641 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.642e-05/0.3677, allocations: 45.7 kB / 1.369 GB, free: 7.59 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0002385/0.3679, allocations: 331 kB / 1.37 GB, free: 7.258 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002556/0.3682, allocations: 162.8 kB / 1.37 GB, free: 7.074 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002921/0.3684, allocations: 217.6 kB / 1.37 GB, free: 6.812 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004479/0.3689, allocations: 312.8 kB / 1.37 GB, free: 6.445 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3689, allocations: 0 / 1.37 GB, free: 6.445 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0007077/0.3696, allocations: 466.9 kB / 1.371 GB, free: 5.934 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001155/0.3697, allocations: 114.8 kB / 1.371 GB, free: 5.797 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.3697, allocations: 7.984 kB / 1.371 GB, free: 5.789 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.3697, allocations: 4 kB / 1.371 GB, free: 5.785 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.3699, allocations: 12 kB / 1.371 GB, free: 5.773 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.3699, allocations: 4.234 kB / 1.371 GB, free: 5.77 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.37, allocations: 23.89 kB / 1.371 GB, free: 5.746 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.322e-05/0.37, allocations: 12 kB / 1.371 GB, free: 5.734 MB / 1.061 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.0002146/0.3702, allocations: 197.1 kB / 1.371 GB, free: 5.52 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.901e-05/0.3703, allocations: 19.91 kB / 1.371 GB, free: 5.5 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.716e-05/0.3703, allocations: 17.41 kB / 1.371 GB, free: 5.477 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3703, allocations: 0 / 1.371 GB, free: 5.477 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.3703, allocations: 0 / 1.371 GB, free: 5.477 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.3703, allocations: 3.984 kB / 1.371 GB, free: 5.473 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008399/0.3712, allocations: 0.6018 MB / 1.372 GB, free: 4.797 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.3712, allocations: 4 kB / 1.372 GB, free: 4.793 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.22e-05/0.3712, allocations: 15.98 kB / 1.372 GB, free: 4.777 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.3712, allocations: 0 / 1.372 GB, free: 4.777 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.205e-05/0.3713, allocations: 7.984 kB / 1.372 GB, free: 4.77 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3713, allocations: 3.938 kB / 1.372 GB, free: 4.766 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.3713, allocations: 3.938 kB / 1.372 GB, free: 4.762 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006263/0.3719, allocations: 470.1 kB / 1.372 GB, free: 4.262 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.244e-05/0.3719, allocations: 11.91 kB / 1.372 GB, free: 4.25 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.64e-05/0.3719, allocations: 12 kB / 1.372 GB, free: 4.238 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.3721, allocations: 8 kB / 1.372 GB, free: 4.23 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.999e-05/0.3721, allocations: 11.92 kB / 1.372 GB, free: 4.219 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.11e-05/0.3721, allocations: 11.98 kB / 1.372 GB, free: 4.207 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001337/0.3723, allocations: 125.2 kB / 1.372 GB, free: 4.086 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3723, allocations: 3.938 kB / 1.372 GB, free: 4.082 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000311/0.3726, allocations: 39.94 kB / 1.372 GB, free: 4.043 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.001258/0.3738, allocations: 1.016 MB / 1.373 GB, free: 2.98 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0007459/0.3746, allocations: 0.523 MB / 1.374 GB, free: 2.371 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.3746, allocations: 0 / 1.374 GB, free: 2.371 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003008/0.3749, allocations: 246.6 kB / 1.374 GB, free: 2.094 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003293/0.3752, allocations: 31.86 kB / 1.374 GB, free: 2.062 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003155/0.3784, allocations: 2.611 MB / 1.377 GB, free: 15.2 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001096/0.3785, allocations: 97.19 kB / 1.377 GB, free: 15.09 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 9.895e-05/0.3786, allocations: 20.47 kB / 1.377 GB, free: 15.07 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.713e-05/0.3787, allocations: 35.42 kB / 1.377 GB, free: 15.03 MB / 1.076 GB Notification: Performance of SimCode: time 4.51e-07/0.3787, allocations: 0 / 1.377 GB, free: 15.03 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03186/0.4105, allocations: 4.342 MB / 1.381 GB, free: 10.86 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.91, allocations: 14.52 kB / 1.381 GB, free: 10.85 MB / 1.076 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: 19.075122826732695]