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.00142/0.00142, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001778/0.001778, allocations: 210.9 kB / 22.24 MB, free: 4.859 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.456/1.456, allocations: 230.6 MB / 256 MB, free: 7.988 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.8988/0.8988, allocations: 134 MB / 446.4 MB, free: 9.953 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="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"}) [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.002097/0.002097, allocations: 70.39 kB / 0.6185 GB, free: 6.898 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1812/0.1833, allocations: 85.91 MB / 0.7024 GB, free: 1.086 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003194/0.1865, allocations: 1.613 MB / 0.7039 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001188/0.1877, allocations: 0.6545 MB / 0.7046 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.65e-05/0.1877, allocations: 3.938 kB / 0.7046 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001499/0.1879, allocations: 23.78 kB / 0.7046 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002202/0.1881, allocations: 47.75 kB / 0.7047 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004606/0.1886, allocations: 127.7 kB / 0.7048 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002858/0.1888, allocations: 187.6 kB / 0.705 GB, free: 14.42 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.189, allocations: 13.91 kB / 0.705 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001957/0.1891, allocations: 87.81 kB / 0.705 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.1893, allocations: 87.59 kB / 0.7051 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.663e-05/0.1893, allocations: 12 kB / 0.7051 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 9.486e-05/0.1894, allocations: 35.98 kB / 0.7052 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.966e-05/0.1895, allocations: 31.91 kB / 0.7052 GB, free: 14.15 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.1896, allocations: 71.7 kB / 0.7053 GB, free: 14.08 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002827/0.1899, allocations: 175.3 kB / 0.7054 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.1899, allocations: 0 / 0.7054 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.034e-06/0.1899, allocations: 0 / 0.7054 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.743e-06/0.1899, allocations: 0 / 0.7054 GB, free: 13.91 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.0007726/0.1907, allocations: 0.4887 MB / 0.7059 GB, free: 13.37 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.1907, allocations: 8.031 kB / 0.7059 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.643e-05/0.1908, allocations: 38.73 kB / 0.706 GB, free: 13.31 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001685/0.191, allocations: 28.78 kB / 0.706 GB, free: 13.29 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003381/0.1913, allocations: 186.4 kB / 0.7062 GB, free: 13.08 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.1913, allocations: 4.375 kB / 0.7062 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.484e-05/0.1913, allocations: 16.38 kB / 0.7062 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003237/0.1917, allocations: 176.9 kB / 0.7064 GB, free: 12.87 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.1917, allocations: 4 kB / 0.7064 GB, free: 12.86 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.1917, allocations: 0 / 0.7064 GB, free: 12.86 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.1917, allocations: 4 kB / 0.7064 GB, free: 12.86 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002469/0.1919, allocations: 135.3 kB / 0.7065 GB, free: 12.71 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006723/0.1926, allocations: 367.6 kB / 0.7068 GB, free: 12.31 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002426/0.1929, allocations: 138 kB / 0.707 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001918/0.193, allocations: 124.2 kB / 0.7071 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.1931, allocations: 4 kB / 0.7071 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003366/0.1934, allocations: 234.3 kB / 0.7073 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=10): time 9.207e-06/0.1934, allocations: 7.984 kB / 0.7073 GB, free: 11.74 MB / 0.5294 GB Notification: Performance of matching and sorting (n=10): time 0.0008687/0.1943, allocations: 479.6 kB / 0.7078 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.1944, allocations: 166.2 kB / 0.7079 GB, free: 11.03 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/0.1946, allocations: 172.8 kB / 0.7081 GB, free: 10.85 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 4.078e-05/0.1946, allocations: 37.69 kB / 0.7081 GB, free: 10.81 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 9.333e-05/0.1947, allocations: 108.3 kB / 0.7083 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 3.389e-05/0.1948, allocations: 27.78 kB / 0.7083 GB, free: 10.67 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.476e-05/0.1949, allocations: 41.69 kB / 0.7083 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001581/0.195, allocations: 330.8 kB / 0.7086 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001978/0.1952, allocations: 162.8 kB / 0.7088 GB, free: 10.11 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002523/0.1955, allocations: 225.5 kB / 0.709 GB, free: 9.836 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003722/0.1958, allocations: 309 kB / 0.7093 GB, free: 9.473 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.1958, allocations: 8 kB / 0.7093 GB, free: 9.465 MB / 0.5294 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006282/0.1965, allocations: 458.9 kB / 0.7097 GB, free: 8.961 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.6e-05/0.1966, allocations: 118.8 kB / 0.7099 GB, free: 8.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.1966, allocations: 0 / 0.7099 GB, free: 8.82 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.1966, allocations: 8.25 kB / 0.7099 GB, free: 8.812 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/0.1967, allocations: 19.92 kB / 0.7099 GB, free: 8.793 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.208e-06/0.1967, allocations: 4 kB / 0.7099 GB, free: 8.789 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.995e-05/0.1968, allocations: 23.88 kB / 0.7099 GB, free: 8.766 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.207e-05/0.1968, allocations: 8 kB / 0.7099 GB, free: 8.758 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.0001743/0.197, allocations: 193.2 kB / 0.7101 GB, free: 8.547 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.378e-05/0.197, allocations: 15.91 kB / 0.7101 GB, free: 8.531 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.903e-05/0.1971, allocations: 21.39 kB / 0.7101 GB, free: 8.508 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.1971, allocations: 0 / 0.7101 GB, free: 8.508 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1971, allocations: 11.94 kB / 0.7102 GB, free: 8.496 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.1971, allocations: 288 / 0.7102 GB, free: 8.496 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008471/0.1979, allocations: 0.5979 MB / 0.7107 GB, free: 7.824 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.1979, allocations: 0 / 0.7107 GB, free: 7.824 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.347e-05/0.198, allocations: 15.92 kB / 0.7107 GB, free: 7.809 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.198, allocations: 0 / 0.7107 GB, free: 7.809 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.218e-05/0.198, allocations: 8 kB / 0.7108 GB, free: 7.801 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.198, allocations: 4 kB / 0.7108 GB, free: 7.797 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.198, allocations: 3.938 kB / 0.7108 GB, free: 7.793 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006776/0.1987, allocations: 478 kB / 0.7112 GB, free: 7.285 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 2.182e-05/0.1987, allocations: 11.91 kB / 0.7112 GB, free: 7.273 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/0.1988, allocations: 4 kB / 0.7112 GB, free: 7.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.1989, allocations: 7.984 kB / 0.7112 GB, free: 7.262 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.68e-05/0.1989, allocations: 15.92 kB / 0.7113 GB, free: 7.246 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.199, allocations: 4 kB / 0.7113 GB, free: 7.242 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.000116/0.1991, allocations: 141.1 kB / 0.7114 GB, free: 7.105 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.1991, allocations: 0 / 0.7114 GB, free: 7.105 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002835/0.1994, allocations: 31.94 kB / 0.7114 GB, free: 7.074 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.001411/0.2008, allocations: 1.021 MB / 0.7124 GB, free: 6.012 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0007246/0.2015, allocations: 0.5157 MB / 0.7129 GB, free: 5.41 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2015, allocations: 0 / 0.7129 GB, free: 5.41 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003096/0.2018, allocations: 246.1 kB / 0.7132 GB, free: 5.133 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004787/0.2023, allocations: 31.69 kB / 0.7132 GB, free: 5.102 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003527/0.2058, allocations: 2.633 MB / 0.7158 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001005/0.2059, allocations: 89.78 kB / 0.7158 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 7.704e-05/0.206, allocations: 20.47 kB / 0.7159 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.793e-05/0.2061, allocations: 39.42 kB / 0.7159 GB, free: 2.051 MB / 0.5294 GB Notification: Performance of SimCode: time 7.61e-07/0.2061, allocations: 0 / 0.7159 GB, free: 2.051 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03616/0.2422, allocations: 4.325 MB / 0.7201 GB, free: 13.89 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.07, allocations: 11.31 kB / 0.7201 GB, free: 13.88 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 sys.exit(0), Time elapsed: 14.777326456736773] Failed to read output from testmodel.py, exit status != 0: 11.180596026126295 11.210068369 11.0145311 Calling exit ...