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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 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) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 108.5 kB / 16.41 MB, free: 6.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 189.2 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8228/0.8228, allocations: 135.2 MB / 426.4 MB, free: 4.078 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 63.89 kB / 0.5863 GB, free: 21.59 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1295, allocations: 80.92 MB / 0.6654 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.002812/0.1324, allocations: 1.605 MB / 0.6669 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000921/0.1333, allocations: 0.6039 MB / 0.6675 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.407e-05/0.1334, allocations: 4 kB / 0.6675 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.1335, allocations: 23.78 kB / 0.6676 GB, free: 3.484 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001936/0.1337, allocations: 51.75 kB / 0.6676 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003527/0.1341, allocations: 111.8 kB / 0.6677 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002649/0.1344, allocations: 195.6 kB / 0.6679 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.1345, allocations: 24.88 kB / 0.6679 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000143/0.1346, allocations: 95.67 kB / 0.668 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001348/0.1348, allocations: 83.72 kB / 0.6681 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.228e-05/0.1348, allocations: 12 kB / 0.6681 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.334e-05/0.1349, allocations: 28 kB / 0.6681 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.603e-05/0.135, allocations: 27.91 kB / 0.6682 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 9.352e-05/0.1351, allocations: 79.64 kB / 0.6682 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002335/0.1353, allocations: 167.3 kB / 0.6684 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1353, allocations: 4 kB / 0.6684 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.163e-06/0.1353, allocations: 3.938 kB / 0.6684 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.1353, allocations: 0 / 0.6684 GB, free: 2.613 MB / 0.4981 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.0007066/0.136, allocations: 0.5601 MB / 0.6689 GB, free: 1.98 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.029e-05/0.1361, allocations: 9.109 kB / 0.669 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.24e-05/0.1361, allocations: 20.84 kB / 0.669 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003358/0.1365, allocations: 240.3 kB / 0.6692 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.1365, allocations: 8.375 kB / 0.6692 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.879e-05/0.1366, allocations: 16.38 kB / 0.6692 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002719/0.1368, allocations: 121.7 kB / 0.6693 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.1368, allocations: 0 / 0.6693 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.1369, allocations: 4 kB / 0.6693 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.1369, allocations: 4 kB / 0.6693 GB, free: 1.523 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001925/0.1371, allocations: 63.95 kB / 0.6694 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006459/0.1377, allocations: 428.5 kB / 0.6698 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001958/0.1379, allocations: 82.53 kB / 0.6699 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001678/0.1381, allocations: 76.81 kB / 0.67 GB, free: 0.8242 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.1381, allocations: 7.938 kB / 0.67 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002605/0.1384, allocations: 178.8 kB / 0.6701 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.1384, allocations: 0 / 0.6701 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007359/0.1392, allocations: 353 kB / 0.6705 GB, free: 260 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.1393, allocations: 166.2 kB / 0.6706 GB, free: 56 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002003/0.1395, allocations: 187.9 kB / 0.6708 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.1395, allocations: 29.7 kB / 0.6709 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 7.972e-05/0.1396, allocations: 116.3 kB / 0.671 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.846e-05/0.1396, allocations: 23.84 kB / 0.671 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.675e-05/0.1397, allocations: 37.7 kB / 0.671 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001441/0.1399, allocations: 330.8 kB / 0.6713 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001363/0.14, allocations: 51.95 kB / 0.6714 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.1402, allocations: 102.8 kB / 0.6715 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003638/0.1406, allocations: 308.9 kB / 0.6718 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.1406, allocations: 3.984 kB / 0.6718 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005755/0.1412, allocations: 348.3 kB / 0.6721 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.594e-05/0.1413, allocations: 120.5 kB / 0.6722 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.1413, allocations: 3.938 kB / 0.6722 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.1413, allocations: 4 kB / 0.6722 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001015/0.1414, allocations: 19.92 kB / 0.6723 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.1414, allocations: 4 kB / 0.6723 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.1415, allocations: 23.88 kB / 0.6723 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.025e-05/0.1416, allocations: 8 kB / 0.6723 GB, free: 14.19 MB / 0.5137 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 (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.0001793/0.1418, allocations: 207.2 kB / 0.6725 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.325e-05/0.1418, allocations: 15.91 kB / 0.6725 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.833e-05/0.1418, allocations: 17.39 kB / 0.6725 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.1418, allocations: 0 / 0.6725 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.726e-06/0.1419, allocations: 0 / 0.6725 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.1419, allocations: 0 / 0.6725 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007807/0.1426, allocations: 0.5878 MB / 0.6731 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1427, allocations: 0 / 0.6731 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.715e-05/0.1427, allocations: 16 kB / 0.6731 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1427, allocations: 0 / 0.6731 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.654e-05/0.1428, allocations: 15.98 kB / 0.6731 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1428, allocations: 0 / 0.6731 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1428, allocations: 3.938 kB / 0.6731 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006005/0.1434, allocations: 398.7 kB / 0.6735 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.785e-05/0.1435, allocations: 92.95 kB / 0.6736 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.316e-05/0.1435, allocations: 8 kB / 0.6736 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.1436, allocations: 11.98 kB / 0.6736 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.386e-05/0.1437, allocations: 7.938 kB / 0.6736 GB, free: 12.69 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.899e-05/0.1437, allocations: 11.98 kB / 0.6736 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001193/0.1438, allocations: 123.2 kB / 0.6738 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1438, allocations: 0 / 0.6738 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002849/0.1441, allocations: 35.98 kB / 0.6738 GB, free: 12.52 MB / 0.5137 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 (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.0002231/0.1444, allocations: 136.5 kB / 0.6739 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00052/0.1449, allocations: 365.4 kB / 0.6743 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.1449, allocations: 3.938 kB / 0.6743 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002616/0.1452, allocations: 211.2 kB / 0.6745 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002857/0.1455, allocations: 19.98 kB / 0.6745 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005757/0.146, allocations: 283.7 kB / 0.6748 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003559/0.1464, allocations: 0.7085 MB / 0.6755 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.476e-05/0.1465, allocations: 24.53 kB / 0.6755 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.308e-05/0.1465, allocations: 15.44 kB / 0.6755 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of SimCode: time 2.2e-07/0.1465, allocations: 0 / 0.6755 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of Templates: time 0.005384/0.1519, allocations: 2.078 MB / 0.6775 GB, free: 8.594 MB / 0.5137 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 -s gbode -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)