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.001195/0.001195, allocations: 182.9 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/package.mo): time 0.7031/0.7031, allocations: 132.2 MB / 148.9 MB, free: 12.14 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.437/1.437, allocations: 222.9 MB / 403.4 MB, free: 7.125 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.000971/0.0009709, allocations: 106.3 kB / 484.3 MB, free: 8.742 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001025/0.001025, allocations: 51.92 kB / 0.5618 GB, free: 71.09 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1294, allocations: 80.2 MB / 0.6402 GB, free: 6.816 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.004331/0.1337, allocations: 1.656 MB / 0.6418 GB, free: 5.145 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.001189/0.135, allocations: 0.6352 MB / 0.6424 GB, free: 4.504 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001187/0.1351, allocations: 3.938 kB / 0.6424 GB, free: 4.5 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002085/0.1353, allocations: 15.92 kB / 0.6424 GB, free: 4.484 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002986/0.1357, allocations: 39.83 kB / 0.6425 GB, free: 4.445 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005551/0.1362, allocations: 99.84 kB / 0.6426 GB, free: 4.348 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002346/0.1365, allocations: 163.6 kB / 0.6427 GB, free: 4.188 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001815/0.1367, allocations: 29.09 kB / 0.6427 GB, free: 4.16 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001827/0.1369, allocations: 75.81 kB / 0.6428 GB, free: 4.086 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001351/0.137, allocations: 87.66 kB / 0.6429 GB, free: 4 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 3.892e-05/0.1371, allocations: 11.94 kB / 0.6429 GB, free: 3.988 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.521e-05/0.1371, allocations: 24 kB / 0.6429 GB, free: 3.965 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 9.876e-05/0.1372, allocations: 23.91 kB / 0.643 GB, free: 3.941 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 9.013e-05/0.1373, allocations: 67.72 kB / 0.643 GB, free: 3.875 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002212/0.1376, allocations: 159.8 kB / 0.6432 GB, free: 3.719 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1376, allocations: 0 / 0.6432 GB, free: 3.719 MB / 442.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.1376, allocations: 0 / 0.6432 GB, free: 3.719 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.1376, allocations: 0 / 0.6432 GB, free: 3.719 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.000677/0.1383, allocations: 0.5601 MB / 0.6437 GB, free: 3.086 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.1383, allocations: 12.03 kB / 0.6437 GB, free: 3.074 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.063e-05/0.1384, allocations: 16.75 kB / 0.6437 GB, free: 3.059 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002938/0.1387, allocations: 232.2 kB / 0.644 GB, free: 2.793 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.465e-05/0.1387, allocations: 8.375 kB / 0.644 GB, free: 2.785 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.762e-05/0.1388, allocations: 12.38 kB / 0.644 GB, free: 2.773 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000257/0.139, allocations: 117.7 kB / 0.6441 GB, free: 2.652 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-06/0.139, allocations: 0 / 0.6441 GB, free: 2.652 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.098e-05/0.1391, allocations: 8 kB / 0.6441 GB, free: 2.645 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.1391, allocations: 4 kB / 0.6441 GB, free: 2.641 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001893/0.1393, allocations: 63.94 kB / 0.6442 GB, free: 2.578 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006749/0.14, allocations: 424.4 kB / 0.6446 GB, free: 2.113 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001939/0.1402, allocations: 90.53 kB / 0.6447 GB, free: 2.016 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001526/0.1403, allocations: 76.81 kB / 0.6447 GB, free: 1.938 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.1404, allocations: 0 / 0.6447 GB, free: 1.938 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003537/0.1407, allocations: 182.8 kB / 0.6449 GB, free: 1.734 MB / 442.7 MB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.1407, allocations: 0 / 0.6449 GB, free: 1.734 MB / 442.7 MB Notification: Performance of matching and sorting (n=10): time 0.0007509/0.1415, allocations: 356.8 kB / 0.6453 GB, free: 1.367 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.1416, allocations: 170.2 kB / 0.6454 GB, free: 1.164 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000174/0.1418, allocations: 170.6 kB / 0.6456 GB, free: 0.9883 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.614e-05/0.1418, allocations: 33.7 kB / 0.6456 GB, free: 0.9492 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.993e-05/0.1419, allocations: 108.4 kB / 0.6457 GB, free: 0.8359 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.613e-05/0.1419, allocations: 23.7 kB / 0.6457 GB, free: 0.8125 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.636e-05/0.142, allocations: 37.7 kB / 0.6458 GB, free: 0.7695 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.1421, allocations: 334.8 kB / 0.6461 GB, free: 444 kB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.1423, allocations: 51.97 kB / 0.6461 GB, free: 392 kB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001494/0.1424, allocations: 95.83 kB / 0.6462 GB, free: 272 kB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003399/0.1428, allocations: 316.9 kB / 0.6465 GB, free: 15.89 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1428, allocations: 0 / 0.6465 GB, free: 15.89 MB / 458.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005147/0.1433, allocations: 348 kB / 0.6469 GB, free: 15.52 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.868e-05/0.1434, allocations: 119.7 kB / 0.647 GB, free: 15.38 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.1434, allocations: 4 kB / 0.647 GB, free: 15.38 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.1434, allocations: 256 / 0.647 GB, free: 15.38 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/0.1436, allocations: 19.98 kB / 0.647 GB, free: 15.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.1436, allocations: 4 kB / 0.647 GB, free: 15.36 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.1437, allocations: 19.84 kB / 0.647 GB, free: 15.34 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.504e-05/0.1437, allocations: 11.98 kB / 0.647 GB, free: 15.32 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.0001933/0.1439, allocations: 203.5 kB / 0.6472 GB, free: 15.11 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.288e-05/0.144, allocations: 15.81 kB / 0.6472 GB, free: 15.09 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.61e-05/0.144, allocations: 17.41 kB / 0.6473 GB, free: 15.07 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.144, allocations: 4 kB / 0.6473 GB, free: 15.07 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.144, allocations: 7.984 kB / 0.6473 GB, free: 15.06 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.1441, allocations: 288 / 0.6473 GB, free: 15.06 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007897/0.1448, allocations: 0.5836 MB / 0.6478 GB, free: 14.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1449, allocations: 4 kB / 0.6478 GB, free: 14.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.603e-05/0.1449, allocations: 11.98 kB / 0.6479 GB, free: 14.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.1449, allocations: 4 kB / 0.6479 GB, free: 14.39 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.202e-05/0.145, allocations: 7.984 kB / 0.6479 GB, free: 14.38 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.145, allocations: 7.984 kB / 0.6479 GB, free: 14.37 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.145, allocations: 3.938 kB / 0.6479 GB, free: 14.37 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009914/0.146, allocations: 1.039 MB / 0.6489 GB, free: 13.26 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.575e-05/0.146, allocations: 88.86 kB / 0.649 GB, free: 13.15 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.395e-05/0.1461, allocations: 12 kB / 0.649 GB, free: 13.14 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.1462, allocations: 7.984 kB / 0.649 GB, free: 13.13 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.793e-05/0.1463, allocations: 11.98 kB / 0.649 GB, free: 13.12 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.1463, allocations: 4 kB / 0.649 GB, free: 13.12 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0001044/0.1464, allocations: 140.3 kB / 0.6492 GB, free: 12.98 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1464, allocations: 0 / 0.6492 GB, free: 12.98 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003922/0.1468, allocations: 32 kB / 0.6492 GB, free: 12.95 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.0002382/0.147, allocations: 131.2 kB / 0.6493 GB, free: 12.81 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0004876/0.1475, allocations: 361.4 kB / 0.6497 GB, free: 12.41 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1476, allocations: 0 / 0.6497 GB, free: 12.41 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002388/0.1478, allocations: 207.3 kB / 0.6498 GB, free: 12.18 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.1481, allocations: 23.92 kB / 0.6499 GB, free: 12.16 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006722/0.1488, allocations: 456.5 kB / 0.6503 GB, free: 11.67 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002702/0.1491, allocations: 0.7121 MB / 0.651 GB, free: 10.93 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 7.792e-05/0.1492, allocations: 20.53 kB / 0.651 GB, free: 10.91 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.121e-05/0.1492, allocations: 11.44 kB / 0.651 GB, free: 10.9 MB / 458.7 MB Notification: Performance of SimCode: time 2.31e-07/0.1492, allocations: 8 kB / 0.651 GB, free: 10.89 MB / 458.7 MB Notification: Performance of Templates: time 0.004804/0.154, allocations: 2.06 MB / 0.6531 GB, free: 8.863 MB / 458.7 MB 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)