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.001281/0.00128, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 198 kB / 16.54 MB, free: 6.672 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.422/1.422, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.069/1.069, allocations: 135.1 MB / 425.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 68.23 kB / 0.5054 GB, free: 5.223 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.181/0.1823, allocations: 80.92 MB / 0.5845 GB, free: 4.469 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003701/0.186, allocations: 1.601 MB / 0.586 GB, free: 2.855 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001087/0.1871, allocations: 0.6078 MB / 0.5866 GB, free: 2.242 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.1873, allocations: 3.938 kB / 0.5866 GB, free: 2.238 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001459/0.1875, allocations: 19.86 kB / 0.5866 GB, free: 2.219 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002171/0.1877, allocations: 43.77 kB / 0.5867 GB, free: 2.176 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004553/0.1882, allocations: 111.7 kB / 0.5868 GB, free: 2.066 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002584/0.1884, allocations: 191.6 kB / 0.587 GB, free: 1.879 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.1886, allocations: 29.11 kB / 0.587 GB, free: 1.848 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001796/0.1887, allocations: 83.81 kB / 0.5871 GB, free: 1.766 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001654/0.1889, allocations: 83.66 kB / 0.5872 GB, free: 1.684 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.873e-05/0.189, allocations: 16 kB / 0.5872 GB, free: 1.668 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.031e-05/0.1891, allocations: 28 kB / 0.5872 GB, free: 1.641 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.1892, allocations: 35.89 kB / 0.5872 GB, free: 1.605 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001103/0.1893, allocations: 71.66 kB / 0.5873 GB, free: 1.535 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002715/0.1896, allocations: 171.7 kB / 0.5875 GB, free: 1.367 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1896, allocations: 0 / 0.5875 GB, free: 1.367 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1896, allocations: 4 kB / 0.5875 GB, free: 1.363 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.1896, allocations: 0 / 0.5875 GB, free: 1.363 MB / 494.1 MB 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.0007644/0.1904, allocations: 0.5523 MB / 0.588 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.1904, allocations: 12.02 kB / 0.588 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.823e-05/0.1905, allocations: 38.75 kB / 0.5881 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.719e-05/0.1905, allocations: 16.84 kB / 0.5881 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002928/0.1908, allocations: 236.7 kB / 0.5883 GB, free: 404 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.1909, allocations: 12.38 kB / 0.5883 GB, free: 392 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.592e-05/0.1909, allocations: 12.38 kB / 0.5883 GB, free: 380 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000261/0.1912, allocations: 125.4 kB / 0.5885 GB, free: 248 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/0.1912, allocations: 0 / 0.5885 GB, free: 248 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.1912, allocations: 3.984 kB / 0.5885 GB, free: 244 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.1912, allocations: 4 kB / 0.5885 GB, free: 240 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001896/0.1914, allocations: 67.94 kB / 0.5885 GB, free: 172 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006927/0.1921, allocations: 412.7 kB / 0.5889 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001899/0.1923, allocations: 82.53 kB / 0.589 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001808/0.1925, allocations: 80.81 kB / 0.5891 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.734e-05/0.1925, allocations: 8.062 kB / 0.5891 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002866/0.1928, allocations: 186.7 kB / 0.5893 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.392e-06/0.1929, allocations: 0 / 0.5893 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007278/0.1936, allocations: 348.8 kB / 0.5896 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.1937, allocations: 170.1 kB / 0.5898 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001804/0.1939, allocations: 195.8 kB / 0.5899 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.393e-05/0.1939, allocations: 29.7 kB / 0.59 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.194, allocations: 112.3 kB / 0.5901 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.185e-05/0.1941, allocations: 23.66 kB / 0.5901 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.114e-05/0.1942, allocations: 37.7 kB / 0.5901 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001587/0.1943, allocations: 330.8 kB / 0.5905 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/0.1945, allocations: 51.95 kB / 0.5905 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000155/0.1946, allocations: 102.8 kB / 0.5906 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003283/0.195, allocations: 312.9 kB / 0.5909 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.195, allocations: 0 / 0.5909 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005577/0.1956, allocations: 352 kB / 0.5912 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.51e-05/0.1956, allocations: 117 kB / 0.5913 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.1957, allocations: 0 / 0.5913 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.257e-05/0.1957, allocations: 7.984 kB / 0.5914 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.1958, allocations: 12 kB / 0.5914 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.1958, allocations: 7.984 kB / 0.5914 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.1959, allocations: 16.16 kB / 0.5914 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/0.196, allocations: 12.28 kB / 0.5914 GB, free: 12.91 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.0001678/0.1962, allocations: 204.4 kB / 0.5916 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.727e-05/0.1962, allocations: 15.89 kB / 0.5916 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.426e-05/0.1962, allocations: 17.34 kB / 0.5916 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.1963, allocations: 0 / 0.5916 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.1963, allocations: 0 / 0.5916 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.1963, allocations: 4 kB / 0.5916 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007649/0.197, allocations: 0.5913 MB / 0.5922 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.1971, allocations: 0 / 0.5922 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.894e-05/0.1971, allocations: 11.98 kB / 0.5922 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.1971, allocations: 4 kB / 0.5922 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.473e-05/0.1972, allocations: 8 kB / 0.5922 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.1972, allocations: 0 / 0.5922 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.1972, allocations: 3.938 kB / 0.5922 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005556/0.1978, allocations: 406.6 kB / 0.5926 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.104e-05/0.1978, allocations: 88.92 kB / 0.5927 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.201e-05/0.1979, allocations: 7.984 kB / 0.5927 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.198, allocations: 8 kB / 0.5927 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.618e-05/0.198, allocations: 15.92 kB / 0.5927 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.526e-05/0.1981, allocations: 4 kB / 0.5927 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001306/0.1982, allocations: 127.2 kB / 0.5929 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1982, allocations: 0 / 0.5929 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003377/0.1986, allocations: 40 kB / 0.5929 GB, free: 11.23 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.001017/0.1996, allocations: 0.9607 MB / 0.5938 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00055/0.2002, allocations: 369.4 kB / 0.5942 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.2002, allocations: 0 / 0.5942 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002501/0.2004, allocations: 210.7 kB / 0.5944 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003384/0.2008, allocations: 26.66 kB / 0.5944 GB, free: 9.57 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002627/0.2034, allocations: 2.098 MB / 0.5965 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003365/0.2038, allocations: 0.708 MB / 0.5972 GB, free: 6.59 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.491e-05/0.2039, allocations: 24.47 kB / 0.5972 GB, free: 6.566 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.384e-05/0.2039, allocations: 35.42 kB / 0.5972 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of SimCode: time 4.2e-07/0.204, allocations: 0 / 0.5972 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02084/0.2248, allocations: 3.575 MB / 0.6007 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.3/7.524, allocations: 8.656 kB / 0.6007 GB, free: 3.051 MB / 0.4981 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)