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.001713/0.001713, 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.001591/0.001591, allocations: 220 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.452/1.452, 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/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.1358/0.1358, allocations: 23.87 MB / 337.1 MB, free: 10.97 MB / 270.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical 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.002057/0.002057, allocations: 63.91 kB / 471.9 MB, free: 7.516 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.2961, allocations: 59.86 MB / 0.5193 GB, free: 9.543 MB / 382.1 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.07216/0.3683, allocations: 28.89 MB / 0.5475 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02741/0.3957, allocations: 19.45 MB / 0.5665 GB, free: 9.27 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001665/0.3974, allocations: 31.75 kB / 0.5665 GB, free: 9.238 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001717/0.3991, allocations: 0.5251 MB / 0.567 GB, free: 8.84 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004768/0.4039, allocations: 1.316 MB / 0.5683 GB, free: 7.695 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009261/0.4131, allocations: 3.348 MB / 0.5716 GB, free: 4.328 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003852/0.417, allocations: 2.403 MB / 0.5739 GB, free: 1.91 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001807/0.4188, allocations: 1.255 MB / 0.5752 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001514/0.4203, allocations: 1.067 MB / 0.5762 GB, free: 15.54 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001753/0.422, allocations: 1.218 MB / 0.5774 GB, free: 14.32 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003676/0.4224, allocations: 236 kB / 0.5776 GB, free: 14.09 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006176/0.4286, allocations: 2.293 MB / 0.5799 GB, free: 11.79 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006907/0.4293, allocations: 0.5335 MB / 0.5804 GB, free: 11.25 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001303/0.4306, allocations: 0.9532 MB / 0.5813 GB, free: 10.3 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01153/0.4421, allocations: 5.015 MB / 0.5862 GB, free: 5.262 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.4421, allocations: 0 / 0.5862 GB, free: 5.262 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.4421, allocations: 0 / 0.5862 GB, free: 5.262 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.783e-05/0.4422, allocations: 0 / 0.5862 GB, free: 5.262 MB / 430.1 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.005495/0.4477, allocations: 2.659 MB / 0.5888 GB, free: 2.559 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.4477, allocations: 12.03 kB / 0.5888 GB, free: 2.547 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.329e-05/0.4478, allocations: 47.98 kB / 0.5889 GB, free: 2.5 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003416/0.4481, allocations: 270.5 kB / 0.5891 GB, free: 2.227 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002045/0.4502, allocations: 0.5066 MB / 0.5896 GB, free: 1.719 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002125/0.4523, allocations: 1.137 MB / 0.5907 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000224/0.4525, allocations: 254.5 kB / 0.591 GB, free: 280 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003313/0.4529, allocations: 184 kB / 0.5912 GB, free: 96 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004494/0.4573, allocations: 2.723 MB / 0.5938 GB, free: 13.3 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.727e-05/0.4574, allocations: 0 / 0.5938 GB, free: 13.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001992/0.4576, allocations: 84 kB / 0.5939 GB, free: 13.22 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.022e-05/0.4576, allocations: 44 kB / 0.5939 GB, free: 13.18 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005186/0.4628, allocations: 3.346 MB / 0.5972 GB, free: 9.824 MB / 446.1 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.01331/0.4761, allocations: 7.531 MB / 0.6046 GB, free: 2.129 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002033/0.4782, allocations: 1.101 MB / 0.6056 GB, free: 1.004 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/0.4792, allocations: 0.6066 MB / 0.6062 GB, free: 392 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007725/0.4869, allocations: 3.381 MB / 0.6095 GB, free: 12.97 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.959e-05/0.4869, allocations: 55.14 kB / 0.6096 GB, free: 12.91 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009103/0.4878, allocations: 194.8 kB / 0.6098 GB, free: 12.72 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 3.326e-06/0.4879, allocations: 0 / 0.6098 GB, free: 12.72 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02927/0.5171, allocations: 6.928 MB / 0.6165 GB, free: 5.734 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.455e-05/0.5172, allocations: 115.8 kB / 0.6166 GB, free: 5.598 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002342/0.5195, allocations: 1.885 MB / 0.6185 GB, free: 3.695 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001226/0.5197, allocations: 49.7 kB / 0.6185 GB, free: 3.641 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000811/0.5205, allocations: 1.037 MB / 0.6195 GB, free: 2.59 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004143/0.5209, allocations: 436.4 kB / 0.62 GB, free: 2.16 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007134/0.5216, allocations: 419.3 kB / 0.6204 GB, free: 1.742 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.5217, allocations: 309.1 kB / 0.6207 GB, free: 1.438 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001443/0.5232, allocations: 0.8747 MB / 0.6215 GB, free: 0.5586 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002147/0.5253, allocations: 1.604 MB / 0.6231 GB, free: 14.61 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003444/0.5288, allocations: 2.348 MB / 0.6254 GB, free: 11.93 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.9e-05/0.5288, allocations: 11.94 kB / 0.6254 GB, free: 11.91 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008953/0.5377, allocations: 3.319 MB / 0.6286 GB, free: 8.57 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.451e-05/0.5378, allocations: 16 kB / 0.6286 GB, free: 8.555 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.289e-05/0.5378, allocations: 24 kB / 0.6287 GB, free: 8.531 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005141/0.543, allocations: 1.042 MB / 0.6297 GB, free: 7.473 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001561/0.5445, allocations: 435.3 kB / 0.6301 GB, free: 7.047 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01085/0.5554, allocations: 7.13 MB / 0.6371 GB, free: 15.54 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001738/0.5571, allocations: 91.84 kB / 0.6371 GB, free: 15.45 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002452/0.5574, allocations: 116 kB / 0.6373 GB, free: 15.34 MB / 494.1 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.0007781/0.5581, allocations: 413.6 kB / 0.6376 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00038/0.5585, allocations: 155 kB / 0.6378 GB, free: 14.77 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007151/0.5657, allocations: 2.179 MB / 0.6399 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.719e-05/0.5657, allocations: 12 kB / 0.6399 GB, free: 12.56 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.5657, allocations: 4 kB / 0.6399 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-05/0.5657, allocations: 7.969 kB / 0.6399 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01041/0.5761, allocations: 3.694 MB / 0.6436 GB, free: 8.766 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/0.5761, allocations: 4 kB / 0.6436 GB, free: 8.762 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008336/0.577, allocations: 175.8 kB / 0.6437 GB, free: 8.59 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004694/0.5817, allocations: 0.9247 MB / 0.6446 GB, free: 7.648 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001559/0.5818, allocations: 51.95 kB / 0.6447 GB, free: 7.598 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009007/0.5908, allocations: 6.406 MB / 0.6509 GB, free: 0.832 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.5908, allocations: 7.922 kB / 0.6509 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00775/0.5986, allocations: 2.9 MB / 0.6538 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003788/0.5989, allocations: 151 kB / 0.6539 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002243/0.5992, allocations: 24 kB / 0.6539 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009199/0.6001, allocations: 31.98 kB / 0.654 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003008/0.6004, allocations: 120.7 kB / 0.6541 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000119/0.6005, allocations: 51.97 kB / 0.6541 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001681/0.6022, allocations: 1.322 MB / 0.6554 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6022, allocations: 0 / 0.6554 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003083/0.6053, allocations: 0.9742 MB / 0.6564 GB, free: 11.2 MB / 0.4981 GB 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.01/0.6153, allocations: 4.359 MB / 0.6606 GB, free: 6.777 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004986/0.6203, allocations: 2.359 MB / 0.6629 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.6203, allocations: 8.062 kB / 0.6629 GB, free: 4.375 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002251/0.6225, allocations: 1.094 MB / 0.664 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001536/0.6241, allocations: 233.2 kB / 0.6642 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03291/0.657, allocations: 16.58 MB / 0.6804 GB, free: 1.52 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008854/0.6579, allocations: 0.7335 MB / 0.6811 GB, free: 0.7539 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001178/0.659, allocations: 331.4 kB / 0.6815 GB, free: 440 kB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001092/0.6601, allocations: 0.757 MB / 0.6822 GB, free: 15.67 MB / 0.5294 GB Notification: Performance of SimCode: time 1.183e-06/0.6601, allocations: 0 / 0.6822 GB, free: 15.67 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3097/0.9698, allocations: 52.49 MB / 0.7335 GB, free: 176.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.85/28.82, allocations: 3.344 kB / 0.7335 GB, free: 176.8 MB / 0.5606 GB " [Timeout remaining time 631] (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: 31.574255823041312] Failed to read output from testmodel.py, exit status != 0: 29.034719901974313 29.054697459 28.609404318 Calling exit ...