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.005217/0.005217, 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.001446/0.001446, allocations: 199.8 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8627/0.8627, allocations: 135.6 MB / 426.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 66.64 kB / 0.5857 GB, free: 21.51 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1726, allocations: 81.02 MB / 0.6649 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.002938/0.1756, allocations: 1.605 MB / 0.6664 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001042/0.1766, allocations: 0.6078 MB / 0.667 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.659e-05/0.1767, allocations: 0 / 0.667 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.1769, allocations: 19.8 kB / 0.667 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002324/0.1771, allocations: 51.02 kB / 0.6671 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003831/0.1775, allocations: 111.8 kB / 0.6672 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002704/0.1778, allocations: 191.6 kB / 0.6674 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/0.1779, allocations: 36.78 kB / 0.6674 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000161/0.1781, allocations: 83.77 kB / 0.6675 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001359/0.1782, allocations: 79.72 kB / 0.6676 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.523e-05/0.1783, allocations: 16 kB / 0.6676 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.565e-05/0.1784, allocations: 31.98 kB / 0.6676 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.41e-05/0.1785, allocations: 31.91 kB / 0.6676 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.1786, allocations: 75.64 kB / 0.6677 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002634/0.1788, allocations: 171.6 kB / 0.6679 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1789, allocations: 0 / 0.6679 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.223e-06/0.1789, allocations: 0 / 0.6679 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.179e-06/0.1789, allocations: 4 kB / 0.6679 GB, free: 2.52 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.0007243/0.1796, allocations: 0.5601 MB / 0.6684 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.1796, allocations: 9.109 kB / 0.6684 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.864e-05/0.1797, allocations: 46.62 kB / 0.6685 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.675e-05/0.1798, allocations: 20.84 kB / 0.6685 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003584/0.1801, allocations: 228.4 kB / 0.6687 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.1802, allocations: 4.375 kB / 0.6687 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.835e-05/0.1802, allocations: 20.38 kB / 0.6687 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002772/0.1805, allocations: 113.5 kB / 0.6688 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.1805, allocations: 3.938 kB / 0.6689 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.1805, allocations: 8 kB / 0.6689 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.1805, allocations: 0 / 0.6689 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002055/0.1807, allocations: 71.94 kB / 0.6689 GB, free: 1.32 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006545/0.1814, allocations: 420.5 kB / 0.6693 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002015/0.1816, allocations: 90.52 kB / 0.6694 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001694/0.1818, allocations: 76.81 kB / 0.6695 GB, free: 0.6836 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.1818, allocations: 0 / 0.6695 GB, free: 0.6836 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002851/0.1821, allocations: 186.7 kB / 0.6697 GB, free: 488 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 3.556e-06/0.1821, allocations: 96 / 0.6697 GB, free: 488 kB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007396/0.1829, allocations: 356.9 kB / 0.67 GB, free: 112 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001283/0.183, allocations: 162.2 kB / 0.6702 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002023/0.1832, allocations: 184 kB / 0.6703 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.471e-05/0.1833, allocations: 29.64 kB / 0.6704 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.1834, allocations: 116.2 kB / 0.6705 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.114e-05/0.1834, allocations: 27.84 kB / 0.6705 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.577e-05/0.1835, allocations: 37.72 kB / 0.6705 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001662/0.1837, allocations: 334.8 kB / 0.6709 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001427/0.1838, allocations: 47.97 kB / 0.6709 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.184, allocations: 102.8 kB / 0.671 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003853/0.1844, allocations: 312.9 kB / 0.6713 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.83e-06/0.1844, allocations: 0 / 0.6713 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005754/0.185, allocations: 352.3 kB / 0.6716 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.801e-05/0.1851, allocations: 124.7 kB / 0.6718 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.1851, allocations: 0 / 0.6718 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.1851, allocations: 4 kB / 0.6718 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.1853, allocations: 19.92 kB / 0.6718 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.1853, allocations: 4 kB / 0.6718 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.1854, allocations: 19.89 kB / 0.6718 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.269e-05/0.1854, allocations: 11.98 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.0001754/0.1856, allocations: 197.4 kB / 0.672 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.399e-05/0.1856, allocations: 23.91 kB / 0.672 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.509e-05/0.1857, allocations: 13.41 kB / 0.672 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.1857, allocations: 3.938 kB / 0.672 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.1857, allocations: 0 / 0.672 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.1857, allocations: 3.984 kB / 0.672 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007799/0.1865, allocations: 0.5798 MB / 0.6726 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.1865, allocations: 0 / 0.6726 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.589e-05/0.1866, allocations: 11.98 kB / 0.6726 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.1866, allocations: 4 kB / 0.6726 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/0.1866, allocations: 8 kB / 0.6726 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.1866, allocations: 4 kB / 0.6726 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/0.1866, allocations: 7.922 kB / 0.6726 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005837/0.1872, allocations: 402.7 kB / 0.673 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.42e-05/0.1873, allocations: 92.95 kB / 0.6731 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.4e-05/0.1873, allocations: 4 kB / 0.6731 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001082/0.1874, allocations: 8 kB / 0.6731 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.557e-05/0.1875, allocations: 15.92 kB / 0.6731 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.727e-05/0.1875, allocations: 8 kB / 0.6732 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001112/0.1876, allocations: 127.2 kB / 0.6733 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1876, allocations: 0 / 0.6733 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002891/0.1879, allocations: 32 kB / 0.6733 GB, free: 12.38 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.001032/0.189, allocations: 0.9703 MB / 0.6743 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005257/0.1895, allocations: 365.5 kB / 0.6746 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1895, allocations: 4 kB / 0.6746 GB, free: 10.96 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002537/0.1898, allocations: 198.8 kB / 0.6748 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003231/0.1901, allocations: 30.95 kB / 0.6748 GB, free: 10.72 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002582/0.1927, allocations: 2.109 MB / 0.6769 GB, free: 8.461 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003869/0.1931, allocations: 0.7124 MB / 0.6776 GB, free: 7.723 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 7.102e-05/0.1932, allocations: 28.47 kB / 0.6776 GB, free: 7.695 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.168e-05/0.1933, allocations: 39.42 kB / 0.6776 GB, free: 7.656 MB / 0.5137 GB Notification: Performance of SimCode: time 3.5e-07/0.1933, allocations: 0 / 0.6776 GB, free: 7.656 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02742/0.2207, allocations: 3.617 MB / 0.6812 GB, free: 4.125 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.81/8.031, allocations: 2.5 kB / 0.6812 GB, free: 4.125 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter.fmu > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)