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.001018/0.001018, allocations: 87.58 kB / 20.45 MB, free: 4.121 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.0009129/0.0009129, allocations: 161 kB / 23.82 MB, free: 0.7539 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 0.8971/0.8971, allocations: 177.1 MB / 204.2 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] 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 1.658/1.658, allocations: 359 MB / 0.6052 GB, free: 11.04 MB / 0.573 GB " [Timeout remaining time 178] 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.874e-06/1.874e-06, allocations: 0.5469 kB / 0.7871 GB, free: 12.54 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.925e-05/3.112e-05, allocations: 6.094 kB / 0.7871 GB, free: 12.53 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002662/0.002693, allocations: 1.684 MB / 0.7887 GB, free: 10.85 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001215/0.003907, allocations: 0.6681 MB / 0.7894 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.004015, allocations: 4 kB / 0.7894 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0002032/0.004218, allocations: 30.75 kB / 0.7894 GB, free: 10.15 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0002545/0.004472, allocations: 47.69 kB / 0.7895 GB, free: 10.1 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.000431/0.004903, allocations: 115.7 kB / 0.7896 GB, free: 9.988 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002668/0.00517, allocations: 191.4 kB / 0.7898 GB, free: 9.801 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001402/0.00531, allocations: 21.56 kB / 0.7898 GB, free: 9.777 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002773/0.005588, allocations: 115.8 kB / 0.7899 GB, free: 9.664 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001213/0.005709, allocations: 69.03 kB / 0.7899 GB, free: 9.598 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.333e-05/0.005742, allocations: 19.94 kB / 0.79 GB, free: 9.578 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 8.53e-05/0.005828, allocations: 27.98 kB / 0.79 GB, free: 9.551 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 9.546e-05/0.005923, allocations: 32.5 kB / 0.79 GB, free: 9.52 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 7.792e-05/0.006001, allocations: 57.02 kB / 0.7901 GB, free: 9.465 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002663/0.006267, allocations: 155.5 kB / 0.7902 GB, free: 9.312 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.00627, allocations: 0 / 0.7902 GB, free: 9.312 MB / 0.7448 GB Notification: Performance of FrontEnd: time 6.82e-07/0.006271, allocations: 0.5312 kB / 0.7902 GB, free: 9.312 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.86e-06/0.006276, allocations: 0 / 0.7902 GB, free: 9.312 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.000625/0.006901, allocations: 0.5891 MB / 0.7908 GB, free: 8.664 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.006939, allocations: 8.75 kB / 0.7908 GB, free: 8.656 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000153/0.007092, allocations: 34.22 kB / 0.7908 GB, free: 8.625 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002113/0.007303, allocations: 176.3 kB / 0.791 GB, free: 8.426 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.242e-05/0.007316, allocations: 10.12 kB / 0.791 GB, free: 8.418 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.918e-05/0.007335, allocations: 12.38 kB / 0.791 GB, free: 8.406 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002126/0.007548, allocations: 166.2 kB / 0.7912 GB, free: 8.223 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.007554, allocations: 4.188 kB / 0.7912 GB, free: 8.219 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.007567, allocations: 384 / 0.7912 GB, free: 8.219 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.007577, allocations: 9.469 kB / 0.7912 GB, free: 8.211 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.179e-05/0.007658, allocations: 99.34 kB / 0.7913 GB, free: 8.102 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004401/0.008098, allocations: 393.2 kB / 0.7917 GB, free: 7.684 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001173/0.008216, allocations: 118.5 kB / 0.7918 GB, free: 7.543 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.965e-05/0.008295, allocations: 107 kB / 0.7919 GB, free: 7.422 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.008316, allocations: 0 / 0.7919 GB, free: 7.422 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001604/0.008476, allocations: 226 kB / 0.7921 GB, free: 7.164 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=10): time 2.264e-06/0.008479, allocations: 0 / 0.7921 GB, free: 7.164 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10): time 0.0004558/0.008934, allocations: 419.8 kB / 0.7925 GB, free: 6.711 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.102e-05/0.009005, allocations: 166.2 kB / 0.7927 GB, free: 6.512 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001359/0.009141, allocations: 226.7 kB / 0.7929 GB, free: 6.27 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.009158, allocations: 29.7 kB / 0.7929 GB, free: 6.234 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.138e-05/0.009229, allocations: 155.6 kB / 0.7931 GB, free: 6.074 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.892e-05/0.009258, allocations: 31.78 kB / 0.7931 GB, free: 6.043 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.362e-05/0.009312, allocations: 48.03 kB / 0.7931 GB, free: 5.988 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000149/0.009461, allocations: 0.4962 MB / 0.7936 GB, free: 5.48 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.678e-05/0.009548, allocations: 139.3 kB / 0.7938 GB, free: 5.32 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001129/0.009661, allocations: 221.8 kB / 0.794 GB, free: 5.047 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000163/0.009823, allocations: 289.6 kB / 0.7942 GB, free: 4.695 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.009826, allocations: 0 / 0.7942 GB, free: 4.695 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003037/0.01013, allocations: 428.7 kB / 0.7946 GB, free: 4.223 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 6.058e-05/0.01019, allocations: 123.5 kB / 0.7948 GB, free: 4.078 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.0102, allocations: 0 / 0.7948 GB, free: 4.078 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.01021, allocations: 4.844 kB / 0.7948 GB, free: 4.074 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.238e-05/0.01029, allocations: 19.92 kB / 0.7948 GB, free: 4.055 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.0103, allocations: 1.906 kB / 0.7948 GB, free: 4.055 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.334e-05/0.01035, allocations: 11.95 kB / 0.7948 GB, free: 4.043 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.451e-05/0.01037, allocations: 12 kB / 0.7948 GB, free: 4.031 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.0001718/0.01054, allocations: 241.9 kB / 0.795 GB, free: 3.773 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.038e-05/0.01057, allocations: 32.55 kB / 0.7951 GB, free: 3.742 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.566e-05/0.0106, allocations: 13.47 kB / 0.7951 GB, free: 3.734 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.0106, allocations: 2.375 kB / 0.7951 GB, free: 3.734 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.0106, allocations: 0 / 0.7951 GB, free: 3.734 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.0106, allocations: 0 / 0.7951 GB, free: 3.734 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004034/0.01101, allocations: 0.586 MB / 0.7957 GB, free: 3.082 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.01101, allocations: 0 / 0.7957 GB, free: 3.082 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.245e-05/0.01104, allocations: 12 kB / 0.7957 GB, free: 3.07 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.01104, allocations: 1.906 kB / 0.7957 GB, free: 3.07 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.01106, allocations: 11.98 kB / 0.7957 GB, free: 3.059 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.01106, allocations: 80 / 0.7957 GB, free: 3.059 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.01106, allocations: 3.984 kB / 0.7957 GB, free: 3.055 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003025/0.01137, allocations: 494.4 kB / 0.7962 GB, free: 2.527 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.839e-05/0.01138, allocations: 12.41 kB / 0.7962 GB, free: 2.516 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.243e-05/0.01141, allocations: 4.5 kB / 0.7962 GB, free: 2.512 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.072e-05/0.01146, allocations: 5.844 kB / 0.7962 GB, free: 2.508 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.453e-05/0.0115, allocations: 11.98 kB / 0.7962 GB, free: 2.496 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.01152, allocations: 11.97 kB / 0.7962 GB, free: 2.484 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 7.036e-05/0.01159, allocations: 165.1 kB / 0.7964 GB, free: 2.324 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.01159, allocations: 0 / 0.7964 GB, free: 2.324 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001932/0.01178, allocations: 40.53 kB / 0.7964 GB, free: 2.285 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.0002175/0.012, allocations: 123.7 kB / 0.7965 GB, free: 2.164 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003101/0.01231, allocations: 496.2 kB / 0.797 GB, free: 1.59 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.01231, allocations: 3.625 kB / 0.797 GB, free: 1.59 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001251/0.01243, allocations: 233.8 kB / 0.7972 GB, free: 1.32 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002159/0.01265, allocations: 32.14 kB / 0.7973 GB, free: 1.289 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006959/0.01335, allocations: 350.4 kB / 0.7976 GB, free: 0.9062 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.763e-05/0.01339, allocations: 71.33 kB / 0.7977 GB, free: 0.8164 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 5.333e-05/0.01345, allocations: 21.75 kB / 0.7977 GB, free: 0.7969 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.659e-05/0.01348, allocations: 16.5 kB / 0.7977 GB, free: 0.7773 MB / 0.7448 GB Notification: Performance of SimCode: time 4.81e-07/0.01348, allocations: 1.031 kB / 0.7977 GB, free: 0.7773 MB / 0.7448 GB Notification: Performance of Templates: time 0.005144/0.01863, allocations: 2.37 MB / 0.8 GB, free: 14.46 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=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.760892058257014]