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.001905/0.001905, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.002373/0.002373, allocations: 216 kB / 22.24 MB, free: 5.254 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.511/1.511, allocations: 230.6 MB / 256 MB, free: 7.793 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.292/3.292, allocations: 0.49 GB / 0.7951 GB, free: 35.5 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.00209/0.00209, allocations: 66.91 kB / 1.154 GB, free: 25.44 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3512/0.3533, allocations: 176.1 MB / 1.326 GB, free: 1.488 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00317/0.3565, allocations: 1.628 MB / 1.327 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001209/0.3577, allocations: 0.6545 MB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.61e-05/0.3577, allocations: 4 kB / 1.328 GB, free: 15.19 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001468/0.3579, allocations: 19.8 kB / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002188/0.3581, allocations: 51.75 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005203/0.3586, allocations: 127.7 kB / 1.328 GB, free: 15 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002984/0.3589, allocations: 187.6 kB / 1.328 GB, free: 14.81 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/0.359, allocations: 21.91 kB / 1.328 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002281/0.3593, allocations: 95.69 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.3594, allocations: 87.72 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.346e-05/0.3595, allocations: 12 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001004/0.3596, allocations: 35.98 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.3597, allocations: 27.91 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.51e-05/0.3598, allocations: 63.72 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002853/0.3601, allocations: 179.3 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3601, allocations: 4 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3601, allocations: 0 / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.983e-06/0.3601, allocations: 0 / 1.329 GB, free: 14.29 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.0007149/0.3608, allocations: 496.4 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.3608, allocations: 8.031 kB / 1.329 GB, free: 13.74 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.132e-05/0.3609, allocations: 46.67 kB / 1.329 GB, free: 13.69 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001753/0.3611, allocations: 24.84 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003439/0.3614, allocations: 183 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.3614, allocations: 12.38 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.303e-05/0.3615, allocations: 16.38 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003179/0.3618, allocations: 172.9 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.3618, allocations: 3.938 kB / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.628e-05/0.3618, allocations: 4 kB / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.3618, allocations: 0 / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002513/0.3621, allocations: 127.3 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006758/0.3627, allocations: 371.7 kB / 1.33 GB, free: 12.7 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002354/0.363, allocations: 133.9 kB / 1.33 GB, free: 12.54 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001995/0.3632, allocations: 132.1 kB / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.949e-05/0.3632, allocations: 0 / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003319/0.3635, allocations: 242.1 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.3635, allocations: 0 / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0008369/0.3644, allocations: 483.8 kB / 1.331 GB, free: 11.61 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.3645, allocations: 170.2 kB / 1.331 GB, free: 11.41 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001809/0.3646, allocations: 171.6 kB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.825e-05/0.3647, allocations: 33.69 kB / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.057e-05/0.3648, allocations: 108.3 kB / 1.332 GB, free: 11.07 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.895e-05/0.3648, allocations: 31.73 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.414e-05/0.3649, allocations: 45.64 kB / 1.332 GB, free: 10.99 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001475/0.365, allocations: 330.8 kB / 1.332 GB, free: 10.66 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001967/0.3652, allocations: 158.8 kB / 1.332 GB, free: 10.48 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002443/0.3655, allocations: 228.8 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003616/0.3658, allocations: 308.9 kB / 1.333 GB, free: 9.848 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3658, allocations: 0 / 1.333 GB, free: 9.848 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006199/0.3664, allocations: 463 kB / 1.333 GB, free: 9.34 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.77e-05/0.3665, allocations: 122.8 kB / 1.333 GB, free: 9.195 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.3665, allocations: 0 / 1.333 GB, free: 9.195 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.3665, allocations: 4 kB / 1.333 GB, free: 9.191 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.3667, allocations: 23.92 kB / 1.333 GB, free: 9.168 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.3667, allocations: 8.25 kB / 1.333 GB, free: 9.16 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.3668, allocations: 15.92 kB / 1.333 GB, free: 9.145 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.202e-05/0.3668, allocations: 12 kB / 1.333 GB, free: 9.133 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.0001706/0.367, allocations: 201 kB / 1.334 GB, free: 8.918 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.478e-05/0.367, allocations: 15.91 kB / 1.334 GB, free: 8.902 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.118e-05/0.367, allocations: 17.39 kB / 1.334 GB, free: 8.879 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.367, allocations: 0 / 1.334 GB, free: 8.879 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.367, allocations: 0 / 1.334 GB, free: 8.879 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.367, allocations: 0 / 1.334 GB, free: 8.879 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008056/0.3679, allocations: 0.6176 MB / 1.334 GB, free: 8.188 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.3679, allocations: 0 / 1.334 GB, free: 8.188 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.526e-05/0.3679, allocations: 11.98 kB / 1.334 GB, free: 8.176 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.3679, allocations: 3.984 kB / 1.334 GB, free: 8.172 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.83e-05/0.3679, allocations: 4 kB / 1.334 GB, free: 8.168 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3679, allocations: 0 / 1.334 GB, free: 8.168 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.3679, allocations: 3.938 kB / 1.334 GB, free: 8.164 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000632/0.3686, allocations: 470 kB / 1.335 GB, free: 7.664 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.801e-05/0.3686, allocations: 7.953 kB / 1.335 GB, free: 7.656 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.619e-05/0.3686, allocations: 12 kB / 1.335 GB, free: 7.645 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001155/0.3687, allocations: 11.98 kB / 1.335 GB, free: 7.633 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.487e-05/0.3688, allocations: 15.91 kB / 1.335 GB, free: 7.617 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/0.3688, allocations: 8 kB / 1.335 GB, free: 7.609 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001181/0.3689, allocations: 128.1 kB / 1.335 GB, free: 7.484 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3689, allocations: 0 / 1.335 GB, free: 7.484 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003027/0.3692, allocations: 43.89 kB / 1.335 GB, free: 7.441 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.001096/0.3703, allocations: 1.022 MB / 1.336 GB, free: 6.375 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006084/0.3709, allocations: 0.5152 MB / 1.336 GB, free: 5.773 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3709, allocations: 0 / 1.336 GB, free: 5.773 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002951/0.3712, allocations: 246.6 kB / 1.337 GB, free: 5.496 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.3715, allocations: 21.5 kB / 1.337 GB, free: 5.477 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003069/0.3746, allocations: 2.625 MB / 1.339 GB, free: 2.594 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.928e-05/0.3747, allocations: 93.19 kB / 1.339 GB, free: 2.48 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.434e-05/0.3748, allocations: 20.47 kB / 1.339 GB, free: 2.461 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.44e-05/0.3748, allocations: 39.42 kB / 1.339 GB, free: 2.422 MB / 1.029 GB Notification: Performance of SimCode: time 2.81e-07/0.3748, allocations: 0 / 1.339 GB, free: 2.422 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03129/0.4061, allocations: 4.363 MB / 1.344 GB, free: 14.23 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.92, allocations: 4.438 kB / 1.344 GB, free: 14.23 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: 18.94200362000265]