Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/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-master/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_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001896/0.001896, allocations: 175.7 kB / 7.46 MB, free: 2.324 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6015/0.6015, allocations: 133.5 MB / 141.4 MB, free: 15.73 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.155/1.155, allocations: 221.3 MB / 395 MB, free: 10.18 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008379/0.0008377, allocations: 102.8 kB / 477.8 MB, free: 10.79 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 5.269e-06/5.279e-06, allocations: 0 / 0.5528 GB, free: 89.09 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1139, allocations: 82.3 MB / 0.6332 GB, free: 14.11 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3556/0.4696, allocations: 112.6 MB / 0.7432 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/0.4699, allocations: 83.52 kB / 0.7433 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.01158/0.4815, allocations: 4.686 MB / 0.7479 GB, free: 10.48 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.387e-06/0.4815, allocations: 0 / 0.7479 GB, free: 10.48 MB / 0.4948 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.0004963/0.482, allocations: 0.5071 MB / 0.7483 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.4821, allocations: 15.62 kB / 0.7484 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.334e-05/0.4821, allocations: 15.5 kB / 0.7484 GB, free: 25.97 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002711/0.4824, allocations: 240.9 kB / 0.7486 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.4824, allocations: 3.812 kB / 0.7486 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.774e-05/0.4825, allocations: 11.59 kB / 0.7486 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000126/0.4826, allocations: 51.86 kB / 0.7487 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001512/0.4827, allocations: 91.42 kB / 0.7488 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.4828, allocations: 0.6094 kB / 0.7488 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.708e-05/0.4828, allocations: 3.875 kB / 0.7488 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.4828, allocations: 0 / 0.7488 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005652/0.4834, allocations: 414.2 kB / 0.7492 GB, free: 25.47 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001105/0.4835, allocations: 71.06 kB / 0.7492 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.635e-05/0.4836, allocations: 68.48 kB / 0.7493 GB, free: 25.44 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.4836, allocations: 0 / 0.7493 GB, free: 25.44 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001626/0.4838, allocations: 171.1 kB / 0.7495 GB, free: 25.32 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=10): time 1.172e-06/0.4838, allocations: 0 / 0.7495 GB, free: 25.32 MB / 0.5105 GB Notification: Performance of matching and sorting (n=10): time 0.0003082/0.4841, allocations: 160.6 kB / 0.7496 GB, free: 25.28 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.76e-05/0.4842, allocations: 160.8 kB / 0.7498 GB, free: 25.09 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.4843, allocations: 160.2 kB / 0.7499 GB, free: 24.98 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/0.4843, allocations: 29.7 kB / 0.7499 GB, free: 24.95 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 4.028e-05/0.4844, allocations: 99.45 kB / 0.75 GB, free: 24.86 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.366e-05/0.4844, allocations: 23.66 kB / 0.7501 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.339e-05/0.4844, allocations: 6.156 kB / 0.7501 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.968e-05/0.4845, allocations: 322.3 kB / 0.7504 GB, free: 24.53 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.813e-05/0.4846, allocations: 40.27 kB / 0.7504 GB, free: 24.53 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.4847, allocations: 94.72 kB / 0.7505 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.592e-05/0.4848, allocations: 43.39 kB / 0.7505 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.4848, allocations: 1.281 kB / 0.7505 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002702/0.4851, allocations: 164 kB / 0.7507 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.4851, allocations: 5.812 kB / 0.7507 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.4851, allocations: 6.5 kB / 0.7507 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.4851, allocations: 2.688 kB / 0.7507 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.4853, allocations: 27.91 kB / 0.7507 GB, free: 24.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.76e-06/0.4853, allocations: 4.094 kB / 0.7507 GB, free: 24.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.604e-05/0.4854, allocations: 17.77 kB / 0.7508 GB, free: 24.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.94e-05/0.4854, allocations: 15.08 kB / 0.7508 GB, free: 24.39 MB / 0.5105 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.0001169/0.4855, allocations: 178.3 kB / 0.7509 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.637e-05/0.4856, allocations: 23.3 kB / 0.751 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.801e-05/0.4856, allocations: 15.61 kB / 0.751 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.4856, allocations: 0 / 0.751 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.4856, allocations: 0 / 0.751 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.4856, allocations: 4.75 kB / 0.751 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004352/0.4861, allocations: 425.4 kB / 0.7514 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.4861, allocations: 4.453 kB / 0.7514 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.985e-05/0.4861, allocations: 14.17 kB / 0.7514 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.4862, allocations: 0 / 0.7514 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.4862, allocations: 5.766 kB / 0.7514 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.4862, allocations: 0.5156 kB / 0.7514 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.4862, allocations: 4 kB / 0.7514 GB, free: 23.92 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002626/0.4865, allocations: 262.2 kB / 0.7517 GB, free: 23.78 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.328e-05/0.4865, allocations: 89.95 kB / 0.7518 GB, free: 23.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.9e-05/0.4866, allocations: 12.12 kB / 0.7518 GB, free: 23.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001227/0.4867, allocations: 8.969 kB / 0.7518 GB, free: 23.68 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.682e-05/0.4867, allocations: 10.94 kB / 0.7518 GB, free: 23.67 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/0.4868, allocations: 9.25 kB / 0.7518 GB, free: 23.67 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.076e-05/0.4868, allocations: 125 kB / 0.7519 GB, free: 23.59 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002599/0.4871, allocations: 27.62 kB / 0.7519 GB, free: 23.59 MB / 0.5105 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.0002213/0.4873, allocations: 134.3 kB / 0.7521 GB, free: 23.49 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0002679/0.4876, allocations: 217.4 kB / 0.7523 GB, free: 23.36 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.4876, allocations: 0 / 0.7523 GB, free: 23.36 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001296/0.4878, allocations: 138.7 kB / 0.7524 GB, free: 23.29 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002097/0.488, allocations: 12.14 kB / 0.7524 GB, free: 23.29 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004458/0.4884, allocations: 200.1 kB / 0.7526 GB, free: 23.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002986/0.4887, allocations: 0.7285 MB / 0.7533 GB, free: 22.49 MB / 0.5105 GB Notification: Performance of SimCode: time 2.5e-07/0.4887, allocations: 0 / 0.7533 GB, free: 22.49 MB / 0.5105 GB Notification: Performance of Templates: time 0.004285/0.493, allocations: 1.928 MB / 0.7552 GB, free: 22.24 MB / 0.5105 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.sim & ./IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)