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.001865/0.001865, allocations: 116.1 kB / 17.16 MB, free: 6.023 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.00198/0.00198, allocations: 205.5 kB / 20.13 MB, free: 3.078 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.462/1.462, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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.1345/0.1345, allocations: 23.89 MB / 333.4 MB, free: 1.164 MB / 254.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_master_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.001956/0.001956, allocations: 69.22 kB / 466.8 MB, free: 30.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08532/0.08727, allocations: 59.82 MB / 0.5142 GB, free: 12.89 MB / 382.1 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.04078/0.1281, allocations: 30.04 MB / 0.5436 GB, free: 14.89 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02695/0.155, allocations: 22.16 MB / 0.5652 GB, free: 8.652 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001229/0.1562, allocations: 27.81 kB / 0.5652 GB, free: 8.625 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001492/0.1577, allocations: 0.5816 MB / 0.5658 GB, free: 8.039 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003348/0.1611, allocations: 1.346 MB / 0.5671 GB, free: 6.684 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00788/0.169, allocations: 3.316 MB / 0.5703 GB, free: 3.348 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003115/0.1721, allocations: 2.402 MB / 0.5727 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001576/0.1736, allocations: 1.293 MB / 0.574 GB, free: 15.59 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001178/0.1748, allocations: 1.06 MB / 0.575 GB, free: 14.53 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00155/0.1764, allocations: 1.222 MB / 0.5762 GB, free: 13.3 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003401/0.1767, allocations: 236 kB / 0.5764 GB, free: 13.07 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006332/0.183, allocations: 2.367 MB / 0.5787 GB, free: 10.7 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006481/0.1837, allocations: 0.5413 MB / 0.5792 GB, free: 10.16 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001284/0.185, allocations: 1.136 MB / 0.5804 GB, free: 9.016 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009263/0.1942, allocations: 5.027 MB / 0.5853 GB, free: 3.969 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1942, allocations: 0 / 0.5853 GB, free: 3.969 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1942, allocations: 4 kB / 0.5853 GB, free: 3.965 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.512e-05/0.1943, allocations: 0 / 0.5853 GB, free: 3.965 MB / 446.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.005124/0.1994, allocations: 2.733 MB / 0.5879 GB, free: 1.172 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.1994, allocations: 8.031 kB / 0.5879 GB, free: 1.164 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.391e-05/0.1995, allocations: 59.92 kB / 0.588 GB, free: 1.105 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003206/0.1998, allocations: 262.5 kB / 0.5883 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00199/0.2018, allocations: 0.5067 MB / 0.5887 GB, free: 340 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2045/0.4063, allocations: 1.201 MB / 0.5899 GB, free: 63.34 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002216/0.4066, allocations: 198.6 kB / 0.5901 GB, free: 63.28 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005604/0.4071, allocations: 188.7 kB / 0.5903 GB, free: 63.28 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004551/0.4117, allocations: 2.667 MB / 0.5929 GB, free: 62.55 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.813e-05/0.4117, allocations: 5.094 kB / 0.5929 GB, free: 62.54 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001814/0.4119, allocations: 76.84 kB / 0.593 GB, free: 62.48 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.555e-05/0.4119, allocations: 50.62 kB / 0.593 GB, free: 62.48 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004671/0.4166, allocations: 3.285 MB / 0.5962 GB, free: 61.42 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.01119/0.4278, allocations: 8.529 MB / 0.6046 GB, free: 56.54 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001831/0.4296, allocations: 1.267 MB / 0.6058 GB, free: 55.85 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/0.4306, allocations: 0.5899 MB / 0.6064 GB, free: 55.59 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007381/0.438, allocations: 5.585 MB / 0.6118 GB, free: 51.12 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.133e-05/0.438, allocations: 46.03 kB / 0.6119 GB, free: 51.08 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008274/0.4389, allocations: 198.6 kB / 0.6121 GB, free: 50.99 MB / 446.1 MB Notification: Performance of pre-optimization done (n=81): time 2.405e-06/0.4389, allocations: 0 / 0.6121 GB, free: 50.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=115): time 0.02556/0.4644, allocations: 7.223 MB / 0.6191 GB, free: 47.02 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.502e-05/0.4645, allocations: 115.7 kB / 0.6192 GB, free: 46.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00165/0.4661, allocations: 1.863 MB / 0.621 GB, free: 45.86 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.921e-05/0.4662, allocations: 41.42 kB / 0.6211 GB, free: 45.81 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003756/0.4666, allocations: 1.048 MB / 0.6221 GB, free: 44.94 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002312/0.4668, allocations: 434.8 kB / 0.6225 GB, free: 44.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000499/0.4673, allocations: 424.2 kB / 0.6229 GB, free: 44.33 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.503e-05/0.4674, allocations: 305.1 kB / 0.6232 GB, free: 44.03 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001071/0.4684, allocations: 0.8549 MB / 0.6241 GB, free: 43.59 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001341/0.4698, allocations: 1.585 MB / 0.6256 GB, free: 42.18 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002371/0.4721, allocations: 2.337 MB / 0.6279 GB, free: 40.06 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-05/0.4721, allocations: 8 kB / 0.6279 GB, free: 40.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007259/0.4794, allocations: 3.292 MB / 0.6311 GB, free: 36.77 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.766e-05/0.4794, allocations: 19.94 kB / 0.6311 GB, free: 36.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.46e-05/0.4795, allocations: 27.94 kB / 0.6311 GB, free: 36.72 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004402/0.4839, allocations: 1.028 MB / 0.6322 GB, free: 35.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001269/0.4851, allocations: 435.3 kB / 0.6326 GB, free: 35.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007683/0.4928, allocations: 7.475 MB / 0.6399 GB, free: 27.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001707/0.4945, allocations: 97.92 kB / 0.64 GB, free: 27.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001829/0.4947, allocations: 116 kB / 0.6401 GB, free: 27.2 MB / 446.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.0006186/0.4953, allocations: 407.8 kB / 0.6405 GB, free: 26.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003024/0.4956, allocations: 151 kB / 0.6406 GB, free: 26.65 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006034/0.5017, allocations: 2.185 MB / 0.6427 GB, free: 24.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-06/0.5017, allocations: 12 kB / 0.6428 GB, free: 24.49 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.5017, allocations: 3.984 kB / 0.6428 GB, free: 24.48 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.314e-05/0.5017, allocations: 7.984 kB / 0.6428 GB, free: 24.48 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008272/0.51, allocations: 3.942 MB / 0.6466 GB, free: 20.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.51, allocations: 2.719 kB / 0.6466 GB, free: 20.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006898/0.5107, allocations: 179.7 kB / 0.6468 GB, free: 20.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004056/0.5147, allocations: 0.92 MB / 0.6477 GB, free: 19.39 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.836e-05/0.5148, allocations: 47.95 kB / 0.6477 GB, free: 19.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006339/0.5211, allocations: 6.764 MB / 0.6543 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.5212, allocations: 7.969 kB / 0.6543 GB, free: 12.17 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006444/0.5276, allocations: 2.905 MB / 0.6572 GB, free: 9.23 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003223/0.5279, allocations: 222.8 kB / 0.6574 GB, free: 8.996 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002083/0.5281, allocations: 24 kB / 0.6574 GB, free: 8.973 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008757/0.529, allocations: 31.98 kB / 0.6574 GB, free: 8.941 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002532/0.5293, allocations: 115.4 kB / 0.6576 GB, free: 8.832 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.088e-05/0.5293, allocations: 51.97 kB / 0.6576 GB, free: 8.781 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001111/0.5305, allocations: 1.298 MB / 0.6589 GB, free: 7.48 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5305, allocations: 0 / 0.6589 GB, free: 7.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002598/0.5331, allocations: 0.9741 MB / 0.6598 GB, free: 6.504 MB / 446.1 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.007873/0.5409, allocations: 4.366 MB / 0.6641 GB, free: 2.262 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003917/0.5448, allocations: 2.412 MB / 0.6664 GB, free: 15.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.5448, allocations: 0 / 0.6664 GB, free: 15.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00221/0.5471, allocations: 1.171 MB / 0.6676 GB, free: 14.58 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001475/0.5485, allocations: 244.2 kB / 0.6678 GB, free: 14.37 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03031/0.5788, allocations: 16.48 MB / 0.6839 GB, free: 13.23 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001024/0.5799, allocations: 1.308 MB / 0.6852 GB, free: 11.92 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001048/0.5809, allocations: 328.6 kB / 0.6855 GB, free: 11.69 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00103/0.5819, allocations: 0.7596 MB / 0.6862 GB, free: 10.93 MB / 478.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5819, allocations: 2.688 kB / 0.6863 GB, free: 10.93 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09877/0.6807, allocations: 51.14 MB / 0.7362 GB, free: 8.434 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.74/27.42, allocations: 14.97 kB / 0.7362 GB, free: 8.422 MB / 0.5137 GB " [Timeout remaining time 632] (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 sys.exit(0), Time elapsed: 30.403615574003197] Failed to read output from testmodel.py, exit status != 0: 27.60368813498644 27.630219931 27.431173421 Calling exit ...