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.0007945/0.0007945, allocations: 71.75 kB / 20.97 MB, free: 3.582 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.0008827/0.0008827, allocations: 169 kB / 24.28 MB, free: 280 kB / 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.032/1.032, allocations: 177.1 MB / 204.6 MB, free: 5.598 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.743/1.743, allocations: 359 MB / 0.6055 GB, free: 11.02 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.734e-06/1.734e-06, allocations: 0 / 0.7871 GB, free: 12.85 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.523e-05/2.696e-05, allocations: 5.125 kB / 0.7871 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002235/0.002262, allocations: 1.683 MB / 0.7887 GB, free: 11.16 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0008046/0.003066, allocations: 0.6601 MB / 0.7894 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.872e-05/0.003145, allocations: 4 kB / 0.7894 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001551/0.0033, allocations: 24.92 kB / 0.7894 GB, free: 10.47 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001899/0.00349, allocations: 47.69 kB / 0.7894 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003102/0.0038, allocations: 124.3 kB / 0.7896 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002155/0.004016, allocations: 188.9 kB / 0.7897 GB, free: 10.12 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.004127, allocations: 17.58 kB / 0.7898 GB, free: 10.1 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001988/0.004326, allocations: 111.8 kB / 0.7899 GB, free: 9.992 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 9.675e-05/0.004423, allocations: 80.77 kB / 0.7899 GB, free: 9.914 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.64e-05/0.004449, allocations: 12 kB / 0.79 GB, free: 9.902 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 6.631e-05/0.004515, allocations: 31.98 kB / 0.79 GB, free: 9.871 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 7.672e-05/0.004592, allocations: 32.81 kB / 0.79 GB, free: 9.84 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 6.478e-05/0.004657, allocations: 55.89 kB / 0.7901 GB, free: 9.785 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002042/0.004861, allocations: 156.5 kB / 0.7902 GB, free: 9.633 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.004864, allocations: 0 / 0.7902 GB, free: 9.633 MB / 0.7448 GB Notification: Performance of FrontEnd: time 9.82e-07/0.004865, allocations: 0 / 0.7902 GB, free: 9.633 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.00487, allocations: 0.5 kB / 0.7902 GB, free: 9.633 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.0005361/0.005406, allocations: 0.5858 MB / 0.7908 GB, free: 8.988 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.005443, allocations: 12.03 kB / 0.7908 GB, free: 8.977 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001473/0.00559, allocations: 32.83 kB / 0.7908 GB, free: 8.945 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000235/0.005825, allocations: 190 kB / 0.791 GB, free: 8.734 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.005841, allocations: 8.375 kB / 0.791 GB, free: 8.727 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.903e-05/0.005861, allocations: 13.62 kB / 0.791 GB, free: 8.715 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002459/0.006106, allocations: 166.2 kB / 0.7912 GB, free: 8.531 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.006114, allocations: 192 / 0.7912 GB, free: 8.531 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.006128, allocations: 11.12 kB / 0.7912 GB, free: 8.523 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.00614, allocations: 0 / 0.7912 GB, free: 8.523 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.212e-05/0.006222, allocations: 95.31 kB / 0.7913 GB, free: 8.418 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004262/0.006648, allocations: 387.6 kB / 0.7917 GB, free: 8.004 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001162/0.006765, allocations: 122.5 kB / 0.7918 GB, free: 7.859 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.501e-05/0.00685, allocations: 107 kB / 0.7919 GB, free: 7.738 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.00687, allocations: 4.656 kB / 0.7919 GB, free: 7.734 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001522/0.007023, allocations: 215.8 kB / 0.7921 GB, free: 7.484 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.007024, allocations: 1.656 kB / 0.7921 GB, free: 7.484 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10): time 0.0004408/0.007465, allocations: 419.8 kB / 0.7925 GB, free: 7.031 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.089e-05/0.007526, allocations: 166.2 kB / 0.7927 GB, free: 6.832 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.007661, allocations: 230.7 kB / 0.7929 GB, free: 6.586 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.007678, allocations: 34.73 kB / 0.7929 GB, free: 6.547 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.385e-05/0.007742, allocations: 159.1 kB / 0.7931 GB, free: 6.383 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.007764, allocations: 27.78 kB / 0.7931 GB, free: 6.355 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.146e-05/0.007816, allocations: 45.11 kB / 0.7931 GB, free: 6.305 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.007921, allocations: 0.4962 MB / 0.7936 GB, free: 5.797 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.511e-05/0.008006, allocations: 142.7 kB / 0.7938 GB, free: 5.633 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001111/0.008117, allocations: 208.3 kB / 0.7939 GB, free: 5.371 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001675/0.008285, allocations: 298.3 kB / 0.7942 GB, free: 5.012 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.008287, allocations: 0 / 0.7942 GB, free: 5.012 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002965/0.008584, allocations: 425.1 kB / 0.7946 GB, free: 4.543 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 5.265e-05/0.008636, allocations: 123.6 kB / 0.7948 GB, free: 4.398 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.008642, allocations: 4 kB / 0.7948 GB, free: 4.395 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.008656, allocations: 0 / 0.7948 GB, free: 4.395 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.117e-05/0.008738, allocations: 16.52 kB / 0.7948 GB, free: 4.379 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.008745, allocations: 4.656 kB / 0.7948 GB, free: 4.375 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.242e-05/0.008797, allocations: 19.89 kB / 0.7948 GB, free: 4.355 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.451e-05/0.008811, allocations: 12.59 kB / 0.7948 GB, free: 4.344 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.0001095/0.008921, allocations: 239.2 kB / 0.795 GB, free: 4.09 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.957e-05/0.008951, allocations: 27.84 kB / 0.7951 GB, free: 4.062 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.428e-05/0.008975, allocations: 9.469 kB / 0.7951 GB, free: 4.059 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.008977, allocations: 4.531 kB / 0.7951 GB, free: 4.055 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.008981, allocations: 1.375 kB / 0.7951 GB, free: 4.055 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.008984, allocations: 0 / 0.7951 GB, free: 4.055 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004223/0.009406, allocations: 0.5938 MB / 0.7957 GB, free: 3.395 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.009408, allocations: 0 / 0.7957 GB, free: 3.395 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.779e-05/0.009446, allocations: 13.14 kB / 0.7957 GB, free: 3.383 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.009448, allocations: 0 / 0.7957 GB, free: 3.383 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.009461, allocations: 8 kB / 0.7957 GB, free: 3.375 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.009462, allocations: 0.8125 kB / 0.7957 GB, free: 3.375 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.009464, allocations: 0 / 0.7957 GB, free: 3.375 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003064/0.009771, allocations: 495.3 kB / 0.7962 GB, free: 2.848 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.202e-05/0.009783, allocations: 11.91 kB / 0.7962 GB, free: 2.836 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.258e-05/0.009805, allocations: 5.344 kB / 0.7962 GB, free: 2.832 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.299e-05/0.009858, allocations: 8 kB / 0.7962 GB, free: 2.824 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.183e-05/0.0099, allocations: 11.98 kB / 0.7962 GB, free: 2.812 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.146e-05/0.009911, allocations: 7.984 kB / 0.7962 GB, free: 2.805 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.864e-05/0.00998, allocations: 165.9 kB / 0.7964 GB, free: 2.645 MB / 0.7448 GB Notification: Performance of sort global known variables: time 8e-08/0.00998, allocations: 0 / 0.7964 GB, free: 2.645 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.000203/0.01018, allocations: 42.03 kB / 0.7964 GB, free: 2.605 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.0002116/0.01039, allocations: 134.7 kB / 0.7965 GB, free: 2.473 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003047/0.0107, allocations: 494.8 kB / 0.797 GB, free: 1.902 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.0107, allocations: 0 / 0.797 GB, free: 1.902 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.01082, allocations: 237.8 kB / 0.7972 GB, free: 1.629 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000226/0.01105, allocations: 23.92 kB / 0.7972 GB, free: 1.605 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000635/0.01168, allocations: 349.9 kB / 0.7976 GB, free: 1.223 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.078e-05/0.01172, allocations: 68.5 kB / 0.7976 GB, free: 1.137 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.674e-05/0.01177, allocations: 20.41 kB / 0.7977 GB, free: 1.117 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.3e-05/0.0118, allocations: 17.53 kB / 0.7977 GB, free: 1.098 MB / 0.7448 GB Notification: Performance of SimCode: time 7.01e-07/0.0118, allocations: 0 / 0.7977 GB, free: 1.098 MB / 0.7448 GB Notification: Performance of Templates: time 0.00412/0.01592, allocations: 2.217 MB / 0.7998 GB, free: 14.94 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.065113234100863]