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.001456/0.001456, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001691/0.001691, allocations: 212.3 kB / 22.25 MB, free: 4.859 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.567/1.567, allocations: 230.6 MB / 256 MB, free: 7.801 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.379/3.379, allocations: 0.4892 GB / 0.7943 GB, free: 35.52 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.002094/0.002094, allocations: 64.12 kB / 1.153 GB, free: 25.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3594/0.3615, allocations: 176.1 MB / 1.325 GB, free: 2.375 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003445/0.365, allocations: 1.632 MB / 1.327 GB, free: 0.7383 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001317/0.3663, allocations: 0.6469 MB / 1.327 GB, free: 88 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.517e-05/0.3664, allocations: 7.938 kB / 1.327 GB, free: 80 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.00016/0.3665, allocations: 23.73 kB / 1.327 GB, free: 56 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0002494/0.3668, allocations: 47.75 kB / 1.327 GB, free: 8 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005793/0.3674, allocations: 123.7 kB / 1.327 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000339/0.3677, allocations: 191.5 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.3678, allocations: 17.91 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002757/0.3681, allocations: 87.81 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001873/0.3683, allocations: 83.66 kB / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.79e-05/0.3684, allocations: 16 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001108/0.3685, allocations: 32 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.3686, allocations: 39.83 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.935e-05/0.3687, allocations: 59.78 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003261/0.369, allocations: 179.3 kB / 1.328 GB, free: 15.19 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.369, allocations: 0 / 1.328 GB, free: 15.19 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.004e-06/0.369, allocations: 0 / 1.328 GB, free: 15.19 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.142e-05/0.369, allocations: 0 / 1.328 GB, free: 15.19 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.000836/0.3699, allocations: 492.4 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.3699, allocations: 16.03 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.51e-05/0.37, allocations: 38.75 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002206/0.3702, allocations: 28.83 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003851/0.3706, allocations: 182.9 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.3706, allocations: 12.38 kB / 1.329 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.725e-05/0.3706, allocations: 12.38 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003488/0.371, allocations: 172.9 kB / 1.329 GB, free: 14.15 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.371, allocations: 4 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.01e-05/0.371, allocations: 8 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.371, allocations: 0 / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002623/0.3713, allocations: 127.3 kB / 1.329 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007749/0.372, allocations: 367.7 kB / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002591/0.3723, allocations: 138 kB / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002209/0.3725, allocations: 132.2 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.597e-05/0.3725, allocations: 3.984 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003543/0.3729, allocations: 238.1 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.794e-06/0.3729, allocations: 3.938 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0008988/0.3738, allocations: 483.7 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/0.3739, allocations: 162.2 kB / 1.331 GB, free: 12.31 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002021/0.3741, allocations: 179.6 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.148e-05/0.3742, allocations: 29.7 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.509e-05/0.3743, allocations: 116.4 kB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.753e-05/0.3743, allocations: 31.73 kB / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.78e-05/0.3744, allocations: 41.7 kB / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.3745, allocations: 326.8 kB / 1.331 GB, free: 11.56 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002163/0.3747, allocations: 162.8 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002564/0.375, allocations: 217.6 kB / 1.332 GB, free: 11.11 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004075/0.3754, allocations: 309 kB / 1.332 GB, free: 10.75 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3754, allocations: 0 / 1.332 GB, free: 10.75 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006955/0.3761, allocations: 475 kB / 1.332 GB, free: 10.23 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.3762, allocations: 114.8 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.3762, allocations: 4 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.3762, allocations: 4 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.3764, allocations: 23.92 kB / 1.333 GB, free: 10.06 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.3764, allocations: 0 / 1.333 GB, free: 10.06 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.3765, allocations: 15.94 kB / 1.333 GB, free: 10.05 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.626e-05/0.3765, allocations: 15.98 kB / 1.333 GB, free: 10.03 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.0001945/0.3767, allocations: 199.3 kB / 1.333 GB, free: 9.816 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.276e-05/0.3767, allocations: 19.91 kB / 1.333 GB, free: 9.797 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.386e-05/0.3768, allocations: 13.41 kB / 1.333 GB, free: 9.777 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.3768, allocations: 0 / 1.333 GB, free: 9.777 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.3768, allocations: 3.938 kB / 1.333 GB, free: 9.773 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.3768, allocations: 3.984 kB / 1.333 GB, free: 9.77 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008171/0.3776, allocations: 0.6017 MB / 1.333 GB, free: 9.094 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.3776, allocations: 0 / 1.333 GB, free: 9.094 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.245e-05/0.3777, allocations: 19.94 kB / 1.333 GB, free: 9.074 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.3777, allocations: 4.281 kB / 1.333 GB, free: 9.07 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.117e-05/0.3777, allocations: 7.984 kB / 1.333 GB, free: 9.062 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3777, allocations: 0 / 1.333 GB, free: 9.062 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.3777, allocations: 7.875 kB / 1.333 GB, free: 9.055 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006412/0.3784, allocations: 466.1 kB / 1.334 GB, free: 8.559 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.281e-05/0.3784, allocations: 11.91 kB / 1.334 GB, free: 8.547 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.472e-05/0.3784, allocations: 4 kB / 1.334 GB, free: 8.543 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/0.3785, allocations: 15.98 kB / 1.334 GB, free: 8.527 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.959e-05/0.3786, allocations: 11.92 kB / 1.334 GB, free: 8.516 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.66e-05/0.3786, allocations: 11.98 kB / 1.334 GB, free: 8.504 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001116/0.3787, allocations: 128.1 kB / 1.334 GB, free: 8.379 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3787, allocations: 0 / 1.334 GB, free: 8.379 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003055/0.379, allocations: 43.92 kB / 1.334 GB, free: 8.336 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.001139/0.3802, allocations: 1.019 MB / 1.335 GB, free: 7.273 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006504/0.3808, allocations: 0.5152 MB / 1.336 GB, free: 6.672 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3808, allocations: 0 / 1.336 GB, free: 6.672 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002813/0.3811, allocations: 242.1 kB / 1.336 GB, free: 6.398 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003168/0.3814, allocations: 27.86 kB / 1.336 GB, free: 6.371 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003194/0.3846, allocations: 2.622 MB / 1.338 GB, free: 3.492 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000109/0.3847, allocations: 93.17 kB / 1.339 GB, free: 3.379 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.099e-05/0.3848, allocations: 28.45 kB / 1.339 GB, free: 3.352 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.424e-05/0.3849, allocations: 39.42 kB / 1.339 GB, free: 3.312 MB / 1.029 GB Notification: Performance of SimCode: time 1.012e-06/0.3849, allocations: 0 / 1.339 GB, free: 3.312 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03567/0.4205, allocations: 4.328 MB / 1.343 GB, free: 15.15 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.78, allocations: 10.27 kB / 1.343 GB, free: 15.14 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --stepSize=0.004484 --timeout=400 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.862390970811248]