Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(IDEAS.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008969/0.000897, allocations: 173.7 kB / 7.642 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.714/0.714, allocations: 130.7 MB / 138.7 MB, free: 3.594 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.533/1.533, allocations: 221.5 MB / 391.8 MB, free: 14.21 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009143/0.0009144, allocations: 103.2 kB / 473.9 MB, free: 4.453 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.724e-05/1.728e-05, allocations: 4 kB / 0.5485 GB, free: 13.03 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5067/0.5068, allocations: 81.56 MB / 0.6282 GB, free: 42.92 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1565/0.6633, allocations: 112.4 MB / 0.738 GB, free: 14.29 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/0.6636, allocations: 83.94 kB / 0.7381 GB, free: 14.21 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01363/0.6773, allocations: 5.032 MB / 0.743 GB, free: 9.164 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.256e-06/0.6773, allocations: 0 / 0.743 GB, free: 9.164 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.07e-05/0.6773, allocations: 3.938 kB / 0.743 GB, free: 9.16 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.0005688/0.6779, allocations: 0.5243 MB / 0.7435 GB, free: 8.566 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.678, allocations: 12.03 kB / 0.7435 GB, free: 8.555 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.796e-05/0.678, allocations: 19.81 kB / 0.7435 GB, free: 8.535 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002953/0.6783, allocations: 218.8 kB / 0.7437 GB, free: 8.281 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.6784, allocations: 4 kB / 0.7437 GB, free: 8.277 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.208e-05/0.6784, allocations: 12 kB / 0.7437 GB, free: 8.266 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001424/0.6785, allocations: 47.97 kB / 0.7438 GB, free: 8.219 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000171/0.6787, allocations: 101.6 kB / 0.7439 GB, free: 8.113 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-06/0.6787, allocations: 0 / 0.7439 GB, free: 8.113 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.787e-05/0.6788, allocations: 0 / 0.7439 GB, free: 8.113 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.6788, allocations: 4 kB / 0.7439 GB, free: 8.109 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006464/0.6794, allocations: 393.1 kB / 0.7443 GB, free: 7.688 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001284/0.6796, allocations: 70.59 kB / 0.7443 GB, free: 7.609 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.707e-05/0.6797, allocations: 72.77 kB / 0.7444 GB, free: 7.535 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/0.6797, allocations: 4 kB / 0.7444 GB, free: 7.531 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001985/0.6799, allocations: 166.9 kB / 0.7446 GB, free: 7.344 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.6799, allocations: 0 / 0.7446 GB, free: 7.344 MB / 0.5261 GB Notification: Performance of matching and sorting (n=10): time 0.0004206/0.6803, allocations: 201.5 kB / 0.7448 GB, free: 7.141 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.737e-05/0.6805, allocations: 162.2 kB / 0.7449 GB, free: 6.945 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/0.6806, allocations: 161.7 kB / 0.7451 GB, free: 6.777 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.779e-05/0.6806, allocations: 33.7 kB / 0.7451 GB, free: 6.738 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 7.649e-05/0.6807, allocations: 112.3 kB / 0.7452 GB, free: 6.621 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.651e-05/0.6808, allocations: 19.72 kB / 0.7452 GB, free: 6.602 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.167e-05/0.6808, allocations: 0 / 0.7452 GB, free: 6.602 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.6809, allocations: 326.8 kB / 0.7455 GB, free: 6.273 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.509e-05/0.681, allocations: 36 kB / 0.7456 GB, free: 6.238 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/0.6811, allocations: 90.84 kB / 0.7457 GB, free: 6.125 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.485e-05/0.6812, allocations: 47.91 kB / 0.7457 GB, free: 6.078 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.6812, allocations: 4 kB / 0.7457 GB, free: 6.074 MB / 0.5261 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003241/0.6816, allocations: 205.3 kB / 0.7459 GB, free: 5.867 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.757e-05/0.6816, allocations: 118.8 kB / 0.746 GB, free: 5.727 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.6817, allocations: 0 / 0.746 GB, free: 5.727 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.6817, allocations: 4 kB / 0.746 GB, free: 5.723 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.6818, allocations: 19.98 kB / 0.746 GB, free: 5.703 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.6818, allocations: 7.938 kB / 0.746 GB, free: 5.695 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001013/0.6819, allocations: 24.14 kB / 0.7461 GB, free: 5.672 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.353e-05/0.682, allocations: 15.95 kB / 0.7461 GB, free: 5.656 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 () * 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.0001462/0.6821, allocations: 176.3 kB / 0.7462 GB, free: 5.465 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.942e-05/0.6822, allocations: 15.89 kB / 0.7463 GB, free: 5.449 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.865e-05/0.6822, allocations: 13.84 kB / 0.7463 GB, free: 5.438 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.6822, allocations: 0 / 0.7463 GB, free: 5.438 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.6822, allocations: 7.984 kB / 0.7463 GB, free: 5.43 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.6822, allocations: 0 / 0.7463 GB, free: 5.43 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005375/0.6828, allocations: 474.9 kB / 0.7467 GB, free: 4.922 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.6828, allocations: 3.984 kB / 0.7467 GB, free: 4.918 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.604e-05/0.6829, allocations: 15.94 kB / 0.7468 GB, free: 4.902 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.6829, allocations: 0 / 0.7468 GB, free: 4.902 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.265e-05/0.6829, allocations: 7.984 kB / 0.7468 GB, free: 4.895 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.6829, allocations: 3.938 kB / 0.7468 GB, free: 4.891 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.6829, allocations: 0 / 0.7468 GB, free: 4.891 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003809/0.6833, allocations: 311.2 kB / 0.7471 GB, free: 4.57 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 5.172e-05/0.6834, allocations: 92.91 kB / 0.7472 GB, free: 4.461 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.333e-05/0.6834, allocations: 4 kB / 0.7472 GB, free: 4.457 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.6835, allocations: 8 kB / 0.7472 GB, free: 4.449 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.308e-05/0.6836, allocations: 3.984 kB / 0.7472 GB, free: 4.445 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.937e-05/0.6836, allocations: 19.97 kB / 0.7472 GB, free: 4.426 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 8.131e-05/0.6837, allocations: 115.3 kB / 0.7473 GB, free: 4.312 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.423e-06/0.6837, allocations: 0 / 0.7473 GB, free: 4.312 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002653/0.684, allocations: 39.94 kB / 0.7473 GB, free: 4.273 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) * 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.0002555/0.6842, allocations: 129.7 kB / 0.7475 GB, free: 4.145 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0003496/0.6846, allocations: 326 kB / 0.7478 GB, free: 3.777 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.6846, allocations: 4.062 kB / 0.7478 GB, free: 3.773 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001726/0.6848, allocations: 190.7 kB / 0.748 GB, free: 3.562 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002266/0.685, allocations: 20.12 kB / 0.748 GB, free: 3.539 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004549/0.6855, allocations: 192.7 kB / 0.7482 GB, free: 3.332 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/0.6858, allocations: 0.708 MB / 0.7489 GB, free: 2.598 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 6.581e-05/0.6859, allocations: 24.53 kB / 0.7489 GB, free: 2.574 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.341e-05/0.6859, allocations: 15.44 kB / 0.7489 GB, free: 2.559 MB / 0.5261 GB Notification: Performance of SimCode: time 2.3e-07/0.686, allocations: 3.938 kB / 0.7489 GB, free: 2.555 MB / 0.5261 GB Notification: Performance of Templates: time 0.00468/0.6906, allocations: 1.835 MB / 0.7507 GB, free: 0.75 MB / 0.5261 GB make -j1 -f IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.sim & ./IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)