Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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.001343/0.001343, allocations: 108.8 kB / 18.93 MB, free: 2.945 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.001415/0.001415, allocations: 190.4 kB / 22.23 MB, free: 5.16 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.406/1.406, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo): time 2.609/2.609, allocations: 443.5 MB / 0.7321 GB, free: 12.26 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/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: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001984/0.001984, allocations: 71.88 kB / 1.061 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7748/0.7768, allocations: 160.8 MB / 1.218 GB, free: 3.691 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003398/0.7802, allocations: 1.645 MB / 1.22 GB, free: 2.41 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001102/0.7813, allocations: 0.6254 MB / 1.221 GB, free: 1.918 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.772e-05/0.7814, allocations: 2.5 kB / 1.221 GB, free: 1.918 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001527/0.7816, allocations: 20.97 kB / 1.221 GB, free: 1.898 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0002293/0.7818, allocations: 43.42 kB / 1.221 GB, free: 1.867 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003801/0.7822, allocations: 115.6 kB / 1.221 GB, free: 1.781 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002841/0.7825, allocations: 188.7 kB / 1.221 GB, free: 1.672 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.7826, allocations: 15.67 kB / 1.221 GB, free: 1.664 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001761/0.7827, allocations: 94.88 kB / 1.221 GB, free: 1.609 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001477/0.7829, allocations: 83.81 kB / 1.221 GB, free: 1.555 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.476e-05/0.7829, allocations: 13.47 kB / 1.221 GB, free: 1.555 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.46e-05/0.783, allocations: 21.56 kB / 1.221 GB, free: 1.555 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 9.511e-05/0.7831, allocations: 35.3 kB / 1.221 GB, free: 1.531 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001089/0.7832, allocations: 72.48 kB / 1.221 GB, free: 1.484 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000284/0.7835, allocations: 173.3 kB / 1.222 GB, free: 1.367 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.7835, allocations: 5.188 kB / 1.222 GB, free: 1.363 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.372e-06/0.7835, allocations: 3.938 kB / 1.222 GB, free: 1.359 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.74e-06/0.7835, allocations: 0 / 1.222 GB, free: 1.359 MB / 0.92 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.0008401/0.7843, allocations: 0.5545 MB / 1.222 GB, free: 0.793 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.7844, allocations: 17.3 kB / 1.222 GB, free: 0.7852 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.505e-05/0.7845, allocations: 19.94 kB / 1.222 GB, free: 0.7773 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003939/0.7848, allocations: 239.5 kB / 1.222 GB, free: 0.5273 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.7849, allocations: 14.66 kB / 1.222 GB, free: 0.5195 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.116e-05/0.7849, allocations: 11.72 kB / 1.222 GB, free: 0.5195 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002889/0.7852, allocations: 123.6 kB / 1.222 GB, free: 444 kB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.7852, allocations: 0 / 1.222 GB, free: 444 kB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.7852, allocations: 2.75 kB / 1.222 GB, free: 444 kB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.7852, allocations: 1.125 kB / 1.222 GB, free: 444 kB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002001/0.7854, allocations: 70.94 kB / 1.223 GB, free: 412 kB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007191/0.7861, allocations: 420.9 kB / 1.223 GB, free: 8 kB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002075/0.7864, allocations: 77.56 kB / 1.223 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001526/0.7865, allocations: 63.5 kB / 1.223 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.98e-05/0.7865, allocations: 5.094 kB / 1.223 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002781/0.7868, allocations: 185.4 kB / 1.223 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.7868, allocations: 0 / 1.223 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0007522/0.7876, allocations: 354.9 kB / 1.224 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.7877, allocations: 167.6 kB / 1.224 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002099/0.7879, allocations: 181.1 kB / 1.224 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.667e-05/0.7879, allocations: 36.95 kB / 1.224 GB, free: 15.17 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.824e-05/0.788, allocations: 108.4 kB / 1.224 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.561e-05/0.7881, allocations: 28.41 kB / 1.224 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.281e-05/0.7881, allocations: 38.98 kB / 1.224 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.7883, allocations: 325.9 kB / 1.224 GB, free: 14.69 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001404/0.7884, allocations: 61.39 kB / 1.224 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.7886, allocations: 107.8 kB / 1.225 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003832/0.789, allocations: 314.2 kB / 1.225 GB, free: 14.26 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.789, allocations: 1.156 kB / 1.225 GB, free: 14.26 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005648/0.7895, allocations: 347.5 kB / 1.225 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.7896, allocations: 120.2 kB / 1.225 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.7897, allocations: 5.844 kB / 1.225 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.7897, allocations: 11.3 kB / 1.225 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.7898, allocations: 17.05 kB / 1.225 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.7898, allocations: 2.281 kB / 1.225 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.7899, allocations: 13.16 kB / 1.225 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.03e-05/0.7899, allocations: 7.625 kB / 1.225 GB, free: 13.86 MB / 0.9356 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.0001873/0.7901, allocations: 216.1 kB / 1.226 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.621e-05/0.7901, allocations: 21.38 kB / 1.226 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.066e-05/0.7902, allocations: 17.06 kB / 1.226 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.7902, allocations: 1.062 kB / 1.226 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.7902, allocations: 1.094 kB / 1.226 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.7902, allocations: 0 / 1.226 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008085/0.791, allocations: 0.589 MB / 1.226 GB, free: 13.11 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.791, allocations: 1.406 kB / 1.226 GB, free: 13.11 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.702e-05/0.7911, allocations: 15.33 kB / 1.226 GB, free: 13.11 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.7911, allocations: 1.469 kB / 1.226 GB, free: 13.11 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.244e-05/0.7911, allocations: 8.125 kB / 1.226 GB, free: 13.1 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.7911, allocations: 1.531 kB / 1.226 GB, free: 13.1 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.7911, allocations: 3.938 kB / 1.226 GB, free: 13.1 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006292/0.7917, allocations: 411.7 kB / 1.227 GB, free: 12.8 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.098e-05/0.7918, allocations: 88.06 kB / 1.227 GB, free: 12.7 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.48e-05/0.7918, allocations: 4.344 kB / 1.227 GB, free: 12.7 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.7919, allocations: 6.688 kB / 1.227 GB, free: 12.7 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.973e-05/0.792, allocations: 14.8 kB / 1.227 GB, free: 12.69 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.007e-05/0.792, allocations: 9.078 kB / 1.227 GB, free: 12.69 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001191/0.7921, allocations: 127.8 kB / 1.227 GB, free: 12.59 MB / 0.9356 GB Notification: Performance of sort global known variables: time 9e-08/0.7921, allocations: 0 / 1.227 GB, free: 12.59 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002926/0.7924, allocations: 30.66 kB / 1.227 GB, free: 12.59 MB / 0.9356 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.0002911/0.7927, allocations: 132 kB / 1.227 GB, free: 12.48 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005482/0.7933, allocations: 358.8 kB / 1.227 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.7933, allocations: 1.812 kB / 1.227 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002474/0.7935, allocations: 187.4 kB / 1.228 GB, free: 12 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003075/0.7938, allocations: 23.61 kB / 1.228 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006604/0.7945, allocations: 302.2 kB / 1.228 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/0.7949, allocations: 0.7079 MB / 1.229 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.434e-05/0.7949, allocations: 19.83 kB / 1.229 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.696e-05/0.795, allocations: 17.92 kB / 1.229 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of SimCode: time 3.1e-07/0.795, allocations: 0 / 1.229 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of Templates: time 0.006378/0.8014, allocations: 2.138 MB / 1.231 GB, free: 9.938 MB / 0.9356 GB " [Timeout remaining time 299] make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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: 8.499392318539321]