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.001693/0.001693, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.00208/0.00208, allocations: 221.3 kB / 23.03 MB, free: 4.941 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.544/1.544, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.8588/0.8588, allocations: 134 MB / 447.2 MB, free: 9.895 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.002499/0.002499, allocations: 63.06 kB / 0.6192 GB, free: 6.875 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.186/0.1885, allocations: 85.91 MB / 0.7031 GB, free: 1.055 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.00375/0.1923, allocations: 1.603 MB / 0.7047 GB, free: 15.44 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001388/0.1936, allocations: 0.6545 MB / 0.7053 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.1938, allocations: 4 kB / 0.7053 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002286/0.194, allocations: 23.78 kB / 0.7054 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002758/0.1943, allocations: 39.77 kB / 0.7054 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005131/0.1948, allocations: 127.7 kB / 0.7055 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0003573/0.1951, allocations: 187.6 kB / 0.7057 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001534/0.1953, allocations: 21.86 kB / 0.7057 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000264/0.1955, allocations: 91.73 kB / 0.7058 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001803/0.1957, allocations: 91.66 kB / 0.7059 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 4.104e-05/0.1958, allocations: 16 kB / 0.7059 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001103/0.1959, allocations: 35.98 kB / 0.706 GB, free: 14.15 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001019/0.196, allocations: 31.92 kB / 0.706 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.1961, allocations: 67.7 kB / 0.706 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003038/0.1964, allocations: 179.3 kB / 0.7062 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.1964, allocations: 3.984 kB / 0.7062 GB, free: 13.87 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.723e-06/0.1964, allocations: 0 / 0.7062 GB, free: 13.87 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.1964, allocations: 0 / 0.7062 GB, free: 13.87 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.0008599/0.1973, allocations: 496.4 kB / 0.7067 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.1973, allocations: 12.03 kB / 0.7067 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.236e-05/0.1973, allocations: 192 / 0.7067 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.143e-05/0.1974, allocations: 38.75 kB / 0.7067 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001995/0.1976, allocations: 32.83 kB / 0.7068 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000375/0.1979, allocations: 174.4 kB / 0.7069 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.154e-05/0.198, allocations: 12.38 kB / 0.707 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.959e-05/0.198, allocations: 12.12 kB / 0.707 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003288/0.1983, allocations: 180.9 kB / 0.7071 GB, free: 12.83 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.1983, allocations: 0 / 0.7071 GB, free: 12.83 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.1984, allocations: 4 kB / 0.7071 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.1984, allocations: 4 kB / 0.7071 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000226/0.1986, allocations: 123.3 kB / 0.7073 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006988/0.1993, allocations: 367.6 kB / 0.7076 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002589/0.1995, allocations: 141.9 kB / 0.7077 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000196/0.1997, allocations: 128.2 kB / 0.7079 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 3.112e-05/0.1998, allocations: 4 kB / 0.7079 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003897/0.2002, allocations: 242.3 kB / 0.7081 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.2002, allocations: 0 / 0.7081 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of matching and sorting (n=10): time 0.001024/0.2012, allocations: 483.5 kB / 0.7086 GB, free: 11.19 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001714/0.2014, allocations: 162.2 kB / 0.7087 GB, free: 11 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002532/0.2016, allocations: 176.8 kB / 0.7089 GB, free: 10.81 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.021e-05/0.2017, allocations: 37.7 kB / 0.7089 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.2018, allocations: 112.3 kB / 0.709 GB, free: 10.65 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 3.674e-05/0.2018, allocations: 27.78 kB / 0.7091 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.132e-05/0.2019, allocations: 37.7 kB / 0.7091 GB, free: 10.58 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001901/0.2021, allocations: 326.8 kB / 0.7094 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002327/0.2023, allocations: 166.8 kB / 0.7096 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002748/0.2026, allocations: 213 kB / 0.7098 GB, free: 9.812 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003951/0.203, allocations: 316.9 kB / 0.7101 GB, free: 9.441 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.203, allocations: 0 / 0.7101 GB, free: 9.441 MB / 0.5294 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0007117/0.2037, allocations: 471 kB / 0.7105 GB, free: 8.926 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001199/0.2038, allocations: 118.8 kB / 0.7106 GB, free: 8.785 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.2038, allocations: 4 kB / 0.7106 GB, free: 8.781 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.51e-05/0.2038, allocations: 3.984 kB / 0.7106 GB, free: 8.777 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001403/0.204, allocations: 16 kB / 0.7107 GB, free: 8.762 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.204, allocations: 3.984 kB / 0.7107 GB, free: 8.758 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.2041, allocations: 15.89 kB / 0.7107 GB, free: 8.742 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.603e-05/0.2041, allocations: 15.88 kB / 0.7107 GB, free: 8.727 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.0002341/0.2044, allocations: 197.5 kB / 0.7109 GB, free: 8.512 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.412e-05/0.2044, allocations: 23.89 kB / 0.7109 GB, free: 8.488 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.84e-05/0.2045, allocations: 9.406 kB / 0.7109 GB, free: 8.477 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.2045, allocations: 4 kB / 0.7109 GB, free: 8.473 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.2045, allocations: 4 kB / 0.7109 GB, free: 8.469 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.2045, allocations: 0 / 0.7109 GB, free: 8.469 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009639/0.2054, allocations: 0.6018 MB / 0.7115 GB, free: 7.793 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2054, allocations: 0 / 0.7115 GB, free: 7.793 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.771e-05/0.2055, allocations: 15.98 kB / 0.7115 GB, free: 7.777 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.2055, allocations: 4 kB / 0.7115 GB, free: 7.773 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.2055, allocations: 7.984 kB / 0.7115 GB, free: 7.766 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.2055, allocations: 3.938 kB / 0.7115 GB, free: 7.762 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2056, allocations: 288 / 0.7115 GB, free: 7.762 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006918/0.2062, allocations: 474 kB / 0.712 GB, free: 7.258 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 1.994e-05/0.2063, allocations: 11.91 kB / 0.712 GB, free: 7.246 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.793e-05/0.2063, allocations: 4 kB / 0.712 GB, free: 7.242 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.2064, allocations: 15.94 kB / 0.712 GB, free: 7.227 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.072e-05/0.2065, allocations: 11.92 kB / 0.712 GB, free: 7.215 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.295e-05/0.2065, allocations: 15.98 kB / 0.712 GB, free: 7.199 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001118/0.2066, allocations: 129.2 kB / 0.7122 GB, free: 7.074 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8e-08/0.2066, allocations: 0 / 0.7122 GB, free: 7.074 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0003028/0.2069, allocations: 39.94 kB / 0.7122 GB, free: 7.035 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.001098/0.208, allocations: 1.018 MB / 0.7132 GB, free: 5.973 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0006966/0.2087, allocations: 0.5152 MB / 0.7137 GB, free: 5.371 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2087, allocations: 0 / 0.7137 GB, free: 5.371 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003029/0.209, allocations: 246.1 kB / 0.7139 GB, free: 5.094 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003699/0.2094, allocations: 33.95 kB / 0.714 GB, free: 5.066 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003048/0.2124, allocations: 2.625 MB / 0.7165 GB, free: 2.188 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000106/0.2125, allocations: 93.78 kB / 0.7166 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 7.534e-05/0.2126, allocations: 20.47 kB / 0.7166 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.514e-05/0.2127, allocations: 39.42 kB / 0.7167 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of SimCode: time 1.012e-06/0.2127, allocations: 0 / 0.7167 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02501/0.2377, allocations: 3.992 MB / 0.7206 GB, free: 14.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.39, allocations: 4.062 kB / 0.7206 GB, free: 14.2 MB / 0.545 GB " [Timeout remaining time 648] (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: 15.140975287999026] Failed to read output from testmodel.py, exit status != 0: 11.55277216702234 11.577824562 11.376775237 Calling exit ...