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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 113.5 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 217.1 kB / 23.04 MB, free: 5.078 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.414/1.414, allocations: 230.6 MB / 256.8 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8581/0.8581, allocations: 134 MB / 447.2 MB, free: 10.27 MB / 350.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 61.38 kB / 0.6193 GB, free: 7.254 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1788/0.1807, allocations: 85.91 MB / 0.7032 GB, free: 1.414 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.00311/0.1838, allocations: 1.643 MB / 0.7048 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001174/0.185, allocations: 0.705 MB / 0.7055 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.609e-05/0.1851, allocations: 4 kB / 0.7055 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.1852, allocations: 15.8 kB / 0.7055 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002374/0.1854, allocations: 47.75 kB / 0.7056 GB, free: 14.99 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004543/0.1859, allocations: 131.7 kB / 0.7057 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0003048/0.1862, allocations: 187.6 kB / 0.7059 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.1863, allocations: 17.91 kB / 0.7059 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002203/0.1865, allocations: 91.75 kB / 0.706 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001552/0.1867, allocations: 91.66 kB / 0.7061 GB, free: 14.48 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.693e-05/0.1867, allocations: 12 kB / 0.7061 GB, free: 14.46 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 8.884e-05/0.1868, allocations: 35.98 kB / 0.7061 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.956e-05/0.1869, allocations: 35.91 kB / 0.7061 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.187, allocations: 71.66 kB / 0.7062 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002805/0.1873, allocations: 179.2 kB / 0.7064 GB, free: 14.15 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1873, allocations: 8 kB / 0.7064 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.273e-06/0.1873, allocations: 0 / 0.7064 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.1873, allocations: 0 / 0.7064 GB, free: 14.14 MB / 0.5294 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.0007413/0.1881, allocations: 496.4 kB / 0.7069 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.1881, allocations: 8.031 kB / 0.7069 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.175e-05/0.1881, allocations: 192 / 0.7069 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.157e-05/0.1882, allocations: 42.67 kB / 0.7069 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001759/0.1883, allocations: 28.78 kB / 0.7069 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003165/0.1887, allocations: 186.5 kB / 0.7071 GB, free: 13.31 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.1887, allocations: 4.375 kB / 0.7071 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.343e-05/0.1887, allocations: 20.12 kB / 0.7071 GB, free: 13.29 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002824/0.189, allocations: 113.5 kB / 0.7072 GB, free: 13.17 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.189, allocations: 0 / 0.7072 GB, free: 13.17 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.944e-05/0.189, allocations: 7.984 kB / 0.7072 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.189, allocations: 4 kB / 0.7072 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002206/0.1892, allocations: 67.94 kB / 0.7073 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006695/0.1899, allocations: 395.5 kB / 0.7077 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001957/0.1901, allocations: 74.53 kB / 0.7078 GB, free: 12.58 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001662/0.1903, allocations: 72.81 kB / 0.7078 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.1903, allocations: 0 / 0.7078 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002888/0.1906, allocations: 174.7 kB / 0.708 GB, free: 12.31 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=10): time 1.492e-06/0.1906, allocations: 0 / 0.708 GB, free: 12.31 MB / 0.5294 GB Notification: Performance of matching and sorting (n=10): time 0.0007769/0.1914, allocations: 365 kB / 0.7083 GB, free: 11.93 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/0.1915, allocations: 170.2 kB / 0.7085 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002175/0.1917, allocations: 173 kB / 0.7087 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 4.399e-05/0.1917, allocations: 33.7 kB / 0.7087 GB, free: 11.51 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.1919, allocations: 116.2 kB / 0.7088 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 4.646e-05/0.1919, allocations: 31.72 kB / 0.7088 GB, free: 11.36 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.899e-05/0.192, allocations: 37.7 kB / 0.7089 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.1921, allocations: 326.8 kB / 0.7092 GB, free: 10.99 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001382/0.1923, allocations: 51.97 kB / 0.7092 GB, free: 10.94 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.1924, allocations: 109.9 kB / 0.7093 GB, free: 10.81 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003664/0.1928, allocations: 312.9 kB / 0.7096 GB, free: 10.44 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1928, allocations: 0 / 0.7096 GB, free: 10.44 MB / 0.5294 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000591/0.1934, allocations: 348.2 kB / 0.71 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001024/0.1935, allocations: 118.8 kB / 0.7101 GB, free: 9.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.1935, allocations: 4 kB / 0.7101 GB, free: 9.926 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.1935, allocations: 4 kB / 0.7101 GB, free: 9.922 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.1937, allocations: 19.92 kB / 0.7101 GB, free: 9.902 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.1937, allocations: 4 kB / 0.7101 GB, free: 9.898 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.1938, allocations: 28.12 kB / 0.7101 GB, free: 9.871 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.825e-05/0.1938, allocations: 11.94 kB / 0.7102 GB, free: 9.859 MB / 0.5294 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.0001951/0.194, allocations: 197.2 kB / 0.7103 GB, free: 9.645 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.021e-05/0.194, allocations: 19.91 kB / 0.7104 GB, free: 9.625 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.209e-05/0.1941, allocations: 17.39 kB / 0.7104 GB, free: 9.605 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1941, allocations: 0 / 0.7104 GB, free: 9.605 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/0.1941, allocations: 4 kB / 0.7104 GB, free: 9.602 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.1941, allocations: 0 / 0.7104 GB, free: 9.602 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008043/0.1949, allocations: 0.5594 MB / 0.7109 GB, free: 8.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1949, allocations: 3.984 kB / 0.7109 GB, free: 8.977 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.199e-05/0.195, allocations: 8 kB / 0.7109 GB, free: 8.969 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.195, allocations: 0 / 0.7109 GB, free: 8.969 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.774e-05/0.195, allocations: 15.98 kB / 0.711 GB, free: 8.953 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.195, allocations: 3.938 kB / 0.711 GB, free: 8.949 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.195, allocations: 0 / 0.711 GB, free: 8.949 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000582/0.1956, allocations: 410.6 kB / 0.7114 GB, free: 8.52 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 2.039e-05/0.1956, allocations: 11.91 kB / 0.7114 GB, free: 8.508 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.657e-05/0.1956, allocations: 11.94 kB / 0.7114 GB, free: 8.496 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.1958, allocations: 15.92 kB / 0.7114 GB, free: 8.48 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.89e-05/0.1958, allocations: 3.984 kB / 0.7114 GB, free: 8.477 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.007e-05/0.1958, allocations: 12 kB / 0.7114 GB, free: 8.465 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001132/0.1959, allocations: 133.1 kB / 0.7115 GB, free: 8.336 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.1959, allocations: 0 / 0.7115 GB, free: 8.336 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002999/0.1962, allocations: 43.94 kB / 0.7116 GB, free: 8.293 MB / 0.5294 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.001038/0.1973, allocations: 0.9565 MB / 0.7125 GB, free: 7.301 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0005258/0.1978, allocations: 353.4 kB / 0.7129 GB, free: 6.906 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1978, allocations: 3.938 kB / 0.7129 GB, free: 6.902 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002341/0.198, allocations: 182.8 kB / 0.713 GB, free: 6.699 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003187/0.1984, allocations: 24.19 kB / 0.7131 GB, free: 6.676 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002727/0.2011, allocations: 2.13 MB / 0.7151 GB, free: 4.402 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000347/0.2014, allocations: 0.7085 MB / 0.7158 GB, free: 3.668 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 7.324e-05/0.2015, allocations: 20.47 kB / 0.7158 GB, free: 3.645 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.489e-05/0.2016, allocations: 39.42 kB / 0.7159 GB, free: 3.605 MB / 0.5294 GB Notification: Performance of SimCode: time 7.72e-07/0.2016, allocations: 0 / 0.7159 GB, free: 3.605 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02501/0.2266, allocations: 3.876 MB / 0.7197 GB, free: 15.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.3, allocations: 4.062 kB / 0.7197 GB, free: 15.89 MB / 0.545 GB " [Timeout remaining time 649] (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 --stepSize=0.004484 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter.fmu > IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.926600888953544] Failed to read output from testmodel.py, exit status != 0: 11.467552930000238 11.495218944 11.303005837 Calling exit ...