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: "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005755/0.005755, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001384/0.001384, allocations: 200.6 kB / 16.68 MB, free: 5.934 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.431/1.431, allocations: 222.9 MB / 240.4 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.8814/0.8814, allocations: 135.6 MB / 426.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002/0.002001, allocations: 66.98 kB / 0.5857 GB, free: 21.52 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1609/0.1629, allocations: 81.02 MB / 0.6649 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.002887/0.1658, allocations: 1.605 MB / 0.6664 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009932/0.1668, allocations: 0.6039 MB / 0.667 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.379e-05/0.1669, allocations: 4 kB / 0.667 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001429/0.167, allocations: 19.8 kB / 0.667 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001944/0.1672, allocations: 43.77 kB / 0.6671 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003735/0.1676, allocations: 115.7 kB / 0.6672 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002705/0.1679, allocations: 195.6 kB / 0.6674 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.168, allocations: 24.86 kB / 0.6674 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001446/0.1682, allocations: 91.69 kB / 0.6675 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001539/0.1683, allocations: 83.72 kB / 0.6676 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.224e-05/0.1684, allocations: 19.94 kB / 0.6676 GB, free: 2.816 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.141e-05/0.1685, allocations: 31.98 kB / 0.6676 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.864e-05/0.1686, allocations: 23.92 kB / 0.6676 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001085/0.1687, allocations: 79.64 kB / 0.6677 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002598/0.169, allocations: 171.5 kB / 0.6679 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.169, allocations: 0 / 0.6679 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.733e-06/0.169, allocations: 0 / 0.6679 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.056e-05/0.169, allocations: 0 / 0.6679 GB, free: 2.516 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.0007492/0.1697, allocations: 0.564 MB / 0.6684 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.1698, allocations: 13.11 kB / 0.6684 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.857e-05/0.1698, allocations: 34.75 kB / 0.6685 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.499e-05/0.1699, allocations: 20.84 kB / 0.6685 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003675/0.1703, allocations: 240.3 kB / 0.6687 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.1703, allocations: 4.375 kB / 0.6687 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.869e-05/0.1703, allocations: 16.38 kB / 0.6687 GB, free: 1.512 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002707/0.1706, allocations: 117.5 kB / 0.6689 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.1706, allocations: 7.984 kB / 0.6689 GB, free: 1.383 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.807e-05/0.1707, allocations: 4 kB / 0.6689 GB, free: 1.379 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.1707, allocations: 4 kB / 0.6689 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000201/0.1709, allocations: 59.95 kB / 0.6689 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006398/0.1715, allocations: 416.5 kB / 0.6693 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002051/0.1717, allocations: 98.53 kB / 0.6694 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.1719, allocations: 72.81 kB / 0.6695 GB, free: 0.6797 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.311e-05/0.172, allocations: 4 kB / 0.6695 GB, free: 0.6758 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002724/0.1722, allocations: 178.9 kB / 0.6697 GB, free: 488 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.492e-06/0.1722, allocations: 0 / 0.6697 GB, free: 488 kB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007807/0.173, allocations: 357.1 kB / 0.67 GB, free: 112 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.1732, allocations: 162.2 kB / 0.6702 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001787/0.1733, allocations: 183.9 kB / 0.6703 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.915e-05/0.1734, allocations: 33.7 kB / 0.6704 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 7.983e-05/0.1735, allocations: 116.2 kB / 0.6705 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.909e-05/0.1735, allocations: 23.84 kB / 0.6705 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.268e-05/0.1736, allocations: 41.69 kB / 0.6705 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001444/0.1737, allocations: 334.8 kB / 0.6709 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/0.1739, allocations: 43.97 kB / 0.6709 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001854/0.1741, allocations: 110.3 kB / 0.671 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003792/0.1745, allocations: 316.9 kB / 0.6713 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1745, allocations: 0 / 0.6713 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005716/0.1751, allocations: 344.1 kB / 0.6716 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.03e-05/0.1752, allocations: 122.8 kB / 0.6717 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.1752, allocations: 0 / 0.6717 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.1752, allocations: 4 kB / 0.6718 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.1753, allocations: 28.16 kB / 0.6718 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.146e-06/0.1753, allocations: 4 kB / 0.6718 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.1754, allocations: 23.88 kB / 0.6718 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/0.1755, allocations: 8 kB / 0.6718 GB, free: 14.04 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.0001718/0.1756, allocations: 197.1 kB / 0.672 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.792e-05/0.1757, allocations: 15.91 kB / 0.672 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.041e-05/0.1757, allocations: 21.39 kB / 0.672 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.1757, allocations: 0 / 0.672 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1758, allocations: 4 kB / 0.672 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.1758, allocations: 4 kB / 0.672 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000812/0.1766, allocations: 0.5759 MB / 0.6726 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.1766, allocations: 0 / 0.6726 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.695e-05/0.1767, allocations: 11.98 kB / 0.6726 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.1767, allocations: 4 kB / 0.6726 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.033e-05/0.1767, allocations: 7.984 kB / 0.6726 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1767, allocations: 0 / 0.6726 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.1767, allocations: 7.938 kB / 0.6726 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005988/0.1773, allocations: 406.6 kB / 0.673 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.566e-05/0.1774, allocations: 92.95 kB / 0.6731 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.565e-05/0.1774, allocations: 8 kB / 0.6731 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/0.1776, allocations: 11.98 kB / 0.6731 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.402e-05/0.1776, allocations: 7.938 kB / 0.6731 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.072e-05/0.1776, allocations: 15.98 kB / 0.6732 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001115/0.1778, allocations: 123.2 kB / 0.6733 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.1778, allocations: 0 / 0.6733 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002974/0.1781, allocations: 36 kB / 0.6733 GB, free: 12.37 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.001012/0.1791, allocations: 0.9556 MB / 0.6742 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005223/0.1796, allocations: 365.4 kB / 0.6746 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1796, allocations: 0.5 kB / 0.6746 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002572/0.1799, allocations: 206.7 kB / 0.6748 GB, free: 10.74 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000312/0.1802, allocations: 35.84 kB / 0.6748 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002639/0.1829, allocations: 2.107 MB / 0.6769 GB, free: 8.457 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003384/0.1832, allocations: 0.7124 MB / 0.6776 GB, free: 7.719 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.787e-05/0.1833, allocations: 20.53 kB / 0.6776 GB, free: 7.699 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.927e-05/0.1834, allocations: 39.42 kB / 0.6776 GB, free: 7.66 MB / 0.5137 GB Notification: Performance of SimCode: time 2.91e-07/0.1834, allocations: 4 kB / 0.6776 GB, free: 7.656 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02496/0.2083, allocations: 3.623 MB / 0.6812 GB, free: 4.117 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.947/8.155, allocations: 4.516 kB / 0.6812 GB, free: 4.117 MB / 0.5137 GB (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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter_res.csv --start-time -1.21 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004484 IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter.fmu > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)