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.002477/0.002477, allocations: 83.69 kB / 20.23 MB, free: 4.188 MB / 18.57 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.003035/0.003035, allocations: 157.3 kB / 23.55 MB, free: 0.875 MB / 18.57 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.753/1.753, allocations: 177.1 MB / 203.9 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.142/3.142, allocations: 377.8 MB / 0.6232 GB, free: 8.547 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_12_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_12_Buildings.Utilities.IO.Files.Examples.CSVWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 0.8108 GB, free: 2.117 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.026e-05/3.169e-05, allocations: 6.25 kB / 0.8108 GB, free: 2.109 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003725/0.003757, allocations: 1.656 MB / 0.8124 GB, free: 476 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001477/0.005234, allocations: 0.6713 MB / 0.8131 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.294e-05/0.005327, allocations: 4 kB / 0.8131 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001811/0.005508, allocations: 16.67 kB / 0.8131 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0002737/0.005782, allocations: 51.64 kB / 0.8131 GB, free: 15.72 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.000464/0.006246, allocations: 117 kB / 0.8133 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0003362/0.006582, allocations: 191.5 kB / 0.8134 GB, free: 15.42 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.006692, allocations: 22.14 kB / 0.8135 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002844/0.006976, allocations: 121 kB / 0.8136 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001454/0.007122, allocations: 71.84 kB / 0.8136 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 4.593e-05/0.007168, allocations: 12 kB / 0.8137 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 9.885e-05/0.007267, allocations: 31.98 kB / 0.8137 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.007369, allocations: 32.38 kB / 0.8137 GB, free: 15.13 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 9.656e-05/0.007465, allocations: 53.28 kB / 0.8138 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003363/0.007801, allocations: 199.3 kB / 0.814 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.007805, allocations: 0 / 0.814 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.223e-06/0.007806, allocations: 5.156 kB / 0.814 GB, free: 14.88 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 6.121e-06/0.007812, allocations: 0 / 0.814 GB, free: 14.88 MB / 0.7761 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.0008331/0.008646, allocations: 0.5843 MB / 0.8145 GB, free: 14.24 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.008682, allocations: 9.219 kB / 0.8145 GB, free: 14.23 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002031/0.008885, allocations: 32.84 kB / 0.8146 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003627/0.009248, allocations: 193.6 kB / 0.8148 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.91e-05/0.009267, allocations: 4.375 kB / 0.8148 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.232e-05/0.009309, allocations: 17.19 kB / 0.8148 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003242/0.009633, allocations: 161.5 kB / 0.8149 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.009643, allocations: 1.031 kB / 0.8149 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.113e-05/0.009664, allocations: 8.125 kB / 0.8149 GB, free: 13.78 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.009668, allocations: 1.219 kB / 0.8149 GB, free: 13.78 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002332/0.009902, allocations: 119.4 kB / 0.8151 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007616/0.01066, allocations: 400.8 kB / 0.8154 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002646/0.01093, allocations: 142.5 kB / 0.8156 GB, free: 13.06 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002036/0.01113, allocations: 132.6 kB / 0.8157 GB, free: 12.92 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.01116, allocations: 7.938 kB / 0.8157 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003528/0.01152, allocations: 235.8 kB / 0.8159 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=10): time 1.382e-06/0.01152, allocations: 2.719 kB / 0.8159 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10): time 0.0009181/0.01244, allocations: 467.6 kB / 0.8164 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.01256, allocations: 162.2 kB / 0.8165 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002641/0.01282, allocations: 255.7 kB / 0.8168 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.125e-05/0.01286, allocations: 29.7 kB / 0.8168 GB, free: 11.64 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.01298, allocations: 163.1 kB / 0.817 GB, free: 11.47 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 4.306e-05/0.01303, allocations: 31.92 kB / 0.817 GB, free: 11.44 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.016e-05/0.01312, allocations: 47.88 kB / 0.817 GB, free: 11.39 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002843/0.0134, allocations: 0.5045 MB / 0.8175 GB, free: 10.87 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002237/0.01362, allocations: 152.7 kB / 0.8177 GB, free: 10.7 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002879/0.01391, allocations: 236.2 kB / 0.8179 GB, free: 10.41 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004078/0.01432, allocations: 318.6 kB / 0.8182 GB, free: 10.03 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.01432, allocations: 0 / 0.8182 GB, free: 10.03 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006899/0.01501, allocations: 465.8 kB / 0.8186 GB, free: 9.523 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001167/0.01513, allocations: 118.8 kB / 0.8188 GB, free: 9.383 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.483e-06/0.01513, allocations: 0 / 0.8188 GB, free: 9.383 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.01515, allocations: 7.938 kB / 0.8188 GB, free: 9.375 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/0.01527, allocations: 22.55 kB / 0.8188 GB, free: 9.355 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.01528, allocations: 8.062 kB / 0.8188 GB, free: 9.348 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.514e-05/0.01537, allocations: 11.95 kB / 0.8188 GB, free: 9.336 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.537e-05/0.0154, allocations: 11.98 kB / 0.8188 GB, free: 9.324 MB / 0.7761 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.0004976/0.0159, allocations: 247.8 kB / 0.8191 GB, free: 9.059 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.436e-05/0.01595, allocations: 27.84 kB / 0.8191 GB, free: 9.031 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.214e-05/0.01599, allocations: 14.41 kB / 0.8191 GB, free: 9.02 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.01599, allocations: 0 / 0.8191 GB, free: 9.02 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.016, allocations: 0 / 0.8191 GB, free: 9.02 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.016, allocations: 1.125 kB / 0.8191 GB, free: 9.02 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008965/0.0169, allocations: 0.6445 MB / 0.8197 GB, free: 8.309 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.0169, allocations: 1.031 kB / 0.8197 GB, free: 8.309 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.572e-05/0.01696, allocations: 4 kB / 0.8197 GB, free: 8.305 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-06/0.01696, allocations: 4 kB / 0.8197 GB, free: 8.301 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.176e-05/0.01699, allocations: 9.109 kB / 0.8197 GB, free: 8.293 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.01699, allocations: 0 / 0.8197 GB, free: 8.293 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.01699, allocations: 0 / 0.8197 GB, free: 8.293 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007159/0.0177, allocations: 0.5112 MB / 0.8202 GB, free: 7.738 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 2.778e-05/0.01773, allocations: 19.89 kB / 0.8203 GB, free: 7.719 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.475e-05/0.01777, allocations: 5.656 kB / 0.8203 GB, free: 7.715 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.01787, allocations: 8 kB / 0.8203 GB, free: 7.707 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.157e-05/0.01792, allocations: 7.984 kB / 0.8203 GB, free: 7.699 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.999e-05/0.01794, allocations: 8 kB / 0.8203 GB, free: 7.691 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001647/0.01811, allocations: 180.4 kB / 0.8205 GB, free: 7.516 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.21e-07/0.01811, allocations: 0 / 0.8205 GB, free: 7.516 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002966/0.0184, allocations: 41.25 kB / 0.8205 GB, free: 7.477 MB / 0.7761 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.0003117/0.01871, allocations: 117 kB / 0.8206 GB, free: 7.359 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0007034/0.01942, allocations: 0.5282 MB / 0.8211 GB, free: 6.742 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.01942, allocations: 0 / 0.8211 GB, free: 6.742 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0003184/0.01974, allocations: 258.5 kB / 0.8214 GB, free: 6.449 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003211/0.02006, allocations: 31.7 kB / 0.8214 GB, free: 6.422 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006968/0.02076, allocations: 352.7 kB / 0.8217 GB, free: 6.039 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001117/0.02087, allocations: 95.8 kB / 0.8218 GB, free: 5.926 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 7.911e-05/0.02095, allocations: 24.41 kB / 0.8219 GB, free: 5.902 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.515e-05/0.02099, allocations: 20.48 kB / 0.8219 GB, free: 5.883 MB / 0.7761 GB Notification: Performance of SimCode: time 6.81e-07/0.02099, allocations: 0.6875 kB / 0.8219 GB, free: 5.883 MB / 0.7761 GB Notification: Performance of Templates: time 0.006582/0.02757, allocations: 2.213 MB / 0.824 GB, free: 3.73 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 240] 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/jenkins/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: 8.363806267967448]