Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.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.0008163/0.0008163, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008826/0.0008826, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8893/0.8893, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.09671/0.09671, allocations: 17.37 MB / 276.6 MB, free: 11.87 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.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(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 411.4 MB, free: 13.24 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.703e-05/1.85e-05, allocations: 2.281 kB / 411.4 MB, free: 13.23 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis): time 0.02459/0.02461, allocations: 29.53 MB / 441 MB, free: 11.39 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01852/0.04313, allocations: 19.46 MB / 460.4 MB, free: 9.398 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001362/0.0445, allocations: 31.75 kB / 460.5 MB, free: 9.367 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001074/0.04557, allocations: 0.5347 MB / 461 MB, free: 8.828 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002919/0.04849, allocations: 1.373 MB / 462.4 MB, free: 7.445 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006733/0.05522, allocations: 3.435 MB / 465.8 MB, free: 3.988 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002452/0.05767, allocations: 2.483 MB / 468.3 MB, free: 1.496 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001245/0.05892, allocations: 1.247 MB / 469.5 MB, free: 204 kB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001503/0.06042, allocations: 1.529 MB / 471.1 MB, free: 14.67 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009447/0.06137, allocations: 0.9467 MB / 472 MB, free: 13.72 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002545/0.06162, allocations: 236 kB / 472.2 MB, free: 13.49 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003966/0.06559, allocations: 2.246 MB / 474.5 MB, free: 11.24 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003115/0.0659, allocations: 0.549 MB / 475 MB, free: 10.69 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006421/0.06654, allocations: 0.8107 MB / 475.8 MB, free: 9.875 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005561/0.0721, allocations: 5.278 MB / 481.1 MB, free: 4.578 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.07211, allocations: 0 / 481.1 MB, free: 4.578 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.07211, allocations: 0 / 481.1 MB, free: 4.578 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.049e-05/0.07217, allocations: 0 / 481.1 MB, free: 4.578 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 484 * Number of variables: 484 Notification: Performance of Generate backend data structure: time 0.003091/0.07526, allocations: 2.636 MB / 483.8 MB, free: 1.898 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.0753, allocations: 8.031 kB / 483.8 MB, free: 1.891 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002127/0.07551, allocations: 266.5 kB / 484 MB, free: 1.621 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00105/0.07656, allocations: 0.5103 MB / 484.5 MB, free: 1.109 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001528/0.07809, allocations: 1.132 MB / 485.7 MB, free: 15.95 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001363/0.07822, allocations: 259.2 kB / 485.9 MB, free: 15.67 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001871/0.07841, allocations: 196.3 kB / 486.1 MB, free: 15.48 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002494/0.0809, allocations: 2.719 MB / 488.8 MB, free: 12.69 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.669e-05/0.08093, allocations: 0 / 488.8 MB, free: 12.69 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001272/0.08106, allocations: 83.98 kB / 488.9 MB, free: 12.61 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.523e-05/0.08108, allocations: 48 kB / 489 MB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002986/0.08407, allocations: 3.306 MB / 492.3 MB, free: 9.25 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007616/0.09169, allocations: 7.516 MB / 499.8 MB, free: 1.562 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.09321, allocations: 1.113 MB / 0.4892 GB, free: 436 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006262/0.09384, allocations: 0.5914 MB / 0.4897 GB, free: 15.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004388/0.09822, allocations: 3.399 MB / 0.4931 GB, free: 12.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.161e-05/0.09826, allocations: 47.22 kB / 0.4931 GB, free: 12.34 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004971/0.09875, allocations: 194.8 kB / 0.4933 GB, free: 12.15 MB / 410.7 MB Notification: Performance of pre-optimization done (n=81): time 2.956e-06/0.09876, allocations: 0 / 0.4933 GB, free: 12.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=115): time 0.01464/0.1134, allocations: 6.932 MB / 0.5001 GB, free: 5.168 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/0.1134, allocations: 115.8 kB / 0.5002 GB, free: 5.027 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001483/0.1149, allocations: 1.939 MB / 0.5021 GB, free: 3.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.378e-05/0.115, allocations: 45.7 kB / 0.5021 GB, free: 3.02 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006686/0.1157, allocations: 1.037 MB / 0.5031 GB, free: 1.969 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002275/0.1159, allocations: 428.4 kB / 0.5035 GB, free: 1.547 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003819/0.1163, allocations: 415.3 kB / 0.5039 GB, free: 1.133 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.357e-05/0.1163, allocations: 301.1 kB / 0.5042 GB, free: 0.8359 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009008/0.1172, allocations: 0.8786 MB / 0.5051 GB, free: 15.95 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001239/0.1185, allocations: 1.608 MB / 0.5066 GB, free: 14 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002268/0.1207, allocations: 2.348 MB / 0.5089 GB, free: 11.32 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.267e-06/0.1208, allocations: 8 kB / 0.5089 GB, free: 11.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.004641/0.1254, allocations: 3.331 MB / 0.5122 GB, free: 7.953 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/0.1254, allocations: 16 kB / 0.5122 GB, free: 7.938 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.636e-05/0.1254, allocations: 24 kB / 0.5122 GB, free: 7.914 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002461/0.1279, allocations: 1.035 MB / 0.5132 GB, free: 6.863 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007839/0.1287, allocations: 439.2 kB / 0.5137 GB, free: 6.434 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00639/0.1351, allocations: 7.112 MB / 0.5206 GB, free: 14.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009922/0.1361, allocations: 91.89 kB / 0.5207 GB, free: 14.85 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001423/0.1362, allocations: 116 kB / 0.5208 GB, free: 14.73 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (226): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,15), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0005956/0.1368, allocations: 405.1 kB / 0.5212 GB, free: 14.33 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000228/0.137, allocations: 166.9 kB / 0.5213 GB, free: 14.16 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003912/0.1409, allocations: 2.183 MB / 0.5235 GB, free: 11.96 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.141, allocations: 12 kB / 0.5235 GB, free: 11.95 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.141, allocations: 4 kB / 0.5235 GB, free: 11.95 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.141, allocations: 7.922 kB / 0.5235 GB, free: 11.94 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005784/0.1468, allocations: 3.691 MB / 0.5271 GB, free: 8.164 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.1468, allocations: 8.031 kB / 0.5271 GB, free: 8.156 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004041/0.1472, allocations: 175.8 kB / 0.5273 GB, free: 7.984 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002284/0.1494, allocations: 0.928 MB / 0.5282 GB, free: 7.043 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.242e-05/0.1495, allocations: 43.97 kB / 0.5282 GB, free: 7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005307/0.1548, allocations: 6.394 MB / 0.5345 GB, free: 240 kB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.1548, allocations: 11.88 kB / 0.5345 GB, free: 228 kB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004596/0.1594, allocations: 2.892 MB / 0.5373 GB, free: 13.29 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003237/0.1598, allocations: 143 kB / 0.5374 GB, free: 13.14 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001286/0.1599, allocations: 24 kB / 0.5375 GB, free: 13.12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004688/0.1603, allocations: 31.98 kB / 0.5375 GB, free: 13.09 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002159/0.1606, allocations: 116.7 kB / 0.5376 GB, free: 12.97 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.136e-05/0.1606, allocations: 51.97 kB / 0.5377 GB, free: 12.92 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001076/0.1617, allocations: 1.33 MB / 0.539 GB, free: 11.59 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1617, allocations: 0 / 0.539 GB, free: 11.59 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002229/0.1639, allocations: 0.9741 MB / 0.5399 GB, free: 10.61 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,17), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006227/0.1702, allocations: 4.395 MB / 0.5442 GB, free: 6.152 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00321/0.1734, allocations: 2.355 MB / 0.5465 GB, free: 3.762 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.1734, allocations: 8.125 kB / 0.5465 GB, free: 3.754 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001301/0.1747, allocations: 1.098 MB / 0.5476 GB, free: 2.617 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001064/0.1757, allocations: 239.8 kB / 0.5478 GB, free: 2.387 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01886/0.1946, allocations: 16.46 MB / 0.5639 GB, free: 0.9961 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007695/0.1954, allocations: 0.7296 MB / 0.5646 GB, free: 236 kB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0007443/0.1961, allocations: 327.9 kB / 0.5649 GB, free: 15.91 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006558/0.1968, allocations: 0.7619 MB / 0.5657 GB, free: 15.14 MB / 490.7 MB Notification: Performance of SimCode: time 1.132e-06/0.1968, allocations: 0 / 0.5657 GB, free: 15.14 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2033/0.4001, allocations: 52.52 MB / 0.6169 GB, free: 131.4 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.444/9.844, allocations: 7.078 kB / 0.617 GB, free: 131.4 MB / 490.7 MB " [Timeout remaining time 650] (rm -f Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis.fmu > Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.78016418684274] Failed to read output from testmodel.py, exit status != 0: 10.100349401123822 9.966647526 9.892750752 Calling exit ...