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.002551/0.002551, allocations: 79.7 kB / 20.23 MB, free: 4.191 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.003093/0.003093, allocations: 157.3 kB / 23.55 MB, free: 0.8789 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.56/1.56, allocations: 177.1 MB / 203.9 MB, free: 5.613 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.876/2.876, allocations: 359 MB / 0.6048 GB, free: 10.96 MB / 0.573 GB " [Timeout remaining time 176] 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.884e-06/1.884e-06, allocations: 0 / 0.7864 GB, free: 12.83 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.557e-05/2.745e-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.003519/0.003546, allocations: 1.653 MB / 0.788 GB, free: 11.18 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001323/0.004869, allocations: 0.665 MB / 0.7886 GB, free: 10.51 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.921e-05/0.004939, allocations: 3.938 kB / 0.7886 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001526/0.005091, allocations: 19.86 kB / 0.7887 GB, free: 10.48 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0002225/0.005314, allocations: 48.48 kB / 0.7887 GB, free: 10.44 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004028/0.005716, allocations: 116.5 kB / 0.7888 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0003161/0.006033, allocations: 195.6 kB / 0.789 GB, free: 10.13 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 9.891e-05/0.006131, allocations: 20.03 kB / 0.789 GB, free: 10.11 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002629/0.006394, allocations: 119.8 kB / 0.7891 GB, free: 9.996 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001386/0.006533, allocations: 67.84 kB / 0.7892 GB, free: 9.93 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 4.725e-05/0.00658, allocations: 16 kB / 0.7892 GB, free: 9.914 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 8.873e-05/0.006669, allocations: 35.92 kB / 0.7892 GB, free: 9.879 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.006775, allocations: 37.59 kB / 0.7893 GB, free: 9.844 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 9.21e-05/0.006867, allocations: 47.91 kB / 0.7893 GB, free: 9.797 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0003086/0.007176, allocations: 195.4 kB / 0.7895 GB, free: 9.605 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.007179, allocations: 0 / 0.7895 GB, free: 9.605 MB / 0.7448 GB Notification: Performance of FrontEnd: time 9.62e-07/0.00718, allocations: 0 / 0.7895 GB, free: 9.605 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.007185, allocations: 0.5938 kB / 0.7895 GB, free: 9.605 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.0008377/0.008023, allocations: 0.5888 MB / 0.7901 GB, free: 8.957 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.008056, allocations: 11.97 kB / 0.7901 GB, free: 8.945 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001981/0.008254, allocations: 38.48 kB / 0.7901 GB, free: 8.91 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003408/0.008595, allocations: 180.5 kB / 0.7903 GB, free: 8.707 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.00862, allocations: 12.97 kB / 0.7903 GB, free: 8.695 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.08e-05/0.008651, allocations: 12.38 kB / 0.7903 GB, free: 8.684 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003275/0.008978, allocations: 166.2 kB / 0.7905 GB, free: 8.504 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.008987, allocations: 1.344 kB / 0.7905 GB, free: 8.504 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.06e-05/0.009008, allocations: 8.125 kB / 0.7905 GB, free: 8.496 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.416e-06/0.009011, allocations: 4 kB / 0.7905 GB, free: 8.492 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002239/0.009235, allocations: 112.7 kB / 0.7906 GB, free: 8.371 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007181/0.009953, allocations: 407.5 kB / 0.791 GB, free: 7.938 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002572/0.01021, allocations: 144.2 kB / 0.7911 GB, free: 7.773 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000204/0.01041, allocations: 127 kB / 0.7913 GB, free: 7.633 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.855e-05/0.01044, allocations: 7.938 kB / 0.7913 GB, free: 7.625 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003485/0.01079, allocations: 241 kB / 0.7915 GB, free: 7.352 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.01079, allocations: 0 / 0.7915 GB, free: 7.352 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10): time 0.0009163/0.01171, allocations: 469.3 kB / 0.7919 GB, free: 6.852 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001298/0.01184, allocations: 166.2 kB / 0.7921 GB, free: 6.652 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002566/0.0121, allocations: 250.6 kB / 0.7923 GB, free: 6.387 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.364e-05/0.01213, allocations: 33.7 kB / 0.7924 GB, free: 6.348 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.01225, allocations: 157.8 kB / 0.7925 GB, free: 6.188 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.931e-05/0.01229, allocations: 39.92 kB / 0.7926 GB, free: 6.148 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.905e-05/0.01238, allocations: 43.36 kB / 0.7926 GB, free: 6.098 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002786/0.01266, allocations: 0.5001 MB / 0.7931 GB, free: 5.586 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002137/0.01287, allocations: 154.8 kB / 0.7932 GB, free: 5.41 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000287/0.01316, allocations: 236.3 kB / 0.7935 GB, free: 5.121 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004138/0.01357, allocations: 318.5 kB / 0.7938 GB, free: 4.742 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.01357, allocations: 6.531 kB / 0.7938 GB, free: 4.738 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006741/0.01425, allocations: 454.9 kB / 0.7942 GB, free: 4.238 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001069/0.01436, allocations: 122.8 kB / 0.7943 GB, free: 4.094 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.01436, allocations: 0.5312 kB / 0.7943 GB, free: 4.094 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.01438, allocations: 4.719 kB / 0.7943 GB, free: 4.09 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.01448, allocations: 15.98 kB / 0.7943 GB, free: 4.074 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.01449, allocations: 0.8438 kB / 0.7943 GB, free: 4.074 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.522e-05/0.01458, allocations: 15.94 kB / 0.7944 GB, free: 4.059 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.858e-05/0.01461, allocations: 12.92 kB / 0.7944 GB, free: 4.047 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.0004236/0.01504, allocations: 245.1 kB / 0.7946 GB, free: 3.785 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.725e-05/0.01509, allocations: 27.84 kB / 0.7946 GB, free: 3.758 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.256e-05/0.01513, allocations: 9.469 kB / 0.7946 GB, free: 3.754 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.01513, allocations: 4 kB / 0.7946 GB, free: 3.75 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.01513, allocations: 0.8438 kB / 0.7946 GB, free: 3.75 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.01514, allocations: 3.984 kB / 0.7946 GB, free: 3.746 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008987/0.01604, allocations: 0.6379 MB / 0.7953 GB, free: 3.043 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.01604, allocations: 0 / 0.7953 GB, free: 3.043 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.021e-05/0.0161, allocations: 9.312 kB / 0.7953 GB, free: 3.035 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.0161, allocations: 0 / 0.7953 GB, free: 3.035 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.565e-05/0.01613, allocations: 11.98 kB / 0.7953 GB, free: 3.023 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.01613, allocations: 0 / 0.7953 GB, free: 3.023 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.01613, allocations: 1.125 kB / 0.7953 GB, free: 3.023 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007354/0.01686, allocations: 0.5219 MB / 0.7958 GB, free: 2.457 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.279e-05/0.01689, allocations: 13.03 kB / 0.7958 GB, free: 2.445 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.457e-05/0.01692, allocations: 7.938 kB / 0.7958 GB, free: 2.438 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.01703, allocations: 4 kB / 0.7958 GB, free: 2.434 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.082e-05/0.01708, allocations: 13.27 kB / 0.7958 GB, free: 2.422 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.794e-05/0.0171, allocations: 4 kB / 0.7958 GB, free: 2.418 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001543/0.01725, allocations: 185.6 kB / 0.796 GB, free: 2.238 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.01725, allocations: 1.875 kB / 0.796 GB, free: 2.238 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003094/0.01756, allocations: 43.88 kB / 0.7961 GB, free: 2.195 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.0002966/0.01786, allocations: 128.5 kB / 0.7962 GB, free: 2.07 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0006977/0.01856, allocations: 0.5206 MB / 0.7967 GB, free: 1.461 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.01856, allocations: 4.719 kB / 0.7967 GB, free: 1.457 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0003171/0.01887, allocations: 257.8 kB / 0.7969 GB, free: 1.164 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003242/0.0192, allocations: 37.94 kB / 0.797 GB, free: 1.133 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007072/0.01991, allocations: 353.3 kB / 0.7973 GB, free: 0.7461 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001077/0.02001, allocations: 89.31 kB / 0.7974 GB, free: 0.6367 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 6.681e-05/0.02008, allocations: 22.72 kB / 0.7974 GB, free: 0.6172 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.477e-05/0.02012, allocations: 20.48 kB / 0.7974 GB, free: 0.5977 MB / 0.7448 GB Notification: Performance of SimCode: time 5.91e-07/0.02013, allocations: 0 / 0.7974 GB, free: 0.5977 MB / 0.7448 GB Notification: Performance of Templates: time 0.006982/0.02711, allocations: 2.207 MB / 0.7996 GB, free: 14.44 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","/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: 8.1347077639075]