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.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.001693/0.001693, allocations: 80.41 kB / 20.23 MB, free: 4.199 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.001842/0.001842, allocations: 161.7 kB / 23.55 MB, free: 0.8906 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.462/1.462, 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 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.653/2.653, allocations: 359 MB / 0.6048 GB, free: 10.96 MB / 0.573 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_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 1.253e-06/1.253e-06, allocations: 1.094 kB / 0.7864 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.254e-05/2.38e-05, allocations: 2.312 kB / 0.7864 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003062/0.003086, allocations: 1.636 MB / 0.788 GB, free: 11.19 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001265/0.004351, allocations: 0.6494 MB / 0.7886 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.607e-05/0.004417, allocations: 3.938 kB / 0.7886 GB, free: 10.53 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001573/0.004574, allocations: 23.8 kB / 0.7886 GB, free: 10.51 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0002213/0.004795, allocations: 44.56 kB / 0.7887 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004286/0.005224, allocations: 116.3 kB / 0.7888 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002975/0.005521, allocations: 195.5 kB / 0.789 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.005623, allocations: 19.02 kB / 0.789 GB, free: 10.14 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002632/0.005886, allocations: 119.7 kB / 0.7891 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001379/0.006024, allocations: 67.84 kB / 0.7892 GB, free: 9.957 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 4.065e-05/0.006065, allocations: 17.28 kB / 0.7892 GB, free: 9.941 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 8.807e-05/0.006153, allocations: 35.97 kB / 0.7892 GB, free: 9.906 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 8.304e-05/0.006236, allocations: 31.84 kB / 0.7892 GB, free: 9.875 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 9.279e-05/0.006329, allocations: 52.97 kB / 0.7893 GB, free: 9.824 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.000318/0.006647, allocations: 203.3 kB / 0.7895 GB, free: 9.625 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.00665, allocations: 0 / 0.7895 GB, free: 9.625 MB / 0.7448 GB Notification: Performance of FrontEnd: time 7.72e-07/0.006651, allocations: 1.344 kB / 0.7895 GB, free: 9.625 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.498e-06/0.006655, allocations: 0 / 0.7895 GB, free: 9.625 MB / 0.7448 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.0007578/0.007413, allocations: 496.4 kB / 0.79 GB, free: 9.086 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.007447, allocations: 17.62 kB / 0.79 GB, free: 9.07 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002038/0.00765, allocations: 32.83 kB / 0.79 GB, free: 9.039 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003484/0.007999, allocations: 175.3 kB / 0.7902 GB, free: 8.844 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.008024, allocations: 12.38 kB / 0.7902 GB, free: 8.832 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.12e-05/0.008055, allocations: 12.38 kB / 0.7902 GB, free: 8.82 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003392/0.008394, allocations: 173.5 kB / 0.7904 GB, free: 8.633 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.008403, allocations: 1.75 kB / 0.7904 GB, free: 8.633 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.786e-05/0.008431, allocations: 12.12 kB / 0.7904 GB, free: 8.621 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.008435, allocations: 0 / 0.7904 GB, free: 8.621 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002773/0.008712, allocations: 130 kB / 0.7905 GB, free: 8.484 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006571/0.009369, allocations: 340.2 kB / 0.7908 GB, free: 8.121 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002649/0.009634, allocations: 137.9 kB / 0.791 GB, free: 7.965 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002133/0.009848, allocations: 124.9 kB / 0.7911 GB, free: 7.828 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.187e-05/0.009879, allocations: 11.94 kB / 0.7911 GB, free: 7.816 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003514/0.01023, allocations: 238.7 kB / 0.7913 GB, free: 7.547 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.01023, allocations: 1.375 kB / 0.7913 GB, free: 7.547 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10): time 0.00105/0.01128, allocations: 484.7 kB / 0.7918 GB, free: 7.031 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001282/0.01141, allocations: 166.2 kB / 0.7919 GB, free: 6.832 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002117/0.01162, allocations: 179.6 kB / 0.7921 GB, free: 6.645 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.93e-05/0.01165, allocations: 27.08 kB / 0.7921 GB, free: 6.613 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 9.371e-05/0.01174, allocations: 108.4 kB / 0.7922 GB, free: 6.5 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.744e-05/0.01178, allocations: 31.92 kB / 0.7923 GB, free: 6.469 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.425e-05/0.01187, allocations: 45.7 kB / 0.7923 GB, free: 6.418 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001739/0.01204, allocations: 324.6 kB / 0.7926 GB, free: 6.094 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002274/0.01227, allocations: 166.7 kB / 0.7928 GB, free: 5.906 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002919/0.01256, allocations: 213.6 kB / 0.793 GB, free: 5.648 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004154/0.01297, allocations: 313 kB / 0.7933 GB, free: 5.285 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.01298, allocations: 0 / 0.7933 GB, free: 5.285 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0007341/0.01371, allocations: 476.8 kB / 0.7937 GB, free: 4.766 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001008/0.01381, allocations: 119.4 kB / 0.7939 GB, free: 4.625 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.01382, allocations: 4 kB / 0.7939 GB, free: 4.621 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.01384, allocations: 0.5312 kB / 0.7939 GB, free: 4.621 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.01395, allocations: 20.7 kB / 0.7939 GB, free: 4.602 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.01396, allocations: 4.469 kB / 0.7939 GB, free: 4.598 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001098/0.01407, allocations: 19.94 kB / 0.7939 GB, free: 4.578 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.465e-05/0.01409, allocations: 13.52 kB / 0.7939 GB, free: 4.566 MB / 0.7448 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.0001934/0.01428, allocations: 189.2 kB / 0.7941 GB, free: 4.359 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.532e-05/0.01434, allocations: 27.84 kB / 0.7941 GB, free: 4.332 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.258e-05/0.01439, allocations: 22.33 kB / 0.7941 GB, free: 4.312 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.0144, allocations: 4 kB / 0.7941 GB, free: 4.309 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.0144, allocations: 0.875 kB / 0.7941 GB, free: 4.309 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.0144, allocations: 3.938 kB / 0.7941 GB, free: 4.305 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008538/0.01526, allocations: 0.5724 MB / 0.7947 GB, free: 3.672 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.01526, allocations: 0 / 0.7947 GB, free: 3.672 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.229e-05/0.01534, allocations: 20.56 kB / 0.7947 GB, free: 3.652 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.01534, allocations: 0 / 0.7947 GB, free: 3.652 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.28e-05/0.01537, allocations: 8.547 kB / 0.7947 GB, free: 3.645 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.01537, allocations: 1.875 kB / 0.7947 GB, free: 3.645 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.01537, allocations: 0 / 0.7947 GB, free: 3.645 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007256/0.01609, allocations: 485.9 kB / 0.7952 GB, free: 3.129 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.986e-05/0.01611, allocations: 11.91 kB / 0.7952 GB, free: 3.117 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.517e-05/0.01615, allocations: 4.875 kB / 0.7952 GB, free: 3.113 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.01627, allocations: 8 kB / 0.7952 GB, free: 3.105 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.419e-05/0.01633, allocations: 15.44 kB / 0.7952 GB, free: 3.094 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.242e-05/0.01636, allocations: 11.98 kB / 0.7952 GB, free: 3.082 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001279/0.01649, allocations: 133.7 kB / 0.7954 GB, free: 2.953 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.01649, allocations: 0 / 0.7954 GB, free: 2.953 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003058/0.01679, allocations: 35.94 kB / 0.7954 GB, free: 2.918 MB / 0.7448 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.0002645/0.01706, allocations: 135.2 kB / 0.7955 GB, free: 2.789 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0007249/0.01778, allocations: 0.5215 MB / 0.796 GB, free: 2.184 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.01778, allocations: 0 / 0.796 GB, free: 2.184 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0003202/0.0181, allocations: 239 kB / 0.7963 GB, free: 1.914 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003586/0.01846, allocations: 31.86 kB / 0.7963 GB, free: 1.883 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007247/0.01919, allocations: 352.2 kB / 0.7966 GB, free: 1.5 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001225/0.01931, allocations: 98.64 kB / 0.7967 GB, free: 1.383 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 7.265e-05/0.01938, allocations: 20.97 kB / 0.7968 GB, free: 1.363 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.229e-05/0.01942, allocations: 19.16 kB / 0.7968 GB, free: 1.348 MB / 0.7448 GB Notification: Performance of SimCode: time 5.71e-07/0.01942, allocations: 4 kB / 0.7968 GB, free: 1.344 MB / 0.7448 GB Notification: Performance of Templates: time 0.006217/0.02564, allocations: 2.193 MB / 0.7989 GB, free: 15.21 MB / 0.7605 GB " [Timeout remaining time 300] 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/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: 7.345169472042471]