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.005255/0.005255, allocations: 101.8 kB / 15.73 MB, free: 6.062 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.001277/0.001277, allocations: 192 kB / 16.67 MB, free: 5.973 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.9043/0.9043, allocations: 132.2 MB / 422.7 MB, free: 6.539 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 64.03 kB / 0.5809 GB, free: 24.15 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1651/0.167, allocations: 80.2 MB / 0.6592 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003422/0.1705, allocations: 1.607 MB / 0.6607 GB, free: 9.141 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001134/0.1716, allocations: 0.6156 MB / 0.6613 GB, free: 8.52 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.02e-05/0.1717, allocations: 0 / 0.6613 GB, free: 8.52 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001608/0.1719, allocations: 19.86 kB / 0.6614 GB, free: 8.5 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000239/0.1722, allocations: 50.5 kB / 0.6614 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004307/0.1726, allocations: 115.7 kB / 0.6615 GB, free: 8.34 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003157/0.173, allocations: 195.6 kB / 0.6617 GB, free: 8.148 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.1731, allocations: 29.11 kB / 0.6617 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001904/0.1733, allocations: 87.73 kB / 0.6618 GB, free: 8.031 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001651/0.1735, allocations: 87.66 kB / 0.6619 GB, free: 7.945 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.165e-05/0.1735, allocations: 16 kB / 0.6619 GB, free: 7.93 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.419e-05/0.1736, allocations: 28 kB / 0.6619 GB, free: 7.902 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.447e-05/0.1737, allocations: 27.91 kB / 0.662 GB, free: 7.875 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.1738, allocations: 71.66 kB / 0.662 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002753/0.1741, allocations: 171.6 kB / 0.6622 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.1741, allocations: 4 kB / 0.6622 GB, free: 7.633 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.784e-06/0.1741, allocations: 0 / 0.6622 GB, free: 7.633 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.875e-06/0.1741, allocations: 0 / 0.6622 GB, free: 7.633 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.0008201/0.175, allocations: 0.5562 MB / 0.6628 GB, free: 7.004 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.175, allocations: 12.03 kB / 0.6628 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.014e-05/0.1751, allocations: 42.73 kB / 0.6628 GB, free: 6.941 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.651e-05/0.1752, allocations: 16.84 kB / 0.6628 GB, free: 6.926 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003916/0.1755, allocations: 244.7 kB / 0.6631 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.483e-05/0.1756, allocations: 16.38 kB / 0.6631 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.812e-05/0.1756, allocations: 12.38 kB / 0.6631 GB, free: 6.621 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002864/0.1759, allocations: 117.5 kB / 0.6632 GB, free: 6.5 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.1759, allocations: 0 / 0.6632 GB, free: 6.5 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/0.176, allocations: 4 kB / 0.6632 GB, free: 6.496 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.176, allocations: 0 / 0.6632 GB, free: 6.496 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000216/0.1762, allocations: 75.88 kB / 0.6633 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006793/0.1769, allocations: 412.6 kB / 0.6637 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002169/0.1771, allocations: 98.55 kB / 0.6638 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/0.1773, allocations: 76.81 kB / 0.6638 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.1773, allocations: 0 / 0.6638 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002828/0.1776, allocations: 178.7 kB / 0.664 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.322e-06/0.1776, allocations: 0 / 0.664 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007727/0.1784, allocations: 348.8 kB / 0.6643 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/0.1785, allocations: 170.4 kB / 0.6645 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000183/0.1787, allocations: 172 kB / 0.6647 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.949e-05/0.1788, allocations: 37.7 kB / 0.6647 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.1789, allocations: 116.3 kB / 0.6648 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.838e-05/0.1789, allocations: 19.86 kB / 0.6648 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.46e-05/0.179, allocations: 41.7 kB / 0.6649 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001674/0.1792, allocations: 322.8 kB / 0.6652 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/0.1793, allocations: 55.95 kB / 0.6652 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001861/0.1795, allocations: 110.8 kB / 0.6653 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003786/0.1799, allocations: 309 kB / 0.6656 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1799, allocations: 4 kB / 0.6656 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006169/0.1805, allocations: 348.2 kB / 0.666 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.518e-05/0.1806, allocations: 118.8 kB / 0.6661 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.1806, allocations: 4 kB / 0.6661 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.1807, allocations: 0 / 0.6661 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.1808, allocations: 23.92 kB / 0.6661 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.1808, allocations: 4.219 kB / 0.6661 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001006/0.1809, allocations: 15.89 kB / 0.6661 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.286e-05/0.181, allocations: 12 kB / 0.6661 GB, free: 3.164 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.0001796/0.1811, allocations: 207.2 kB / 0.6663 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.2e-05/0.1812, allocations: 19.91 kB / 0.6663 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.044e-05/0.1812, allocations: 13.34 kB / 0.6664 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1812, allocations: 4 kB / 0.6664 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.1813, allocations: 0 / 0.6664 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.706e-06/0.1813, allocations: 0 / 0.6664 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008147/0.1821, allocations: 0.5837 MB / 0.6669 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1821, allocations: 0 / 0.6669 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.802e-05/0.1822, allocations: 19.98 kB / 0.667 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1822, allocations: 0 / 0.667 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/0.1822, allocations: 4 kB / 0.667 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1822, allocations: 0 / 0.667 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.1822, allocations: 3.938 kB / 0.667 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006094/0.1828, allocations: 406.7 kB / 0.6673 GB, free: 1.793 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.478e-05/0.1829, allocations: 100.9 kB / 0.6674 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.429e-05/0.183, allocations: 8 kB / 0.6675 GB, free: 1.668 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.1831, allocations: 8 kB / 0.6675 GB, free: 1.66 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.162e-05/0.1831, allocations: 11.92 kB / 0.6675 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.619e-05/0.1832, allocations: 4 kB / 0.6675 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000135/0.1833, allocations: 135.2 kB / 0.6676 GB, free: 1.512 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.1833, allocations: 0 / 0.6676 GB, free: 1.512 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003048/0.1836, allocations: 36 kB / 0.6676 GB, free: 1.477 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.001088/0.1847, allocations: 0.9545 MB / 0.6686 GB, free: 500 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005542/0.1853, allocations: 365.4 kB / 0.6689 GB, free: 84 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1853, allocations: 0 / 0.6689 GB, free: 84 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002791/0.1856, allocations: 210.7 kB / 0.6691 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003204/0.1859, allocations: 25.5 kB / 0.6691 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002729/0.1886, allocations: 2.113 MB / 0.6712 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000361/0.189, allocations: 0.7196 MB / 0.6719 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 7.422e-05/0.1891, allocations: 20.48 kB / 0.6719 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.891e-05/0.1892, allocations: 31.42 kB / 0.672 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of SimCode: time 5.41e-07/0.1892, allocations: 0 / 0.672 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0273/0.2165, allocations: 3.632 MB / 0.6755 GB, free: 9.254 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.213/8.43, allocations: 4.062 kB / 0.6755 GB, free: 9.25 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter.fmu > IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)