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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001928/0.001928, allocations: 106.8 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001809/0.001809, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.197/3.197, allocations: 497.2 MB / 0.7811 GB, free: 33.68 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 64.41 kB / 1.134 GB, free: 33.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3562/0.3581, allocations: 173.9 MB / 1.304 GB, free: 1.551 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00328/0.3614, allocations: 1.63 MB / 1.306 GB, free: 15.9 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001147/0.3626, allocations: 0.6077 MB / 1.306 GB, free: 15.29 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.745e-05/0.3627, allocations: 4 kB / 1.306 GB, free: 15.29 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001756/0.3628, allocations: 31.78 kB / 1.306 GB, free: 15.26 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0002378/0.3631, allocations: 43.75 kB / 1.306 GB, free: 15.21 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004256/0.3635, allocations: 107.8 kB / 1.306 GB, free: 15.11 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003318/0.3638, allocations: 183.6 kB / 1.306 GB, free: 14.93 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.364, allocations: 13.41 kB / 1.307 GB, free: 14.91 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001784/0.3641, allocations: 95.67 kB / 1.307 GB, free: 14.82 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001691/0.3643, allocations: 87.72 kB / 1.307 GB, free: 14.73 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.461e-05/0.3643, allocations: 16 kB / 1.307 GB, free: 14.72 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.281e-05/0.3644, allocations: 24 kB / 1.307 GB, free: 14.7 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 8.974e-05/0.3645, allocations: 31.91 kB / 1.307 GB, free: 14.66 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.3646, allocations: 71.66 kB / 1.307 GB, free: 14.59 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003006/0.3649, allocations: 175.2 kB / 1.307 GB, free: 14.42 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3649, allocations: 0 / 1.307 GB, free: 14.42 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.293e-06/0.3649, allocations: 0 / 1.307 GB, free: 14.42 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.3649, allocations: 0 / 1.307 GB, free: 14.42 MB / 1.014 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.0007812/0.3657, allocations: 0.5601 MB / 1.308 GB, free: 13.79 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.3658, allocations: 12.92 kB / 1.308 GB, free: 13.78 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.989e-05/0.3658, allocations: 42.73 kB / 1.308 GB, free: 13.73 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.834e-05/0.3659, allocations: 20.84 kB / 1.308 GB, free: 13.71 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003919/0.3663, allocations: 229.3 kB / 1.308 GB, free: 13.45 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.8e-05/0.3663, allocations: 8.375 kB / 1.308 GB, free: 13.44 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.423e-05/0.3663, allocations: 16.38 kB / 1.308 GB, free: 13.42 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002799/0.3666, allocations: 117.5 kB / 1.308 GB, free: 13.3 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.3666, allocations: 0 / 1.308 GB, free: 13.3 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.038e-05/0.3666, allocations: 11.98 kB / 1.308 GB, free: 13.29 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.3666, allocations: 3.938 kB / 1.308 GB, free: 13.29 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001986/0.3668, allocations: 67.94 kB / 1.308 GB, free: 13.22 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007026/0.3675, allocations: 420.5 kB / 1.308 GB, free: 12.76 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001915/0.3677, allocations: 78.53 kB / 1.309 GB, free: 12.67 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001816/0.3679, allocations: 64.81 kB / 1.309 GB, free: 12.61 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/0.3679, allocations: 4 kB / 1.309 GB, free: 12.6 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002828/0.3682, allocations: 178.8 kB / 1.309 GB, free: 12.4 MB / 1.014 GB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.3682, allocations: 0 / 1.309 GB, free: 12.4 MB / 1.014 GB Notification: Performance of matching and sorting (n=10): time 0.0007776/0.369, allocations: 368.9 kB / 1.309 GB, free: 12.02 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/0.3691, allocations: 162.2 kB / 1.309 GB, free: 11.83 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001819/0.3693, allocations: 182.6 kB / 1.309 GB, free: 11.64 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.684e-05/0.3693, allocations: 29.7 kB / 1.309 GB, free: 11.6 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 9.039e-05/0.3694, allocations: 120.3 kB / 1.31 GB, free: 11.48 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.81e-05/0.3694, allocations: 19.86 kB / 1.31 GB, free: 11.46 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.877e-05/0.3695, allocations: 37.7 kB / 1.31 GB, free: 11.41 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.3697, allocations: 330.8 kB / 1.31 GB, free: 11.08 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001431/0.3698, allocations: 55.95 kB / 1.31 GB, free: 11.03 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001766/0.37, allocations: 106.5 kB / 1.31 GB, free: 10.9 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003717/0.3703, allocations: 316.9 kB / 1.31 GB, free: 10.53 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3703, allocations: 0 / 1.31 GB, free: 10.53 MB / 1.014 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005624/0.3709, allocations: 348.1 kB / 1.311 GB, free: 10.16 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001001/0.371, allocations: 122.8 kB / 1.311 GB, free: 10.02 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.371, allocations: 3.938 kB / 1.311 GB, free: 10.01 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.371, allocations: 4.25 kB / 1.311 GB, free: 10.01 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.3712, allocations: 19.98 kB / 1.311 GB, free: 9.988 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.747e-06/0.3712, allocations: 4 kB / 1.311 GB, free: 9.984 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.3713, allocations: 15.89 kB / 1.311 GB, free: 9.969 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.461e-05/0.3713, allocations: 12 kB / 1.311 GB, free: 9.957 MB / 1.014 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.0001893/0.3715, allocations: 201.1 kB / 1.311 GB, free: 9.738 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.617e-05/0.3715, allocations: 15.91 kB / 1.311 GB, free: 9.723 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.149e-05/0.3716, allocations: 17.69 kB / 1.311 GB, free: 9.699 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.3716, allocations: 4 kB / 1.311 GB, free: 9.695 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3716, allocations: 0 / 1.311 GB, free: 9.695 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.3716, allocations: 3.938 kB / 1.311 GB, free: 9.691 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00081/0.3724, allocations: 0.5953 MB / 1.312 GB, free: 9.027 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.3724, allocations: 0 / 1.312 GB, free: 9.027 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.647e-05/0.3725, allocations: 11.98 kB / 1.312 GB, free: 9.016 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.3725, allocations: 0 / 1.312 GB, free: 9.016 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.15e-05/0.3725, allocations: 8 kB / 1.312 GB, free: 9.008 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3725, allocations: 0 / 1.312 GB, free: 9.008 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.3725, allocations: 7.938 kB / 1.312 GB, free: 9 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000618/0.3731, allocations: 410.7 kB / 1.312 GB, free: 8.57 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 6.072e-05/0.3732, allocations: 89.02 kB / 1.312 GB, free: 8.465 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.46e-05/0.3732, allocations: 4 kB / 1.312 GB, free: 8.461 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.3733, allocations: 4 kB / 1.312 GB, free: 8.457 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.869e-05/0.3734, allocations: 15.92 kB / 1.312 GB, free: 8.441 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.3734, allocations: 15.94 kB / 1.312 GB, free: 8.426 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001134/0.3735, allocations: 132.3 kB / 1.312 GB, free: 8.297 MB / 1.014 GB Notification: Performance of sort global known variables: time 1e-07/0.3735, allocations: 4 kB / 1.312 GB, free: 8.293 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003002/0.3738, allocations: 28 kB / 1.312 GB, free: 8.266 MB / 1.014 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.001062/0.3749, allocations: 0.9775 MB / 1.313 GB, free: 7.254 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0005516/0.3754, allocations: 361.4 kB / 1.314 GB, free: 6.852 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3754, allocations: 0.5 kB / 1.314 GB, free: 6.852 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0002446/0.3756, allocations: 178.8 kB / 1.314 GB, free: 6.652 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003134/0.376, allocations: 33.89 kB / 1.314 GB, free: 6.621 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002841/0.3788, allocations: 2.112 MB / 1.316 GB, free: 4.355 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004024/0.3792, allocations: 0.708 MB / 1.317 GB, free: 3.621 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 7.657e-05/0.3793, allocations: 20.53 kB / 1.317 GB, free: 3.602 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.056e-05/0.3794, allocations: 35.42 kB / 1.317 GB, free: 3.566 MB / 1.014 GB Notification: Performance of SimCode: time 5.61e-07/0.3794, allocations: 4 kB / 1.317 GB, free: 3.562 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03295/0.4123, allocations: 3.653 MB / 1.32 GB, free: 32 kB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.462/8.874, allocations: 11.31 kB / 1.32 GB, free: 24 kB / 1.014 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --stepSize=0.004484 --timeout=800 --tolerance=1e-06 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.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.448090462945402]