Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 3.794/3.794, allocations: 251.1 MB / 266.7 MB, free: 11.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002364/0.002364, allocations: 184.2 kB / 326.2 MB, free: 2.84 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.824/3.824, allocations: 205.4 MB / 0.5772 GB, free: 20.77 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001393/0.001393, allocations: 90.84 kB / 0.6817 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0007654/0.0007657, allocations: 11.34 kB / 0.7957 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5018/0.5026, allocations: 106.3 MB / 0.8995 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3779/0.8806, allocations: 133.7 MB / 1.03 GB, free: 11.66 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000509/0.8812, allocations: 83.95 kB / 1.03 GB, free: 11.58 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03616/0.9174, allocations: 5.043 MB / 1.035 GB, free: 6.504 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.497e-06/0.9174, allocations: 4 kB / 1.035 GB, free: 6.5 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.159e-05/0.9175, allocations: 0 / 1.035 GB, free: 6.5 MB / 0.6823 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.001251/0.9188, allocations: 0.5407 MB / 1.036 GB, free: 5.883 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 6.169e-05/0.9188, allocations: 8.031 kB / 1.036 GB, free: 5.875 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001463/0.919, allocations: 16.84 kB / 1.036 GB, free: 5.859 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006067/0.9196, allocations: 232.2 kB / 1.036 GB, free: 5.594 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.257e-05/0.9197, allocations: 8.375 kB / 1.036 GB, free: 5.586 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.083e-05/0.9198, allocations: 16.38 kB / 1.036 GB, free: 5.57 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006219/0.9204, allocations: 126 kB / 1.036 GB, free: 5.441 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.9205, allocations: 3.938 kB / 1.036 GB, free: 5.438 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.888e-05/0.9205, allocations: 4 kB / 1.036 GB, free: 5.434 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.9205, allocations: 0 / 1.036 GB, free: 5.434 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005358/0.9211, allocations: 75.95 kB / 1.036 GB, free: 5.359 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001545/0.9227, allocations: 424.6 kB / 1.036 GB, free: 4.895 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00052/0.9233, allocations: 90.53 kB / 1.037 GB, free: 4.797 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004265/0.9237, allocations: 84.8 kB / 1.037 GB, free: 4.711 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 4.135e-05/0.9238, allocations: 3.938 kB / 1.037 GB, free: 4.707 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000631/0.9244, allocations: 186.8 kB / 1.037 GB, free: 4.5 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=10): time 5.781e-06/0.9245, allocations: 0 / 1.037 GB, free: 4.5 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10): time 0.001899/0.9264, allocations: 368.9 kB / 1.037 GB, free: 4.121 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000185/0.9266, allocations: 170.1 kB / 1.037 GB, free: 3.918 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003792/0.927, allocations: 175.2 kB / 1.037 GB, free: 3.734 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 7.509e-05/0.9271, allocations: 29.7 kB / 1.038 GB, free: 3.699 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001399/0.9273, allocations: 108.3 kB / 1.038 GB, free: 3.586 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 7.342e-05/0.9274, allocations: 23.7 kB / 1.038 GB, free: 3.562 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.844e-05/0.9274, allocations: 8 kB / 1.038 GB, free: 3.555 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002083/0.9277, allocations: 326.8 kB / 1.038 GB, free: 3.227 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000402/0.9281, allocations: 59.95 kB / 1.038 GB, free: 3.168 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004291/0.9285, allocations: 106.8 kB / 1.038 GB, free: 3.039 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000529/0.9291, allocations: 178.7 kB / 1.038 GB, free: 2.84 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.9291, allocations: 0 / 1.038 GB, free: 2.84 MB / 0.6823 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.001456/0.9306, allocations: 356.1 kB / 1.039 GB, free: 2.461 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.000162/0.9308, allocations: 122.8 kB / 1.039 GB, free: 2.316 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.9308, allocations: 0 / 1.039 GB, free: 2.316 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.036e-05/0.9309, allocations: 4 kB / 1.039 GB, free: 2.312 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002623/0.9312, allocations: 28.17 kB / 1.039 GB, free: 2.285 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.9312, allocations: 288 / 1.039 GB, free: 2.285 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002896/0.9315, allocations: 19.94 kB / 1.039 GB, free: 2.266 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.913e-05/0.9316, allocations: 8 kB / 1.039 GB, free: 2.258 MB / 0.6823 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 ($PRE.combiTimeTableWriter.str,combiTimeTableWriter.str,$PRE.csvWriter.str,csvWriter.str,$whenCondition2,combiTimeTableWriter.sampleTrigger,$whenCondition1,csvWriter.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000395/0.932, allocations: 202.1 kB / 1.039 GB, free: 2.039 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.411e-05/0.9321, allocations: 19.81 kB / 1.039 GB, free: 2.02 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.805e-05/0.9322, allocations: 17.41 kB / 1.039 GB, free: 2.004 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.9322, allocations: 0 / 1.039 GB, free: 2.004 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.9322, allocations: 4 kB / 1.039 GB, free: 2 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.9322, allocations: 0 / 1.039 GB, free: 2 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001889/0.9341, allocations: 0.5953 MB / 1.04 GB, free: 1.336 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.9342, allocations: 0 / 1.04 GB, free: 1.336 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.9344, allocations: 19.98 kB / 1.04 GB, free: 1.316 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.438e-06/0.9345, allocations: 4 kB / 1.04 GB, free: 1.312 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.558e-05/0.9345, allocations: 4 kB / 1.04 GB, free: 1.309 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.9345, allocations: 160 / 1.04 GB, free: 1.309 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/0.9346, allocations: 3.984 kB / 1.04 GB, free: 1.305 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001488/0.9361, allocations: 422.5 kB / 1.04 GB, free: 0.8633 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001225/0.9362, allocations: 89.02 kB / 1.04 GB, free: 0.7578 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.938e-05/0.9363, allocations: 4 kB / 1.04 GB, free: 0.7539 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002962/0.9366, allocations: 11.98 kB / 1.04 GB, free: 0.7422 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.64e-05/0.9368, allocations: 8 kB / 1.04 GB, free: 0.7344 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.188e-05/0.9368, allocations: 15.92 kB / 1.04 GB, free: 0.7188 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0002552/0.9371, allocations: 128.3 kB / 1.04 GB, free: 0.5938 MB / 0.6823 GB Notification: Performance of sort global known variables: time 7.42e-07/0.9371, allocations: 0 / 1.04 GB, free: 0.5938 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0008271/0.938, allocations: 39.91 kB / 1.04 GB, free: 0.5547 MB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005353/0.9385, allocations: 134.3 kB / 1.04 GB, free: 428 kB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.00151/0.9401, allocations: 369.4 kB / 1.041 GB, free: 8 kB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 7.955e-06/0.9402, allocations: 0 / 1.041 GB, free: 8 kB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0007634/0.9409, allocations: 206.8 kB / 1.041 GB, free: 15.78 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008989/0.9419, allocations: 21.86 kB / 1.041 GB, free: 15.76 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00182/0.9438, allocations: 314.4 kB / 1.041 GB, free: 15.43 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006223/0.9445, allocations: 0.7121 MB / 1.042 GB, free: 14.69 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002397/0.9447, allocations: 24.52 kB / 1.042 GB, free: 14.66 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.725e-05/0.9448, allocations: 15.44 kB / 1.042 GB, free: 14.65 MB / 0.698 GB Notification: Performance of SimCode: time 1.573e-06/0.9449, allocations: 4 kB / 1.042 GB, free: 14.64 MB / 0.698 GB Notification: Performance of Templates: time 0.01338/0.9583, allocations: 1.899 MB / 1.044 GB, free: 12.77 MB / 0.698 GB make -j1 -f Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)