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.001811/0.001811, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.002345/0.002345, allocations: 217.5 kB / 22.25 MB, free: 5.105 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.455/1.455, allocations: 230.6 MB / 256 MB, free: 7.816 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.88 MB / 336.3 MB, free: 10.96 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="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: 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.001997/0.001997, allocations: 67.91 kB / 471.1 MB, free: 7.516 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.3136, allocations: 59.85 MB / 0.5185 GB, free: 9.598 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.07586/0.3895, allocations: 29.17 MB / 0.547 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02947/0.419, allocations: 19.46 MB / 0.566 GB, free: 8.953 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001841/0.4208, allocations: 31.81 kB / 0.5661 GB, free: 8.922 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001913/0.4227, allocations: 0.5254 MB / 0.5666 GB, free: 8.523 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004865/0.4276, allocations: 1.311 MB / 0.5678 GB, free: 7.391 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01056/0.4381, allocations: 3.348 MB / 0.5711 GB, free: 4.023 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004419/0.4426, allocations: 2.403 MB / 0.5735 GB, free: 1.605 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001805/0.4444, allocations: 1.274 MB / 0.5747 GB, free: 292 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001433/0.4458, allocations: 1.056 MB / 0.5757 GB, free: 15.23 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001859/0.4477, allocations: 1.23 MB / 0.5769 GB, free: 13.99 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004178/0.4481, allocations: 232 kB / 0.5772 GB, free: 13.77 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006621/0.4547, allocations: 2.282 MB / 0.5794 GB, free: 11.48 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008579/0.4555, allocations: 0.5374 MB / 0.5799 GB, free: 10.94 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001452/0.457, allocations: 0.9532 MB / 0.5808 GB, free: 9.984 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01222/0.4692, allocations: 5.019 MB / 0.5857 GB, free: 4.945 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.4692, allocations: 0 / 0.5857 GB, free: 4.945 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4692, allocations: 0 / 0.5857 GB, free: 4.945 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.036e-05/0.4693, allocations: 0 / 0.5857 GB, free: 4.945 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.006242/0.4756, allocations: 2.651 MB / 0.5883 GB, free: 2.25 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.4756, allocations: 8.031 kB / 0.5883 GB, free: 2.242 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003472/0.476, allocations: 270.4 kB / 0.5886 GB, free: 1.969 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002044/0.478, allocations: 0.5106 MB / 0.5891 GB, free: 1.457 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002365/0.4804, allocations: 1.137 MB / 0.5902 GB, free: 292 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002266/0.4806, allocations: 250.7 kB / 0.5905 GB, free: 16 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003569/0.4809, allocations: 188.1 kB / 0.5906 GB, free: 15.83 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004388/0.4853, allocations: 2.719 MB / 0.5933 GB, free: 13.04 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.239e-05/0.4854, allocations: 11.94 kB / 0.5933 GB, free: 13.03 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001932/0.4856, allocations: 76 kB / 0.5934 GB, free: 12.96 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-05/0.4856, allocations: 48 kB / 0.5934 GB, free: 12.91 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005082/0.4907, allocations: 3.314 MB / 0.5967 GB, free: 9.59 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.01354/0.5042, allocations: 7.527 MB / 0.604 GB, free: 1.898 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002048/0.5063, allocations: 1.105 MB / 0.6051 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001003/0.5073, allocations: 0.5911 MB / 0.6057 GB, free: 168 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008384/0.5157, allocations: 3.393 MB / 0.609 GB, free: 12.74 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.06e-05/0.5157, allocations: 51.16 kB / 0.609 GB, free: 12.68 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009832/0.5167, allocations: 202.8 kB / 0.6092 GB, free: 12.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 3.516e-06/0.5167, allocations: 0 / 0.6092 GB, free: 12.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.03141/0.5481, allocations: 6.917 MB / 0.616 GB, free: 5.512 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.081e-05/0.5482, allocations: 119.8 kB / 0.6161 GB, free: 5.371 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002544/0.5507, allocations: 1.939 MB / 0.618 GB, free: 3.414 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002594/0.551, allocations: 45.7 kB / 0.618 GB, free: 3.363 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008219/0.5518, allocations: 1.041 MB / 0.619 GB, free: 2.309 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005057/0.5523, allocations: 432.4 kB / 0.6194 GB, free: 1.883 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006577/0.553, allocations: 415.3 kB / 0.6198 GB, free: 1.469 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.5531, allocations: 309.1 kB / 0.6201 GB, free: 1.164 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001422/0.5545, allocations: 0.8707 MB / 0.621 GB, free: 296 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002188/0.5567, allocations: 1.608 MB / 0.6226 GB, free: 14.34 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003566/0.5603, allocations: 2.352 MB / 0.6249 GB, free: 11.65 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.097e-05/0.5603, allocations: 8 kB / 0.6249 GB, free: 11.64 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.00929/0.5696, allocations: 3.335 MB / 0.6281 GB, free: 8.281 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.698e-05/0.5696, allocations: 16 kB / 0.6281 GB, free: 8.266 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.033e-05/0.5697, allocations: 24 kB / 0.6282 GB, free: 8.242 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005432/0.5751, allocations: 1.026 MB / 0.6292 GB, free: 7.203 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001724/0.5768, allocations: 435.3 kB / 0.6296 GB, free: 6.777 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01125/0.5881, allocations: 7.129 MB / 0.6365 GB, free: 15.27 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001784/0.5898, allocations: 99.78 kB / 0.6366 GB, free: 15.18 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002753/0.5901, allocations: 120 kB / 0.6367 GB, free: 15.06 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.000808/0.5909, allocations: 412.1 kB / 0.6371 GB, free: 14.65 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004173/0.5913, allocations: 151 kB / 0.6373 GB, free: 14.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007206/0.5985, allocations: 2.18 MB / 0.6394 GB, free: 12.29 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.044e-05/0.5986, allocations: 19.94 kB / 0.6394 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.5986, allocations: 4 kB / 0.6394 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.867e-05/0.5986, allocations: 3.984 kB / 0.6394 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01069/0.6093, allocations: 3.694 MB / 0.643 GB, free: 8.484 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/0.6093, allocations: 7.938 kB / 0.6431 GB, free: 8.477 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008657/0.6102, allocations: 175.9 kB / 0.6432 GB, free: 8.305 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00496/0.6151, allocations: 0.9286 MB / 0.6441 GB, free: 7.359 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001979/0.6153, allocations: 39.97 kB / 0.6442 GB, free: 7.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009285/0.6246, allocations: 6.412 MB / 0.6504 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.6246, allocations: 0 / 0.6504 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008219/0.6328, allocations: 2.904 MB / 0.6533 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004207/0.6333, allocations: 135 kB / 0.6534 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002363/0.6335, allocations: 32 kB / 0.6534 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009819/0.6345, allocations: 28.27 kB / 0.6535 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002986/0.6348, allocations: 124.7 kB / 0.6536 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001289/0.6349, allocations: 51.97 kB / 0.6536 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001768/0.6367, allocations: 1.33 MB / 0.6549 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6367, allocations: 0 / 0.6549 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00315/0.6398, allocations: 0.9741 MB / 0.6559 GB, free: 10.91 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.01059/0.6504, allocations: 4.356 MB / 0.6601 GB, free: 6.496 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005317/0.6557, allocations: 2.359 MB / 0.6624 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.6557, allocations: 448 / 0.6624 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002383/0.6581, allocations: 1.098 MB / 0.6635 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001645/0.6598, allocations: 240.6 kB / 0.6637 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03359/0.6933, allocations: 16.58 MB / 0.6799 GB, free: 1.23 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009026/0.6942, allocations: 0.7218 MB / 0.6806 GB, free: 488 kB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001212/0.6955, allocations: 335 kB / 0.6809 GB, free: 152 kB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001157/0.6966, allocations: 0.757 MB / 0.6817 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of SimCode: time 8.82e-07/0.6966, allocations: 0 / 0.6817 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3357/1.032, allocations: 52.97 MB / 0.7334 GB, free: 178.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.3/16.34, allocations: 11.11 kB / 0.7334 GB, free: 178.2 MB / 0.5606 GB " [Timeout remaining time 644] (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: 19.02904031801154] Failed to read output from testmodel.py, exit status != 0: 16.490126668009907 16.509870906 16.036624245 Calling exit ...