Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.0007377/0.0007377, 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.0007763/0.0007763, 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.8667/0.8667, 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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.08273/0.08273, allocations: 17.46 MB / 276.6 MB, free: 11.78 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 411.6 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.502e-05/1.657e-05, allocations: 3.125 kB / 411.6 MB, free: 12.46 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.01938/0.0194, allocations: 29.53 MB / 441.1 MB, free: 10.93 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01468/0.03408, allocations: 19.47 MB / 460.6 MB, free: 8.965 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00071/0.03479, allocations: 27.81 kB / 460.6 MB, free: 8.938 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009138/0.03571, allocations: 0.5347 MB / 461.2 MB, free: 8.398 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002028/0.03773, allocations: 1.373 MB / 462.5 MB, free: 7.016 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005119/0.04285, allocations: 3.435 MB / 466 MB, free: 3.559 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001776/0.04463, allocations: 2.483 MB / 468.4 MB, free: 1.066 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009627/0.04559, allocations: 1.255 MB / 469.7 MB, free: 15.76 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009603/0.04655, allocations: 1.525 MB / 471.2 MB, free: 14.23 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007532/0.04731, allocations: 0.9468 MB / 472.2 MB, free: 13.29 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001853/0.04749, allocations: 240 kB / 472.4 MB, free: 13.05 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003065/0.05056, allocations: 2.246 MB / 474.6 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002868/0.05084, allocations: 0.549 MB / 475.2 MB, free: 10.25 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004797/0.05132, allocations: 0.8223 MB / 476 MB, free: 9.426 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00367/0.05499, allocations: 5.266 MB / 481.3 MB, free: 4.141 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.055, allocations: 0 / 481.3 MB, free: 4.141 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.055, allocations: 0 / 481.3 MB, free: 4.141 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.557e-05/0.05501, allocations: 0 / 481.3 MB, free: 4.141 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.002535/0.05755, allocations: 2.636 MB / 483.9 MB, free: 1.461 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.05758, allocations: 12.03 kB / 483.9 MB, free: 1.449 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001998/0.05778, allocations: 262.5 kB / 484.2 MB, free: 1.184 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009468/0.05873, allocations: 0.5106 MB / 484.7 MB, free: 0.6719 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001292/0.06002, allocations: 1.132 MB / 485.8 MB, free: 15.51 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.06015, allocations: 255.2 kB / 486.1 MB, free: 15.24 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001794/0.06033, allocations: 188.4 kB / 486.3 MB, free: 15.05 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002372/0.0627, allocations: 2.727 MB / 489 MB, free: 12.26 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.537e-05/0.06272, allocations: 0 / 489 MB, free: 12.26 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001181/0.06284, allocations: 76 kB / 489.1 MB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.352e-05/0.06286, allocations: 48 kB / 489.1 MB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002849/0.06571, allocations: 3.314 MB / 492.4 MB, free: 8.816 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.007012/0.07273, allocations: 7.512 MB / 499.9 MB, free: 1.133 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00132/0.07405, allocations: 1.11 MB / 0.4893 GB, free: 0 / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005794/0.07462, allocations: 0.5951 MB / 0.4899 GB, free: 15.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003939/0.07856, allocations: 3.391 MB / 0.4932 GB, free: 11.97 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.07859, allocations: 47.16 kB / 0.4932 GB, free: 11.92 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003772/0.07896, allocations: 202.8 kB / 0.4934 GB, free: 11.72 MB / 410.7 MB Notification: Performance of pre-optimization done (n=81): time 1.703e-06/0.07897, allocations: 0 / 0.4934 GB, free: 11.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=115): time 0.01297/0.09194, allocations: 6.928 MB / 0.5002 GB, free: 4.742 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.875e-05/0.09199, allocations: 119.8 kB / 0.5003 GB, free: 4.598 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001299/0.09329, allocations: 1.943 MB / 0.5022 GB, free: 2.637 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.881e-05/0.09335, allocations: 41.7 kB / 0.5023 GB, free: 2.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005435/0.09389, allocations: 1.037 MB / 0.5033 GB, free: 1.539 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002082/0.0941, allocations: 424.4 kB / 0.5037 GB, free: 1.121 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003707/0.09447, allocations: 419.3 kB / 0.5041 GB, free: 0.7031 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.357e-05/0.09453, allocations: 301.1 kB / 0.5044 GB, free: 416 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008507/0.09538, allocations: 0.8747 MB / 0.5052 GB, free: 15.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00116/0.09654, allocations: 1.604 MB / 0.5068 GB, free: 13.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002167/0.09871, allocations: 2.348 MB / 0.5091 GB, free: 10.89 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/0.09872, allocations: 8 kB / 0.5091 GB, free: 10.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.004303/0.103, allocations: 3.335 MB / 0.5123 GB, free: 7.527 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.647e-05/0.103, allocations: 19.94 kB / 0.5124 GB, free: 7.508 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.193e-05/0.1031, allocations: 27.98 kB / 0.5124 GB, free: 7.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00224/0.1053, allocations: 1.033 MB / 0.5134 GB, free: 6.434 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000715/0.106, allocations: 431.3 kB / 0.5138 GB, free: 6.012 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00563/0.1117, allocations: 7.12 MB / 0.5208 GB, free: 14.51 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007125/0.1124, allocations: 91.84 kB / 0.5208 GB, free: 14.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00012/0.1125, allocations: 116 kB / 0.521 GB, free: 14.31 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.0004672/0.113, allocations: 413.1 kB / 0.5213 GB, free: 13.89 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001772/0.1131, allocations: 155 kB / 0.5215 GB, free: 13.74 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003508/0.1166, allocations: 2.176 MB / 0.5236 GB, free: 11.54 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.1166, allocations: 12 kB / 0.5236 GB, free: 11.53 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1166, allocations: 4 kB / 0.5236 GB, free: 11.53 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.1167, allocations: 11.91 kB / 0.5236 GB, free: 11.52 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004997/0.1217, allocations: 3.695 MB / 0.5273 GB, free: 7.734 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.1217, allocations: 12.16 kB / 0.5273 GB, free: 7.723 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003642/0.122, allocations: 171.8 kB / 0.5274 GB, free: 7.555 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002004/0.124, allocations: 0.9169 MB / 0.5283 GB, free: 6.621 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.459e-05/0.1241, allocations: 51.95 kB / 0.5284 GB, free: 6.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004715/0.1288, allocations: 6.404 MB / 0.5346 GB, free: 15.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.1288, allocations: 4 kB / 0.5346 GB, free: 15.79 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00406/0.1329, allocations: 2.888 MB / 0.5375 GB, free: 12.86 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001658/0.133, allocations: 147 kB / 0.5376 GB, free: 12.71 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.1331, allocations: 31.92 kB / 0.5376 GB, free: 12.68 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004255/0.1336, allocations: 31.94 kB / 0.5377 GB, free: 12.65 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001736/0.1337, allocations: 116.7 kB / 0.5378 GB, free: 12.54 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.976e-05/0.1338, allocations: 52.09 kB / 0.5378 GB, free: 12.48 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0009316/0.1347, allocations: 1.326 MB / 0.5391 GB, free: 11.16 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1347, allocations: 0 / 0.5391 GB, free: 11.16 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001888/0.1366, allocations: 0.9742 MB / 0.5401 GB, free: 10.18 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.005165/0.1418, allocations: 4.39 MB / 0.5443 GB, free: 5.723 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002626/0.1444, allocations: 2.359 MB / 0.5467 GB, free: 3.328 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1444, allocations: 8.25 kB / 0.5467 GB, free: 3.32 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001079/0.1455, allocations: 1.087 MB / 0.5477 GB, free: 2.195 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008133/0.1463, allocations: 251.7 kB / 0.548 GB, free: 1.957 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01659/0.1629, allocations: 16.46 MB / 0.564 GB, free: 0.5703 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004921/0.1634, allocations: 0.7218 MB / 0.5647 GB, free: 15.81 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0006481/0.164, allocations: 335.1 kB / 0.5651 GB, free: 15.48 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006798/0.1647, allocations: 0.7618 MB / 0.5658 GB, free: 14.72 MB / 490.7 MB Notification: Performance of SimCode: time 7.41e-07/0.1647, allocations: 3.938 kB / 0.5658 GB, free: 14.72 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1821/0.3469, allocations: 52.53 MB / 0.6171 GB, free: 130.8 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.261/9.608, allocations: 1.75 kB / 0.6171 GB, free: 130.8 MB / 490.7 MB " [Timeout remaining time 650] (rm -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis.fmu > Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.454068824648857] Failed to read output from testmodel.py, exit status != 0: 9.865085286088288 9.730062303 9.673627747 Calling exit ...