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/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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_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.004966/0.004966, allocations: 97.62 kB / 15.73 MB, free: 6.059 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.001199/0.001199, allocations: 197.3 kB / 16.68 MB, free: 5.977 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.31/1.31, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7404/0.7404, allocations: 132.2 MB / 422.7 MB, free: 1.707 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 66.3 kB / 0.5809 GB, free: 1.141 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1525/0.1538, allocations: 80.21 MB / 0.6592 GB, free: 14 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003928/0.1578, allocations: 1.589 MB / 0.6607 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001156/0.159, allocations: 0.6156 MB / 0.6613 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.1591, allocations: 3.938 kB / 0.6613 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001869/0.1593, allocations: 23.84 kB / 0.6614 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002948/0.1596, allocations: 47.75 kB / 0.6614 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004731/0.1601, allocations: 111.8 kB / 0.6615 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003744/0.1605, allocations: 195.6 kB / 0.6617 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001852/0.1607, allocations: 37.02 kB / 0.6617 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002494/0.1609, allocations: 79.81 kB / 0.6618 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001993/0.1611, allocations: 87.66 kB / 0.6619 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.317e-05/0.1612, allocations: 20 kB / 0.6619 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.1613, allocations: 28 kB / 0.6619 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001107/0.1614, allocations: 27.91 kB / 0.662 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001233/0.1616, allocations: 75.64 kB / 0.662 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003239/0.1619, allocations: 171.6 kB / 0.6622 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.1619, allocations: 0 / 0.6622 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.824e-06/0.1619, allocations: 0 / 0.6622 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.175e-06/0.1619, allocations: 0 / 0.6622 GB, free: 10.89 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.0008527/0.1628, allocations: 0.5523 MB / 0.6628 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.1628, allocations: 16.03 kB / 0.6628 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.467e-05/0.1629, allocations: 42.73 kB / 0.6628 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.59e-05/0.163, allocations: 24.78 kB / 0.6628 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003922/0.1634, allocations: 228.8 kB / 0.663 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.991e-05/0.1634, allocations: 12.38 kB / 0.6631 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.403e-05/0.1635, allocations: 12.38 kB / 0.6631 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002801/0.1637, allocations: 113.5 kB / 0.6632 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.1638, allocations: 4 kB / 0.6632 GB, free: 9.766 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.897e-05/0.1638, allocations: 4 kB / 0.6632 GB, free: 9.762 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.1638, allocations: 0 / 0.6632 GB, free: 9.762 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002098/0.164, allocations: 79.81 kB / 0.6633 GB, free: 9.684 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007317/0.1647, allocations: 412.6 kB / 0.6637 GB, free: 9.23 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002059/0.165, allocations: 98.56 kB / 0.6638 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001592/0.1651, allocations: 76.81 kB / 0.6638 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/0.1652, allocations: 0 / 0.6638 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002727/0.1654, allocations: 174.7 kB / 0.664 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.1655, allocations: 0 / 0.664 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007466/0.1662, allocations: 360.9 kB / 0.6643 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.977e-05/0.1663, allocations: 166.2 kB / 0.6645 GB, free: 8.281 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000166/0.1665, allocations: 176 kB / 0.6647 GB, free: 8.098 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.487e-05/0.1665, allocations: 29.7 kB / 0.6647 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.855e-05/0.1666, allocations: 112.3 kB / 0.6648 GB, free: 7.945 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.835e-05/0.1666, allocations: 19.86 kB / 0.6648 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.505e-05/0.1667, allocations: 41.7 kB / 0.6649 GB, free: 7.879 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.1668, allocations: 330.8 kB / 0.6652 GB, free: 7.547 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.167, allocations: 51.95 kB / 0.6652 GB, free: 7.496 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001661/0.1671, allocations: 106.8 kB / 0.6653 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003349/0.1675, allocations: 309 kB / 0.6656 GB, free: 7.004 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1675, allocations: 4 kB / 0.6656 GB, free: 7 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005332/0.168, allocations: 348.1 kB / 0.666 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.383e-05/0.1681, allocations: 118.8 kB / 0.6661 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1681, allocations: 4 kB / 0.6661 GB, free: 6.484 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.1682, allocations: 4 kB / 0.6661 GB, free: 6.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.1683, allocations: 28.17 kB / 0.6661 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.339e-05/0.1683, allocations: 7.984 kB / 0.6661 GB, free: 6.445 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/0.1684, allocations: 15.89 kB / 0.6661 GB, free: 6.43 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.368e-05/0.1685, allocations: 12 kB / 0.6661 GB, free: 6.418 MB / 0.4981 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.0001636/0.1686, allocations: 190.9 kB / 0.6663 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.97e-05/0.1687, allocations: 23.89 kB / 0.6663 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.935e-05/0.1687, allocations: 13.41 kB / 0.6664 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.1687, allocations: 0 / 0.6664 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.1687, allocations: 4.266 kB / 0.6664 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1688, allocations: 4 kB / 0.6664 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007124/0.1695, allocations: 0.5875 MB / 0.6669 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.1695, allocations: 0 / 0.6669 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.869e-05/0.1696, allocations: 19.92 kB / 0.667 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.1696, allocations: 0 / 0.667 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.708e-05/0.1696, allocations: 4 kB / 0.667 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.1696, allocations: 4 kB / 0.667 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1696, allocations: 3.938 kB / 0.667 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005428/0.1702, allocations: 402.7 kB / 0.6673 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.677e-05/0.1702, allocations: 92.95 kB / 0.6674 GB, free: 4.941 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.912e-05/0.1703, allocations: 7.984 kB / 0.6674 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.1704, allocations: 8 kB / 0.6675 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.453e-05/0.1704, allocations: 11.92 kB / 0.6675 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.1705, allocations: 11.98 kB / 0.6675 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001081/0.1706, allocations: 135.2 kB / 0.6676 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.91e-07/0.1706, allocations: 4 kB / 0.6676 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003016/0.1709, allocations: 32 kB / 0.6676 GB, free: 4.734 MB / 0.4981 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.0009815/0.1719, allocations: 0.9597 MB / 0.6686 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005017/0.1724, allocations: 353.5 kB / 0.6689 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1724, allocations: 0.5 kB / 0.6689 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002374/0.1726, allocations: 215 kB / 0.6691 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003145/0.173, allocations: 19.94 kB / 0.6691 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002502/0.1755, allocations: 2.108 MB / 0.6712 GB, free: 0.8398 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000272/0.1758, allocations: 0.7158 MB / 0.6719 GB, free: 100 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.426e-05/0.1758, allocations: 20.53 kB / 0.6719 GB, free: 80 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.581e-05/0.1759, allocations: 31.42 kB / 0.6719 GB, free: 48 kB / 0.4981 GB Notification: Performance of SimCode: time 3.8e-07/0.1759, allocations: 4 kB / 0.6719 GB, free: 44 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02294/0.1989, allocations: 3.644 MB / 0.6755 GB, free: 12.53 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.679/7.878, allocations: 10.14 kB / 0.6755 GB, free: 12.53 MB / 0.5137 GB (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 & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Utilities_IO_Files_Examples_CSVWriter.fmu > IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)