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.0009564/0.0009564, allocations: 83.59 kB / 20.45 MB, free: 4.117 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.0009537/0.0009537, allocations: 169 kB / 23.82 MB, free: 0.7461 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.9072/0.9072, allocations: 177.1 MB / 204.2 MB, free: 5.637 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.737/1.737, allocations: 359 MB / 0.6052 GB, free: 11 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.172e-06/1.172e-06, allocations: 0.9844 kB / 0.7871 GB, free: 12.5 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.475e-05/2.592e-05, allocations: 4.984 kB / 0.7871 GB, free: 12.5 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00224/0.002266, allocations: 1.681 MB / 0.7887 GB, free: 10.82 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.000774/0.00304, allocations: 0.6671 MB / 0.7894 GB, free: 10.15 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.382e-05/0.003104, allocations: 4.688 kB / 0.7894 GB, free: 10.14 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001466/0.003251, allocations: 23.72 kB / 0.7894 GB, free: 10.12 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001811/0.003432, allocations: 52.72 kB / 0.7895 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002587/0.00369, allocations: 115.7 kB / 0.7896 GB, free: 9.957 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001927/0.003883, allocations: 193.8 kB / 0.7897 GB, free: 9.77 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.003983, allocations: 25.55 kB / 0.7898 GB, free: 9.742 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001767/0.00416, allocations: 111.8 kB / 0.7899 GB, free: 9.633 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001031/0.004263, allocations: 67.84 kB / 0.7899 GB, free: 9.566 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.825e-05/0.004291, allocations: 12 kB / 0.79 GB, free: 9.555 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 6.465e-05/0.004356, allocations: 37.83 kB / 0.79 GB, free: 9.52 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 7.121e-05/0.004427, allocations: 31.91 kB / 0.79 GB, free: 9.488 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 6.129e-05/0.004488, allocations: 55.89 kB / 0.7901 GB, free: 9.434 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001921/0.00468, allocations: 159.5 kB / 0.7902 GB, free: 9.277 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.983e-06/0.004682, allocations: 0 / 0.7902 GB, free: 9.277 MB / 0.7448 GB Notification: Performance of FrontEnd: time 9.52e-07/0.004683, allocations: 0.7188 kB / 0.7902 GB, free: 9.277 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.004689, allocations: 3.984 kB / 0.7902 GB, free: 9.273 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.000529/0.005217, allocations: 0.5812 MB / 0.7908 GB, free: 8.633 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.005252, allocations: 9.688 kB / 0.7908 GB, free: 8.625 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001607/0.005413, allocations: 36.83 kB / 0.7908 GB, free: 8.59 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.005673, allocations: 181.1 kB / 0.791 GB, free: 8.387 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.005691, allocations: 12.38 kB / 0.791 GB, free: 8.375 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.732e-05/0.005718, allocations: 13.28 kB / 0.791 GB, free: 8.363 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002327/0.005951, allocations: 170.2 kB / 0.7912 GB, free: 8.176 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.005961, allocations: 1.344 kB / 0.7912 GB, free: 8.176 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.693e-05/0.005978, allocations: 8.125 kB / 0.7912 GB, free: 8.168 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.964e-06/0.005985, allocations: 0 / 0.7912 GB, free: 8.168 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001006/0.006086, allocations: 92.69 kB / 0.7913 GB, free: 8.066 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005022/0.006588, allocations: 383.6 kB / 0.7917 GB, free: 7.656 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001331/0.006721, allocations: 124.2 kB / 0.7918 GB, free: 7.512 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.985e-05/0.006821, allocations: 107 kB / 0.7919 GB, free: 7.391 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.368e-05/0.006845, allocations: 7.938 kB / 0.7919 GB, free: 7.383 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001828/0.007027, allocations: 220 kB / 0.7921 GB, free: 7.129 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=10): time 1.292e-06/0.007029, allocations: 1.125 kB / 0.7921 GB, free: 7.129 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10): time 0.000522/0.007551, allocations: 415.6 kB / 0.7925 GB, free: 6.68 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.853e-05/0.007619, allocations: 166.2 kB / 0.7927 GB, free: 6.48 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001581/0.007777, allocations: 228 kB / 0.7929 GB, free: 6.238 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.007797, allocations: 33.7 kB / 0.7929 GB, free: 6.199 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.262e-05/0.00787, allocations: 151.1 kB / 0.7931 GB, free: 6.043 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.652e-05/0.007897, allocations: 27.78 kB / 0.7931 GB, free: 6.016 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.925e-05/0.007966, allocations: 52.78 kB / 0.7931 GB, free: 5.957 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001422/0.008108, allocations: 0.5 MB / 0.7936 GB, free: 5.445 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.008212, allocations: 142.8 kB / 0.7938 GB, free: 5.281 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001392/0.008351, allocations: 223.1 kB / 0.794 GB, free: 5.008 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001923/0.008543, allocations: 283.6 kB / 0.7942 GB, free: 4.66 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.008546, allocations: 0.5 kB / 0.7942 GB, free: 4.66 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003725/0.008918, allocations: 428.8 kB / 0.7946 GB, free: 4.188 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 6.26e-05/0.008981, allocations: 123.1 kB / 0.7948 GB, free: 4.047 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.008986, allocations: 0 / 0.7948 GB, free: 4.047 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.009001, allocations: 4 kB / 0.7948 GB, free: 4.043 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.605e-05/0.009097, allocations: 19.92 kB / 0.7948 GB, free: 4.023 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.441e-06/0.009103, allocations: 0 / 0.7948 GB, free: 4.023 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.72e-05/0.00917, allocations: 19.88 kB / 0.7948 GB, free: 4.004 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.668e-05/0.009187, allocations: 8.078 kB / 0.7948 GB, free: 3.996 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.0001233/0.00931, allocations: 243.8 kB / 0.795 GB, free: 3.738 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.629e-05/0.009346, allocations: 28.69 kB / 0.7951 GB, free: 3.711 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.193e-05/0.009378, allocations: 17.47 kB / 0.7951 GB, free: 3.699 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.00938, allocations: 1.281 kB / 0.7951 GB, free: 3.699 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.009383, allocations: 0 / 0.7951 GB, free: 3.699 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.009388, allocations: 3.984 kB / 0.7951 GB, free: 3.695 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004893/0.009877, allocations: 0.586 MB / 0.7957 GB, free: 3.043 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-06/0.009878, allocations: 0.8438 kB / 0.7957 GB, free: 3.043 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.901e-05/0.009917, allocations: 11.98 kB / 0.7957 GB, free: 3.031 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.009919, allocations: 0.6562 kB / 0.7957 GB, free: 3.031 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.631e-05/0.009935, allocations: 10.81 kB / 0.7957 GB, free: 3.023 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.009936, allocations: 4 kB / 0.7957 GB, free: 3.02 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.009938, allocations: 0 / 0.7957 GB, free: 3.02 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003799/0.01032, allocations: 494.4 kB / 0.7962 GB, free: 2.492 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.321e-05/0.01033, allocations: 11.91 kB / 0.7962 GB, free: 2.48 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.747e-05/0.01036, allocations: 8 kB / 0.7962 GB, free: 2.473 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.516e-05/0.01043, allocations: 7.984 kB / 0.7962 GB, free: 2.465 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.379e-05/0.01051, allocations: 4 kB / 0.7962 GB, free: 2.461 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.01052, allocations: 14.08 kB / 0.7962 GB, free: 2.449 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 8.039e-05/0.0106, allocations: 165.1 kB / 0.7964 GB, free: 2.289 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.0106, allocations: 0 / 0.7964 GB, free: 2.289 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.00028/0.01088, allocations: 39.94 kB / 0.7964 GB, free: 2.25 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.0001973/0.01108, allocations: 121.2 kB / 0.7965 GB, free: 2.129 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003416/0.01142, allocations: 0.4898 MB / 0.797 GB, free: 1.551 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.01142, allocations: 0 / 0.797 GB, free: 1.551 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001467/0.01157, allocations: 233.8 kB / 0.7972 GB, free: 1.281 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002792/0.01185, allocations: 43.02 kB / 0.7973 GB, free: 1.246 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006562/0.01251, allocations: 338.2 kB / 0.7976 GB, free: 0.875 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.556e-05/0.01255, allocations: 71.34 kB / 0.7977 GB, free: 0.7852 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 5.041e-05/0.0126, allocations: 24.41 kB / 0.7977 GB, free: 0.7617 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.293e-05/0.01263, allocations: 13.59 kB / 0.7977 GB, free: 0.7461 MB / 0.7448 GB Notification: Performance of SimCode: time 5.71e-07/0.01263, allocations: 0 / 0.7977 GB, free: 0.7461 MB / 0.7448 GB Notification: Performance of Templates: time 0.004425/0.01706, allocations: 2.209 MB / 0.7998 GB, free: 14.59 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: 5.038895966019481]