Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001301/0.001301, allocations: 114.5 kB / 18.88 MB, free: 3.062 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.001378/0.001378, allocations: 191.2 kB / 22.17 MB, free: 5.656 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.439/1.439, allocations: 225.6 MB / 250.9 MB, free: 13.3 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.823/2.823, allocations: 476.7 MB / 0.7645 GB, free: 10.11 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_Buildings.Utilities.IO.Files.Examples.CSVWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002903/0.002903, allocations: 71.89 kB / 1.109 GB, free: 6.508 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8749/0.8778, allocations: 168.7 MB / 1.274 GB, free: 4.531 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003342/0.8811, allocations: 1.64 MB / 1.276 GB, free: 2.883 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001119/0.8822, allocations: 0.6211 MB / 1.276 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.963e-05/0.8823, allocations: 0 / 1.276 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.000165/0.8825, allocations: 23.8 kB / 1.276 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002363/0.8827, allocations: 49.25 kB / 1.276 GB, free: 2.188 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004157/0.8831, allocations: 111.7 kB / 1.276 GB, free: 2.078 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002735/0.8834, allocations: 183.6 kB / 1.277 GB, free: 1.898 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.8835, allocations: 13.11 kB / 1.277 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001644/0.8837, allocations: 91.69 kB / 1.277 GB, free: 1.797 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/0.8838, allocations: 87.72 kB / 1.277 GB, free: 1.711 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.911e-05/0.8839, allocations: 12 kB / 1.277 GB, free: 1.699 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.469e-05/0.8839, allocations: 24 kB / 1.277 GB, free: 1.676 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 9.796e-05/0.884, allocations: 39.89 kB / 1.277 GB, free: 1.637 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001243/0.8841, allocations: 71.66 kB / 1.277 GB, free: 1.566 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000281/0.8844, allocations: 174 kB / 1.277 GB, free: 1.398 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.8844, allocations: 0 / 1.277 GB, free: 1.398 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.774e-06/0.8844, allocations: 0 / 1.277 GB, free: 1.398 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.713e-06/0.8844, allocations: 0 / 1.277 GB, free: 1.398 MB / 0.9669 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.0009148/0.8854, allocations: 0.5601 MB / 1.278 GB, free: 0.7656 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.8854, allocations: 8.031 kB / 1.278 GB, free: 0.7578 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.017e-05/0.8855, allocations: 20.84 kB / 1.278 GB, free: 0.7383 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004008/0.8859, allocations: 248.2 kB / 1.278 GB, free: 468 kB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.8859, allocations: 8.375 kB / 1.278 GB, free: 460 kB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.45e-05/0.8859, allocations: 12.38 kB / 1.278 GB, free: 448 kB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002966/0.8862, allocations: 117.7 kB / 1.278 GB, free: 324 kB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.8862, allocations: 0 / 1.278 GB, free: 324 kB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.014e-05/0.8863, allocations: 4 kB / 1.278 GB, free: 320 kB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.8863, allocations: 0 / 1.278 GB, free: 320 kB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000208/0.8865, allocations: 75.94 kB / 1.278 GB, free: 244 kB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009086/0.8874, allocations: 416.5 kB / 1.279 GB, free: 15.78 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002101/0.8876, allocations: 78.52 kB / 1.279 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.8878, allocations: 72.81 kB / 1.279 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.8878, allocations: 4.141 kB / 1.279 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003042/0.8881, allocations: 178.8 kB / 1.279 GB, free: 15.42 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.8881, allocations: 3.938 kB / 1.279 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0008647/0.889, allocations: 348.9 kB / 1.279 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001395/0.8891, allocations: 178.1 kB / 1.279 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002129/0.8893, allocations: 183.2 kB / 1.28 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.188e-05/0.8893, allocations: 25.7 kB / 1.28 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.8894, allocations: 108.4 kB / 1.28 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.977e-05/0.8895, allocations: 31.73 kB / 1.28 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.251e-05/0.8896, allocations: 41.7 kB / 1.28 GB, free: 14.43 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002073/0.8898, allocations: 334.8 kB / 1.28 GB, free: 14.09 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.8899, allocations: 51.97 kB / 1.28 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001775/0.8901, allocations: 94.83 kB / 1.28 GB, free: 13.93 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003918/0.8905, allocations: 316.9 kB / 1.28 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.8905, allocations: 0 / 1.28 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005964/0.8911, allocations: 356.1 kB / 1.281 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.506e-05/0.8912, allocations: 118.8 kB / 1.281 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.8912, allocations: 8.016 kB / 1.281 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.8912, allocations: 0 / 1.281 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.8913, allocations: 19.98 kB / 1.281 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.8913, allocations: 3.984 kB / 1.281 GB, free: 13 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.8914, allocations: 12.25 kB / 1.281 GB, free: 12.99 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.443e-05/0.8915, allocations: 12 kB / 1.281 GB, free: 12.98 MB / 0.9825 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.000198/0.8917, allocations: 206.6 kB / 1.281 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.863e-05/0.8917, allocations: 19.91 kB / 1.281 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.23e-05/0.8917, allocations: 9.406 kB / 1.281 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.8918, allocations: 4 kB / 1.281 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.8918, allocations: 0 / 1.281 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.8918, allocations: 3.984 kB / 1.281 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008405/0.8926, allocations: 0.5915 MB / 1.282 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.8926, allocations: 0 / 1.282 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.895e-05/0.8927, allocations: 16.27 kB / 1.282 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.8927, allocations: 0 / 1.282 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.8927, allocations: 8 kB / 1.282 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.8927, allocations: 3.938 kB / 1.282 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.8927, allocations: 7.922 kB / 1.282 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006573/0.8934, allocations: 410.7 kB / 1.282 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.987e-05/0.8934, allocations: 85.06 kB / 1.282 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.168e-05/0.8935, allocations: 8 kB / 1.282 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000119/0.8936, allocations: 8 kB / 1.282 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.043e-05/0.8936, allocations: 11.92 kB / 1.282 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.151e-05/0.8937, allocations: 15.92 kB / 1.282 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001188/0.8938, allocations: 124.3 kB / 1.282 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.8938, allocations: 0 / 1.282 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003135/0.8941, allocations: 43.95 kB / 1.282 GB, free: 11.28 MB / 0.9825 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.0002969/0.8944, allocations: 130.5 kB / 1.283 GB, free: 11.15 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005845/0.895, allocations: 357.7 kB / 1.283 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.895, allocations: 0 / 1.283 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002573/0.8952, allocations: 182.7 kB / 1.283 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.8956, allocations: 26 kB / 1.283 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006746/0.8962, allocations: 295.7 kB / 1.283 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003935/0.8966, allocations: 0.7122 MB / 1.284 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.868e-05/0.8967, allocations: 20.48 kB / 1.284 GB, free: 9.449 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.984e-05/0.8967, allocations: 19.42 kB / 1.284 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of SimCode: time 2.81e-07/0.8967, allocations: 0 / 1.284 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of Templates: time 0.006565/0.9033, allocations: 2.12 MB / 1.286 GB, free: 7.332 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_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.727281153202057]