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.001744/0.001744, allocations: 109.4 kB / 17.08 MB, free: 5.984 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.001967/0.001968, allocations: 192.7 kB / 20.03 MB, free: 3.059 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.412/1.412, allocations: 222.9 MB / 245.7 MB, free: 4.191 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.71/2.71, allocations: 437.1 MB / 0.7177 GB, free: 4.551 MB / 0.5606 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001977/0.001977, allocations: 59.89 kB / 1.028 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2915/0.2934, allocations: 151.6 MB / 1.176 GB, free: 5.914 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002976/0.2965, allocations: 1.614 MB / 1.177 GB, free: 4.277 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0009842/0.2975, allocations: 0.6196 MB / 1.178 GB, free: 3.652 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.554e-05/0.2975, allocations: 0 / 1.178 GB, free: 3.652 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001462/0.2977, allocations: 23.78 kB / 1.178 GB, free: 3.629 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0002013/0.2979, allocations: 43.77 kB / 1.178 GB, free: 3.586 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003676/0.2983, allocations: 107.8 kB / 1.178 GB, free: 3.48 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002768/0.2986, allocations: 203.6 kB / 1.178 GB, free: 3.281 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.2987, allocations: 29.09 kB / 1.178 GB, free: 3.25 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001519/0.2988, allocations: 87.69 kB / 1.178 GB, free: 3.164 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001448/0.299, allocations: 79.72 kB / 1.179 GB, free: 3.086 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.007e-05/0.299, allocations: 12 kB / 1.179 GB, free: 3.074 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.869e-05/0.2991, allocations: 39.98 kB / 1.179 GB, free: 3.035 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 8.414e-05/0.2992, allocations: 31.91 kB / 1.179 GB, free: 3.004 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001008/0.2993, allocations: 71.66 kB / 1.179 GB, free: 2.934 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002608/0.2996, allocations: 175.2 kB / 1.179 GB, free: 2.762 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.2996, allocations: 4 kB / 1.179 GB, free: 2.758 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.142e-06/0.2996, allocations: 0 / 1.179 GB, free: 2.758 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.2996, allocations: 0 / 1.179 GB, free: 2.758 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.0007756/0.3004, allocations: 0.5523 MB / 1.179 GB, free: 2.133 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.3005, allocations: 8.031 kB / 1.179 GB, free: 2.125 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.969e-05/0.3005, allocations: 24.84 kB / 1.179 GB, free: 2.102 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003719/0.3009, allocations: 237.2 kB / 1.18 GB, free: 1.832 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.3009, allocations: 12.38 kB / 1.18 GB, free: 1.82 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.527e-05/0.301, allocations: 12.38 kB / 1.18 GB, free: 1.809 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000283/0.3012, allocations: 117.7 kB / 1.18 GB, free: 1.688 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.3013, allocations: 0 / 1.18 GB, free: 1.688 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.3013, allocations: 4 kB / 1.18 GB, free: 1.684 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.3013, allocations: 4 kB / 1.18 GB, free: 1.68 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000203/0.3015, allocations: 71.94 kB / 1.18 GB, free: 1.609 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006794/0.3022, allocations: 412.6 kB / 1.18 GB, free: 1.156 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002118/0.3024, allocations: 90.52 kB / 1.18 GB, free: 1.059 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001837/0.3026, allocations: 80.81 kB / 1.18 GB, free: 0.9766 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.3026, allocations: 0 / 1.18 GB, free: 0.9766 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003013/0.3029, allocations: 186.7 kB / 1.181 GB, free: 0.7695 MB / 0.92 GB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.303, allocations: 0 / 1.181 GB, free: 0.7695 MB / 0.92 GB Notification: Performance of matching and sorting (n=10): time 0.0007805/0.3037, allocations: 349 kB / 1.181 GB, free: 420 kB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/0.3039, allocations: 174.2 kB / 1.181 GB, free: 208 kB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000215/0.3041, allocations: 174.6 kB / 1.181 GB, free: 20 kB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.774e-05/0.3042, allocations: 33.7 kB / 1.181 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.762e-05/0.3043, allocations: 108.4 kB / 1.181 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.888e-05/0.3043, allocations: 27.8 kB / 1.181 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.362e-05/0.3044, allocations: 37.72 kB / 1.181 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001608/0.3046, allocations: 326.8 kB / 1.182 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001406/0.3047, allocations: 55.97 kB / 1.182 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001854/0.3049, allocations: 98.83 kB / 1.182 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003804/0.3053, allocations: 312.9 kB / 1.182 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.3053, allocations: 4 kB / 1.182 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005578/0.3059, allocations: 348.1 kB / 1.183 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 9.971e-05/0.306, allocations: 118.8 kB / 1.183 GB, free: 14.41 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.306, allocations: 4 kB / 1.183 GB, free: 14.41 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.306, allocations: 0 / 1.183 GB, free: 14.41 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.3061, allocations: 23.92 kB / 1.183 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.3061, allocations: 256 / 1.183 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.934e-05/0.3062, allocations: 19.94 kB / 1.183 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.366e-05/0.3063, allocations: 15.98 kB / 1.183 GB, free: 14.35 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.0001754/0.3065, allocations: 197.1 kB / 1.183 GB, free: 14.13 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.238e-05/0.3065, allocations: 15.91 kB / 1.183 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.561e-05/0.3065, allocations: 13.41 kB / 1.183 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.3066, allocations: 4 kB / 1.183 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.3066, allocations: 0 / 1.183 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.3066, allocations: 3.984 kB / 1.183 GB, free: 14.09 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007903/0.3074, allocations: 0.5914 MB / 1.184 GB, free: 13.43 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3074, allocations: 7.984 kB / 1.184 GB, free: 13.43 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.598e-05/0.3075, allocations: 15.98 kB / 1.184 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.3075, allocations: 0 / 1.184 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.3075, allocations: 4 kB / 1.184 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3075, allocations: 0 / 1.184 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.3075, allocations: 7.922 kB / 1.184 GB, free: 13.4 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000612/0.3081, allocations: 410.9 kB / 1.184 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.172e-05/0.3082, allocations: 81.06 kB / 1.184 GB, free: 12.87 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.76e-05/0.3082, allocations: 8 kB / 1.184 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.3083, allocations: 8 kB / 1.184 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.731e-05/0.3084, allocations: 11.92 kB / 1.184 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.3084, allocations: 4 kB / 1.184 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001204/0.3085, allocations: 136.8 kB / 1.184 GB, free: 12.71 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3086, allocations: 4 kB / 1.184 GB, free: 12.7 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002916/0.3088, allocations: 36 kB / 1.184 GB, free: 12.67 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.0002671/0.3091, allocations: 124.9 kB / 1.184 GB, free: 12.54 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005406/0.3097, allocations: 361.4 kB / 1.185 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3097, allocations: 3.938 kB / 1.185 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002604/0.3099, allocations: 210.7 kB / 1.185 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003053/0.3103, allocations: 22.17 kB / 1.185 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006121/0.3109, allocations: 321.9 kB / 1.185 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003435/0.3112, allocations: 0.7119 MB / 1.186 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.952e-05/0.3113, allocations: 11.44 kB / 1.186 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.3113, allocations: 0 / 1.186 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of Templates: time 0.00441/0.3157, allocations: 2.185 MB / 1.188 GB, free: 8.621 MB / 0.9356 GB " [Timeout remaining time 300] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 10.465138633036986]