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.004985/0.004985, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.001404/0.001404, allocations: 192.4 kB / 16.67 MB, free: 5.969 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.383/1.383, 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/package.mo): time 0.8386/0.8386, allocations: 132.2 MB / 422.7 MB, free: 6.52 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 65.91 kB / 0.5809 GB, free: 24.08 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1639/0.1657, allocations: 80.21 MB / 0.6592 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003105/0.1689, allocations: 1.601 MB / 0.6607 GB, free: 9.172 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001072/0.17, allocations: 0.6116 MB / 0.6613 GB, free: 8.555 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.247e-05/0.1701, allocations: 8 kB / 0.6613 GB, free: 8.547 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001703/0.1703, allocations: 11.86 kB / 0.6614 GB, free: 8.535 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002501/0.1705, allocations: 56.52 kB / 0.6614 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003915/0.1709, allocations: 111.8 kB / 0.6615 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002884/0.1712, allocations: 195.5 kB / 0.6617 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.1714, allocations: 33.09 kB / 0.6617 GB, free: 8.148 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001644/0.1716, allocations: 91.73 kB / 0.6618 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001446/0.1717, allocations: 87.66 kB / 0.6619 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.589e-05/0.1718, allocations: 12 kB / 0.6619 GB, free: 7.961 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.652e-05/0.1718, allocations: 24 kB / 0.6619 GB, free: 7.938 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.172, allocations: 31.91 kB / 0.662 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.1721, allocations: 71.66 kB / 0.662 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002835/0.1724, allocations: 175.6 kB / 0.6622 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.1724, allocations: 0 / 0.6622 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.244e-06/0.1724, allocations: 0 / 0.6622 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.1724, allocations: 0 / 0.6622 GB, free: 7.664 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.0008239/0.1732, allocations: 0.5601 MB / 0.6628 GB, free: 7.031 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.1733, allocations: 8.031 kB / 0.6628 GB, free: 7.023 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.988e-05/0.1734, allocations: 42.73 kB / 0.6628 GB, free: 6.973 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.199e-05/0.1734, allocations: 20.84 kB / 0.6628 GB, free: 6.953 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000405/0.1738, allocations: 244.7 kB / 0.6631 GB, free: 6.676 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.1739, allocations: 8.375 kB / 0.6631 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.699e-05/0.1739, allocations: 12.38 kB / 0.6631 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002959/0.1742, allocations: 121.5 kB / 0.6632 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.1742, allocations: 0 / 0.6632 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/0.1742, allocations: 0 / 0.6632 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.1743, allocations: 4 kB / 0.6632 GB, free: 6.527 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000209/0.1745, allocations: 75.88 kB / 0.6633 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000702/0.1752, allocations: 408.6 kB / 0.6637 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002084/0.1754, allocations: 102.5 kB / 0.6638 GB, free: 5.895 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.1756, allocations: 72.81 kB / 0.6638 GB, free: 5.82 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-05/0.1756, allocations: 8 kB / 0.6638 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000272/0.1759, allocations: 170.7 kB / 0.664 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.924e-06/0.1759, allocations: 0 / 0.664 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007629/0.1767, allocations: 352.8 kB / 0.6643 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.1768, allocations: 162.4 kB / 0.6645 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001807/0.177, allocations: 184 kB / 0.6647 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.75e-05/0.177, allocations: 29.7 kB / 0.6647 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.595e-05/0.1771, allocations: 120.3 kB / 0.6648 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.784e-05/0.1772, allocations: 19.86 kB / 0.6648 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.999e-05/0.1772, allocations: 37.7 kB / 0.6649 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001643/0.1774, allocations: 326.8 kB / 0.6652 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001393/0.1776, allocations: 51.95 kB / 0.6652 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001883/0.1778, allocations: 110.8 kB / 0.6653 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003917/0.1782, allocations: 309 kB / 0.6656 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.1782, allocations: 0 / 0.6656 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005794/0.1788, allocations: 352.1 kB / 0.666 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001037/0.1789, allocations: 118.8 kB / 0.6661 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.966e-06/0.1789, allocations: 3.984 kB / 0.6661 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.1789, allocations: 4 kB / 0.6661 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.179, allocations: 15.94 kB / 0.6661 GB, free: 3.234 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/0.1791, allocations: 11.92 kB / 0.6661 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.1792, allocations: 15.89 kB / 0.6661 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.987e-05/0.1792, allocations: 12.53 kB / 0.6661 GB, free: 3.195 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.0001911/0.1794, allocations: 203.1 kB / 0.6663 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.608e-05/0.1794, allocations: 15.91 kB / 0.6663 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.022e-05/0.1795, allocations: 21.28 kB / 0.6664 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1795, allocations: 0 / 0.6664 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1795, allocations: 0 / 0.6664 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.1795, allocations: 4 kB / 0.6664 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000801/0.1803, allocations: 0.5876 MB / 0.6669 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1803, allocations: 0 / 0.6669 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.214e-05/0.1804, allocations: 11.98 kB / 0.667 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.1804, allocations: 4 kB / 0.667 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.1804, allocations: 8 kB / 0.667 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1804, allocations: 0 / 0.667 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.1804, allocations: 3.938 kB / 0.667 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005744/0.181, allocations: 406.7 kB / 0.6674 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.964e-05/0.1811, allocations: 96.94 kB / 0.6674 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.393e-05/0.1811, allocations: 4 kB / 0.6675 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.1812, allocations: 8 kB / 0.6675 GB, free: 1.695 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.676e-05/0.1813, allocations: 15.92 kB / 0.6675 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.1813, allocations: 4 kB / 0.6675 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001265/0.1815, allocations: 135.2 kB / 0.6676 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.4e-07/0.1815, allocations: 0 / 0.6676 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002903/0.1818, allocations: 32 kB / 0.6676 GB, free: 1.512 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.001071/0.1828, allocations: 0.9597 MB / 0.6686 GB, free: 0.5195 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005545/0.1834, allocations: 365.4 kB / 0.6689 GB, free: 116 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1834, allocations: 0 / 0.6689 GB, free: 116 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002754/0.1837, allocations: 206.7 kB / 0.6691 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003366/0.184, allocations: 19.94 kB / 0.6691 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002779/0.1868, allocations: 2.109 MB / 0.6712 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003711/0.1872, allocations: 0.7118 MB / 0.6719 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.578e-05/0.1873, allocations: 24.47 kB / 0.6719 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.804e-05/0.1874, allocations: 39.42 kB / 0.672 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of SimCode: time 1.292e-06/0.1874, allocations: 0 / 0.672 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02597/0.2134, allocations: 3.64 MB / 0.6755 GB, free: 9.281 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.982/8.196, allocations: 3.984 kB / 0.6755 GB, free: 9.277 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)