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.001759/0.001759, allocations: 103.6 kB / 18.95 MB, free: 2.547 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.002366/0.002366, allocations: 214.6 kB / 22.25 MB, free: 4.867 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.537/1.537, allocations: 230.6 MB / 256 MB, free: 7.797 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.8657/0.8657, allocations: 134 MB / 446.4 MB, free: 9.902 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.001991/0.001991, allocations: 64.17 kB / 0.6185 GB, free: 6.879 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1938/0.1958, allocations: 85.92 MB / 0.7024 GB, free: 1.055 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.00323/0.199, allocations: 1.607 MB / 0.7039 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001179/0.2002, allocations: 0.6467 MB / 0.7046 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.443e-05/0.2003, allocations: 7.938 kB / 0.7046 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.000155/0.2004, allocations: 23.73 kB / 0.7046 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002139/0.2006, allocations: 47.75 kB / 0.7047 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000416/0.2011, allocations: 123.7 kB / 0.7048 GB, free: 14.58 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002625/0.2013, allocations: 191.6 kB / 0.705 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.2014, allocations: 17.91 kB / 0.705 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000196/0.2016, allocations: 83.81 kB / 0.7051 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001381/0.2018, allocations: 83.66 kB / 0.7051 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.688e-05/0.2018, allocations: 16 kB / 0.7051 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000146/0.202, allocations: 43.92 kB / 0.7052 GB, free: 14.15 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.218e-05/0.202, allocations: 35.91 kB / 0.7052 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 8.497e-05/0.2021, allocations: 59.78 kB / 0.7053 GB, free: 14.06 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002546/0.2024, allocations: 179.2 kB / 0.7054 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2024, allocations: 0 / 0.7054 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.423e-06/0.2024, allocations: 0 / 0.7054 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.151e-06/0.2024, allocations: 0 / 0.7054 GB, free: 13.88 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.0007353/0.2031, allocations: 496.4 kB / 0.7059 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.2032, allocations: 8.031 kB / 0.7059 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.715e-05/0.2032, allocations: 38.75 kB / 0.706 GB, free: 13.29 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001675/0.2034, allocations: 36.83 kB / 0.706 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003575/0.2037, allocations: 178.4 kB / 0.7062 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.2038, allocations: 8.375 kB / 0.7062 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.71e-05/0.2038, allocations: 16.38 kB / 0.7062 GB, free: 13.03 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003152/0.2041, allocations: 172.9 kB / 0.7064 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.2041, allocations: 3.938 kB / 0.7064 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/0.2041, allocations: 4 kB / 0.7064 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.2041, allocations: 0 / 0.7064 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002421/0.2044, allocations: 139.3 kB / 0.7065 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007361/0.2051, allocations: 367.7 kB / 0.7069 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002335/0.2054, allocations: 134 kB / 0.707 GB, free: 12.13 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001992/0.2056, allocations: 128.2 kB / 0.7071 GB, free: 11.99 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.587e-05/0.2056, allocations: 3.984 kB / 0.7071 GB, free: 11.99 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003241/0.2059, allocations: 234.1 kB / 0.7073 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=10): time 1.363e-06/0.2059, allocations: 0 / 0.7073 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of matching and sorting (n=10): time 0.0008489/0.2068, allocations: 487.7 kB / 0.7078 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/0.2069, allocations: 162.2 kB / 0.7079 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001997/0.2071, allocations: 176.8 kB / 0.7081 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/0.2071, allocations: 29.7 kB / 0.7081 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 9.331e-05/0.2072, allocations: 112.3 kB / 0.7083 GB, free: 10.67 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 3.826e-05/0.2072, allocations: 27.78 kB / 0.7083 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.362e-05/0.2073, allocations: 45.7 kB / 0.7083 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001603/0.2075, allocations: 330.8 kB / 0.7086 GB, free: 10.26 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002059/0.2077, allocations: 162.8 kB / 0.7088 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002478/0.2079, allocations: 217.6 kB / 0.709 GB, free: 9.816 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003778/0.2083, allocations: 305 kB / 0.7093 GB, free: 9.457 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.2083, allocations: 0 / 0.7093 GB, free: 9.457 MB / 0.5294 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006315/0.2089, allocations: 466.9 kB / 0.7097 GB, free: 8.945 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.18e-05/0.209, allocations: 119 kB / 0.7099 GB, free: 8.805 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.209, allocations: 8 kB / 0.7099 GB, free: 8.797 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.2091, allocations: 4 kB / 0.7099 GB, free: 8.793 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.2092, allocations: 19.92 kB / 0.7099 GB, free: 8.773 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.797e-06/0.2092, allocations: 4 kB / 0.7099 GB, free: 8.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.2093, allocations: 19.89 kB / 0.7099 GB, free: 8.75 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.243e-05/0.2093, allocations: 11.98 kB / 0.7099 GB, free: 8.738 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.0001693/0.2095, allocations: 193.1 kB / 0.7101 GB, free: 8.527 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.795e-05/0.2095, allocations: 23.91 kB / 0.7101 GB, free: 8.504 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.092e-05/0.2096, allocations: 17.39 kB / 0.7101 GB, free: 8.484 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-06/0.2096, allocations: 4 kB / 0.7101 GB, free: 8.48 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.944e-06/0.2096, allocations: 7.922 kB / 0.7102 GB, free: 8.473 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.2096, allocations: 0 / 0.7102 GB, free: 8.473 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008124/0.2104, allocations: 0.594 MB / 0.7107 GB, free: 7.805 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2104, allocations: 4 kB / 0.7107 GB, free: 7.801 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.233e-05/0.2104, allocations: 11.94 kB / 0.7107 GB, free: 7.789 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.2104, allocations: 4.266 kB / 0.7107 GB, free: 7.785 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.652e-05/0.2105, allocations: 12 kB / 0.7108 GB, free: 7.773 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.2105, allocations: 0 / 0.7108 GB, free: 7.773 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.2105, allocations: 11.88 kB / 0.7108 GB, free: 7.762 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006301/0.2111, allocations: 466.1 kB / 0.7112 GB, free: 7.266 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 2.195e-05/0.2111, allocations: 11.91 kB / 0.7112 GB, free: 7.254 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.315e-05/0.2112, allocations: 4 kB / 0.7112 GB, free: 7.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.2113, allocations: 11.98 kB / 0.7112 GB, free: 7.238 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.238e-05/0.2113, allocations: 19.91 kB / 0.7113 GB, free: 7.219 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.2113, allocations: 4 kB / 0.7113 GB, free: 7.215 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001235/0.2115, allocations: 137.1 kB / 0.7114 GB, free: 7.082 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7e-08/0.2115, allocations: 0 / 0.7114 GB, free: 7.082 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002964/0.2118, allocations: 43.94 kB / 0.7114 GB, free: 7.039 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.001106/0.2129, allocations: 1.011 MB / 0.7124 GB, free: 5.98 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0006395/0.2135, allocations: 0.5192 MB / 0.7129 GB, free: 5.375 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.2135, allocations: 4 kB / 0.7129 GB, free: 5.371 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.000281/0.2138, allocations: 246.1 kB / 0.7132 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.0003364/0.2141, allocations: 25.64 kB / 0.7132 GB, free: 5.074 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003147/0.2173, allocations: 2.626 MB / 0.7158 GB, free: 2.195 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001119/0.2174, allocations: 97.77 kB / 0.7159 GB, free: 2.078 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 7.195e-05/0.2175, allocations: 20.47 kB / 0.7159 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.437e-05/0.2175, allocations: 39.42 kB / 0.7159 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of SimCode: time 9.12e-07/0.2175, allocations: 0 / 0.7159 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03466/0.2522, allocations: 4.322 MB / 0.7201 GB, free: 13.86 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.17, allocations: 4.062 kB / 0.7201 GB, free: 13.86 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 & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter_res.csv --start-time -1.21 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004484 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: 15.132863899227232] Failed to read output from testmodel.py, exit status != 0: 11.274911643005908 11.306265752 11.098134045 Calling exit ...