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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001789/0.00179, allocations: 183.4 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7594/0.7594, allocations: 133.4 MB / 150.1 MB, free: 11.13 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.461/1.461, allocations: 222.9 MB / 404.7 MB, free: 6.105 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.001052/0.001052, allocations: 106.4 kB / 485.9 MB, free: 7.254 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 63.91 kB / 0.5636 GB, free: 69.93 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1345, allocations: 80.42 MB / 0.6421 GB, free: 5.441 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003265/0.1378, allocations: 1.663 MB / 0.6438 GB, free: 3.762 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.1389, allocations: 0.6353 MB / 0.6444 GB, free: 3.121 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.139, allocations: 0 / 0.6444 GB, free: 3.121 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001782/0.1392, allocations: 15.86 kB / 0.6444 GB, free: 3.105 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002213/0.1395, allocations: 40.45 kB / 0.6444 GB, free: 3.066 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004605/0.1399, allocations: 95.89 kB / 0.6445 GB, free: 2.973 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002177/0.1402, allocations: 167.6 kB / 0.6447 GB, free: 2.809 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.1403, allocations: 29.11 kB / 0.6447 GB, free: 2.781 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001704/0.1405, allocations: 75.75 kB / 0.6448 GB, free: 2.707 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002005/0.1407, allocations: 83.66 kB / 0.6449 GB, free: 2.625 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 4.273e-05/0.1407, allocations: 8 kB / 0.6449 GB, free: 2.617 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.61e-05/0.1408, allocations: 20 kB / 0.6449 GB, free: 2.598 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 8.92e-05/0.1409, allocations: 35.84 kB / 0.6449 GB, free: 2.562 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 9.905e-05/0.141, allocations: 63.7 kB / 0.645 GB, free: 2.5 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002228/0.1412, allocations: 159.8 kB / 0.6451 GB, free: 2.344 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1413, allocations: 0 / 0.6451 GB, free: 2.344 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1413, allocations: 4 kB / 0.6451 GB, free: 2.34 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.1413, allocations: 0 / 0.6451 GB, free: 2.34 MB / 442.7 MB 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.0007667/0.1421, allocations: 0.5562 MB / 0.6457 GB, free: 1.711 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.1421, allocations: 12.03 kB / 0.6457 GB, free: 1.699 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.573e-05/0.1422, allocations: 24.73 kB / 0.6457 GB, free: 1.676 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002911/0.1425, allocations: 224.2 kB / 0.6459 GB, free: 1.418 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.1425, allocations: 12.38 kB / 0.646 GB, free: 1.406 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.26e-05/0.1425, allocations: 8.375 kB / 0.646 GB, free: 1.398 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002662/0.1428, allocations: 121.7 kB / 0.6461 GB, free: 1.273 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.1428, allocations: 0 / 0.6461 GB, free: 1.273 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.717e-05/0.1429, allocations: 4 kB / 0.6461 GB, free: 1.27 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.1429, allocations: 0 / 0.6461 GB, free: 1.27 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001934/0.1431, allocations: 71.89 kB / 0.6461 GB, free: 1.199 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006248/0.1437, allocations: 420.5 kB / 0.6466 GB, free: 0.7383 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001891/0.1439, allocations: 90.56 kB / 0.6466 GB, free: 0.6406 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.1441, allocations: 76.81 kB / 0.6467 GB, free: 0.5625 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.1441, allocations: 0 / 0.6467 GB, free: 0.5625 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002665/0.1444, allocations: 182.9 kB / 0.6469 GB, free: 368 kB / 442.7 MB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.1444, allocations: 0 / 0.6469 GB, free: 368 kB / 442.7 MB Notification: Performance of matching and sorting (n=10): time 0.000755/0.1451, allocations: 348.7 kB / 0.6472 GB, free: 0 / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.243e-05/0.1452, allocations: 170.3 kB / 0.6474 GB, free: 15.79 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001542/0.1454, allocations: 171.4 kB / 0.6475 GB, free: 15.62 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.207e-05/0.1454, allocations: 33.7 kB / 0.6476 GB, free: 15.58 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.321e-05/0.1455, allocations: 112.4 kB / 0.6477 GB, free: 15.46 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.858e-05/0.1455, allocations: 27.64 kB / 0.6477 GB, free: 15.43 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.253e-05/0.1456, allocations: 45.69 kB / 0.6478 GB, free: 15.38 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.1457, allocations: 322.8 kB / 0.6481 GB, free: 15.06 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.1459, allocations: 55.95 kB / 0.6481 GB, free: 15 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/0.146, allocations: 107.6 kB / 0.6482 GB, free: 14.87 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003204/0.1464, allocations: 305 kB / 0.6485 GB, free: 14.51 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.1464, allocations: 4 kB / 0.6485 GB, free: 14.51 MB / 458.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005378/0.1469, allocations: 348.2 kB / 0.6488 GB, free: 14.14 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.057e-05/0.147, allocations: 118.8 kB / 0.649 GB, free: 14 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.147, allocations: 4 kB / 0.649 GB, free: 13.99 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.1471, allocations: 0 / 0.649 GB, free: 13.99 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.1472, allocations: 23.92 kB / 0.649 GB, free: 13.97 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.1472, allocations: 0 / 0.649 GB, free: 13.97 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.1473, allocations: 19.83 kB / 0.649 GB, free: 13.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.276e-05/0.1474, allocations: 12 kB / 0.649 GB, free: 13.94 MB / 458.7 MB 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.0001714/0.1475, allocations: 195.5 kB / 0.6492 GB, free: 13.73 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.576e-05/0.1476, allocations: 27.78 kB / 0.6492 GB, free: 13.7 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.512e-05/0.1476, allocations: 17.39 kB / 0.6492 GB, free: 13.69 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.1476, allocations: 4 kB / 0.6492 GB, free: 13.68 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.1476, allocations: 0 / 0.6492 GB, free: 13.68 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.1476, allocations: 3.984 kB / 0.6493 GB, free: 13.68 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007184/0.1484, allocations: 0.5875 MB / 0.6498 GB, free: 13.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.1484, allocations: 3.984 kB / 0.6498 GB, free: 13.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.535e-05/0.1485, allocations: 12 kB / 0.6498 GB, free: 13.01 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.1485, allocations: 0 / 0.6498 GB, free: 13.01 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.021e-05/0.1485, allocations: 7.984 kB / 0.6498 GB, free: 13 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.1485, allocations: 0 / 0.6498 GB, free: 13 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.1485, allocations: 3.938 kB / 0.6499 GB, free: 13 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009992/0.1495, allocations: 1.036 MB / 0.6509 GB, free: 11.89 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.078e-05/0.1496, allocations: 100.8 kB / 0.651 GB, free: 11.77 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.573e-05/0.1496, allocations: 11.94 kB / 0.651 GB, free: 11.76 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.1498, allocations: 4 kB / 0.651 GB, free: 11.76 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.64e-05/0.1498, allocations: 7.984 kB / 0.651 GB, free: 11.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.087e-05/0.1498, allocations: 8 kB / 0.651 GB, free: 11.74 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.000106/0.15, allocations: 131.2 kB / 0.6511 GB, free: 11.61 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.794e-06/0.15, allocations: 0 / 0.6511 GB, free: 11.61 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003986/0.1504, allocations: 39.94 kB / 0.6512 GB, free: 11.57 MB / 458.7 MB 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.0002418/0.1506, allocations: 127.2 kB / 0.6513 GB, free: 11.45 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0004956/0.1511, allocations: 366 kB / 0.6516 GB, free: 11.04 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1511, allocations: 0 / 0.6516 GB, free: 11.04 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002349/0.1514, allocations: 206.7 kB / 0.6518 GB, free: 10.81 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003147/0.1517, allocations: 24.88 kB / 0.6518 GB, free: 10.79 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006998/0.1524, allocations: 448.8 kB / 0.6523 GB, free: 10.31 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003383/0.1528, allocations: 0.7121 MB / 0.653 GB, free: 9.57 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 7.724e-05/0.1529, allocations: 32.41 kB / 0.653 GB, free: 9.539 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.335e-05/0.1529, allocations: 15.44 kB / 0.653 GB, free: 9.523 MB / 458.7 MB Notification: Performance of SimCode: time 2.61e-07/0.1529, allocations: 0 / 0.653 GB, free: 9.523 MB / 458.7 MB Notification: Performance of Templates: time 0.005195/0.1581, allocations: 2.05 MB / 0.655 GB, free: 7.5 MB / 458.7 MB 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)