Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.761/0.761, allocations: 140.1 MB / 156 MB, free: 5.191 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001035/0.001035, allocations: 170.2 kB / 188.5 MB, free: 15.84 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.379/1.379, allocations: 205.4 MB / 426.3 MB, free: 8.48 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008413/0.0008413, allocations: 94.34 kB / 0.4945 GB, free: 8.426 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001515/0.001515, allocations: 268.2 kB / 0.5729 GB, free: 66.23 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005183/0.0005185, allocations: 16 kB / 0.662 GB, free: 6.82 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3397/0.3403, allocations: 79.3 MB / 0.7395 GB, free: 46.37 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1255/0.4659, allocations: 109.3 MB / 0.8462 GB, free: 0.9062 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/0.4661, allocations: 87.89 kB / 0.8463 GB, free: 0.8203 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.0134/0.4796, allocations: 5.041 MB / 0.8512 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.874e-06/0.4796, allocations: 0 / 0.8512 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.338e-06/0.4796, allocations: 0 / 0.8512 GB, free: 11.75 MB / 0.5261 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.0005597/0.4802, allocations: 0.5368 MB / 0.8518 GB, free: 11.14 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.4802, allocations: 8.031 kB / 0.8518 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.464e-05/0.4803, allocations: 20.75 kB / 0.8518 GB, free: 11.11 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002607/0.4805, allocations: 232.2 kB / 0.852 GB, free: 10.85 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.4806, allocations: 12.38 kB / 0.852 GB, free: 10.84 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.905e-05/0.4806, allocations: 12.38 kB / 0.852 GB, free: 10.82 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002547/0.4809, allocations: 114.2 kB / 0.8521 GB, free: 10.71 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.4809, allocations: 3.938 kB / 0.8521 GB, free: 10.7 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.628e-05/0.4809, allocations: 4 kB / 0.8521 GB, free: 10.7 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.4809, allocations: 0 / 0.8521 GB, free: 10.7 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002055/0.4811, allocations: 87.88 kB / 0.8522 GB, free: 10.61 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006164/0.4818, allocations: 424.5 kB / 0.8526 GB, free: 10.15 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002063/0.482, allocations: 94.56 kB / 0.8527 GB, free: 10.05 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001637/0.4822, allocations: 80.81 kB / 0.8528 GB, free: 9.965 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.238e-05/0.4822, allocations: 0 / 0.8528 GB, free: 9.965 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002508/0.4824, allocations: 190.7 kB / 0.853 GB, free: 9.754 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=10): time 1.482e-06/0.4825, allocations: 0 / 0.853 GB, free: 9.754 MB / 0.5261 GB Notification: Performance of matching and sorting (n=10): time 0.0006795/0.4831, allocations: 373.1 kB / 0.8533 GB, free: 9.371 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.829e-05/0.4832, allocations: 162.2 kB / 0.8535 GB, free: 9.176 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001613/0.4834, allocations: 174.6 kB / 0.8537 GB, free: 8.992 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/0.4834, allocations: 33.64 kB / 0.8537 GB, free: 8.953 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 6.231e-05/0.4835, allocations: 108.4 kB / 0.8538 GB, free: 8.84 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.609e-05/0.4836, allocations: 27.61 kB / 0.8538 GB, free: 8.812 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.043e-05/0.4836, allocations: 4 kB / 0.8538 GB, free: 8.809 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001138/0.4837, allocations: 334.8 kB / 0.8541 GB, free: 8.473 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001305/0.4838, allocations: 51.97 kB / 0.8542 GB, free: 8.422 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.484, allocations: 112.6 kB / 0.8543 GB, free: 8.289 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003181/0.4843, allocations: 313 kB / 0.8546 GB, free: 7.922 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.4843, allocations: 4 kB / 0.8546 GB, free: 7.918 MB / 0.5261 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005108/0.4849, allocations: 360.1 kB / 0.8549 GB, free: 7.535 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.346e-05/0.4849, allocations: 114.8 kB / 0.8551 GB, free: 7.398 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.485, allocations: 4 kB / 0.8551 GB, free: 7.395 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.485, allocations: 0 / 0.8551 GB, free: 7.395 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/0.4851, allocations: 23.92 kB / 0.8551 GB, free: 7.371 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.525e-06/0.4851, allocations: 4 kB / 0.8551 GB, free: 7.367 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.732e-05/0.4852, allocations: 24.09 kB / 0.8551 GB, free: 7.344 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.104e-05/0.4852, allocations: 11.98 kB / 0.8551 GB, free: 7.332 MB / 0.5261 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.0001489/0.4854, allocations: 197.2 kB / 0.8553 GB, free: 7.117 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.467e-05/0.4854, allocations: 11.91 kB / 0.8553 GB, free: 7.105 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.327e-05/0.4855, allocations: 13.41 kB / 0.8553 GB, free: 7.094 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.4855, allocations: 0 / 0.8553 GB, free: 7.094 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.4855, allocations: 7.984 kB / 0.8553 GB, free: 7.086 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.4855, allocations: 0 / 0.8553 GB, free: 7.086 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006809/0.4862, allocations: 0.5953 MB / 0.8559 GB, free: 6.422 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4862, allocations: 0 / 0.8559 GB, free: 6.422 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.731e-05/0.4863, allocations: 23.92 kB / 0.8559 GB, free: 6.398 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.4863, allocations: 0 / 0.8559 GB, free: 6.398 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.4863, allocations: 15.98 kB / 0.856 GB, free: 6.383 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.4863, allocations: 0 / 0.856 GB, free: 6.383 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.4863, allocations: 4 kB / 0.856 GB, free: 6.379 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000498/0.4868, allocations: 410.6 kB / 0.8564 GB, free: 5.949 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.089e-05/0.4869, allocations: 96.86 kB / 0.8564 GB, free: 5.836 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.149e-05/0.4869, allocations: 4 kB / 0.8565 GB, free: 5.832 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.487, allocations: 15.98 kB / 0.8565 GB, free: 5.816 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.402e-05/0.4871, allocations: 7.984 kB / 0.8565 GB, free: 5.809 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.581e-05/0.4871, allocations: 7.938 kB / 0.8565 GB, free: 5.801 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 9.402e-05/0.4872, allocations: 132.3 kB / 0.8566 GB, free: 5.672 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4872, allocations: 0 / 0.8566 GB, free: 5.672 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002689/0.4875, allocations: 39.98 kB / 0.8566 GB, free: 5.633 MB / 0.5261 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.0002194/0.4877, allocations: 127.3 kB / 0.8568 GB, free: 5.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0004452/0.4882, allocations: 373.5 kB / 0.8571 GB, free: 5.086 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.4882, allocations: 0 / 0.8571 GB, free: 5.086 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0002175/0.4884, allocations: 206.8 kB / 0.8573 GB, free: 4.859 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002954/0.4887, allocations: 25.61 kB / 0.8573 GB, free: 4.836 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005341/0.4892, allocations: 314.2 kB / 0.8576 GB, free: 4.504 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002344/0.4895, allocations: 0.716 MB / 0.8583 GB, free: 3.762 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 6.652e-05/0.4896, allocations: 20.53 kB / 0.8584 GB, free: 3.738 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.935e-05/0.4896, allocations: 15.44 kB / 0.8584 GB, free: 3.723 MB / 0.5261 GB Notification: Performance of SimCode: time 2.3e-07/0.4896, allocations: 0 / 0.8584 GB, free: 3.723 MB / 0.5261 GB Notification: Performance of Templates: time 0.004501/0.4941, allocations: 1.922 MB / 0.8603 GB, free: 1.824 MB / 0.5261 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.sim & ./BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)