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.001334/0.001334, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001644/0.001644, allocations: 217.3 kB / 22.25 MB, free: 5.117 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.406/1.406, allocations: 230.6 MB / 256 MB, free: 8.02 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.136/0.136, allocations: 23.9 MB / 336.3 MB, free: 11.14 MB / 270.1 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: 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.002112/0.002112, allocations: 67.88 kB / 471.2 MB, free: 7.633 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.3024, allocations: 59.88 MB / 0.5187 GB, free: 9.574 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.04089/0.3433, allocations: 30.27 MB / 0.5482 GB, free: 9.734 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03154/0.3749, allocations: 22.21 MB / 0.5699 GB, free: 5.277 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002175/0.377, allocations: 31.75 kB / 0.5699 GB, free: 5.246 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002313/0.3794, allocations: 0.5718 MB / 0.5705 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005347/0.3847, allocations: 1.366 MB / 0.5718 GB, free: 3.621 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01044/0.3951, allocations: 3.34 MB / 0.5751 GB, free: 268 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004309/0.3995, allocations: 2.395 MB / 0.5774 GB, free: 13.85 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002246/0.4017, allocations: 1.267 MB / 0.5787 GB, free: 12.54 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001804/0.4035, allocations: 1.056 MB / 0.5797 GB, free: 11.48 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002232/0.4057, allocations: 1.23 MB / 0.5809 GB, free: 10.25 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006816/0.4064, allocations: 232 kB / 0.5811 GB, free: 10.02 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007817/0.4142, allocations: 2.371 MB / 0.5834 GB, free: 7.645 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008776/0.4151, allocations: 0.5414 MB / 0.584 GB, free: 7.102 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001973/0.4171, allocations: 1.139 MB / 0.5851 GB, free: 5.957 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01156/0.4286, allocations: 5.015 MB / 0.59 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.4287, allocations: 0 / 0.59 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4287, allocations: 0 / 0.59 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001324/0.4288, allocations: 0 / 0.59 GB, free: 0.9219 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.006686/0.4355, allocations: 2.671 MB / 0.5926 GB, free: 14.2 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.4355, allocations: 12.03 kB / 0.5926 GB, free: 14.19 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005633/0.4361, allocations: 266.5 kB / 0.5928 GB, free: 13.92 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002294/0.4384, allocations: 0.5103 MB / 0.5933 GB, free: 13.41 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002504/0.4409, allocations: 1.149 MB / 0.5945 GB, free: 12.23 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002557/0.4411, allocations: 250.7 kB / 0.5947 GB, free: 11.96 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004314/0.4416, allocations: 188 kB / 0.5949 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004817/0.4464, allocations: 2.69 MB / 0.5975 GB, free: 9.02 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.502e-05/0.4464, allocations: 0 / 0.5975 GB, free: 9.02 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002229/0.4467, allocations: 87.94 kB / 0.5976 GB, free: 8.934 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.351e-05/0.4467, allocations: 44 kB / 0.5976 GB, free: 8.891 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005252/0.452, allocations: 3.346 MB / 0.6009 GB, free: 5.539 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.0142/0.4661, allocations: 8.483 MB / 0.6092 GB, free: 12.77 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002003/0.4682, allocations: 1.12 MB / 0.6103 GB, free: 11.63 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009973/0.4692, allocations: 0.5949 MB / 0.6109 GB, free: 11.02 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007988/0.4771, allocations: 3.584 MB / 0.6144 GB, free: 7.414 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.537e-05/0.4772, allocations: 55.08 kB / 0.6144 GB, free: 7.352 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000931/0.4781, allocations: 198.8 kB / 0.6146 GB, free: 7.156 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 5.189e-06/0.4781, allocations: 0 / 0.6146 GB, free: 7.156 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02814/0.5063, allocations: 6.917 MB / 0.6214 GB, free: 184 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.036e-05/0.5063, allocations: 119.8 kB / 0.6215 GB, free: 40 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002852/0.5092, allocations: 1.885 MB / 0.6233 GB, free: 14.14 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001193/0.5093, allocations: 49.7 kB / 0.6234 GB, free: 14.08 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008252/0.5101, allocations: 1.033 MB / 0.6244 GB, free: 13.04 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004329/0.5106, allocations: 436.4 kB / 0.6248 GB, free: 12.61 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007226/0.5113, allocations: 415.3 kB / 0.6252 GB, free: 12.19 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.5114, allocations: 309.1 kB / 0.6255 GB, free: 11.89 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00146/0.5129, allocations: 0.8707 MB / 0.6263 GB, free: 11.01 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002338/0.5152, allocations: 1.6 MB / 0.6279 GB, free: 9.066 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00353/0.5188, allocations: 2.36 MB / 0.6302 GB, free: 6.371 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.567e-05/0.5188, allocations: 4 kB / 0.6302 GB, free: 6.367 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008791/0.5276, allocations: 3.323 MB / 0.6334 GB, free: 3.02 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.32e-05/0.5276, allocations: 16 kB / 0.6335 GB, free: 3.004 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.491e-05/0.5277, allocations: 24 kB / 0.6335 GB, free: 2.98 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004902/0.5326, allocations: 1.05 MB / 0.6345 GB, free: 1.914 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001486/0.534, allocations: 431.3 kB / 0.6349 GB, free: 1.492 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01092/0.545, allocations: 7.184 MB / 0.6419 GB, free: 9.934 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00172/0.5467, allocations: 99.84 kB / 0.642 GB, free: 9.836 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003313/0.547, allocations: 116 kB / 0.6421 GB, free: 9.723 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.000956/0.548, allocations: 405.6 kB / 0.6425 GB, free: 9.316 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004962/0.5485, allocations: 151 kB / 0.6427 GB, free: 9.168 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007053/0.5555, allocations: 2.183 MB / 0.6448 GB, free: 6.961 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.632e-05/0.5555, allocations: 19.94 kB / 0.6448 GB, free: 6.941 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.5555, allocations: 0 / 0.6448 GB, free: 6.941 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-05/0.5556, allocations: 11.97 kB / 0.6448 GB, free: 6.93 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01034/0.5659, allocations: 3.908 MB / 0.6486 GB, free: 2.934 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.5659, allocations: 0 / 0.6486 GB, free: 2.934 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007515/0.5667, allocations: 171.8 kB / 0.6488 GB, free: 2.766 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004413/0.5711, allocations: 0.9287 MB / 0.6497 GB, free: 1.82 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001211/0.5712, allocations: 43.97 kB / 0.6498 GB, free: 1.777 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008963/0.5802, allocations: 6.456 MB / 0.6561 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.748e-06/0.5802, allocations: 4.219 kB / 0.6561 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007664/0.5878, allocations: 2.9 MB / 0.6589 GB, free: 8 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004244/0.5883, allocations: 147 kB / 0.659 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003135/0.5886, allocations: 31.88 kB / 0.6591 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009993/0.5896, allocations: 31.98 kB / 0.6591 GB, free: 7.793 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002875/0.5899, allocations: 116.7 kB / 0.6592 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001269/0.59, allocations: 51.91 kB / 0.6593 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001841/0.5918, allocations: 1.33 MB / 0.6606 GB, free: 6.297 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5918, allocations: 0 / 0.6606 GB, free: 6.297 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003401/0.5952, allocations: 0.9741 MB / 0.6615 GB, free: 5.32 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.01006/0.6053, allocations: 4.36 MB / 0.6658 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005064/0.6104, allocations: 2.358 MB / 0.6681 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.6104, allocations: 4.812 kB / 0.6681 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002248/0.6126, allocations: 1.098 MB / 0.6692 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00179/0.6144, allocations: 249.1 kB / 0.6694 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03503/0.6494, allocations: 16.56 MB / 0.6856 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001438/0.6509, allocations: 1.314 MB / 0.6868 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001228/0.6521, allocations: 327.9 kB / 0.6872 GB, free: 9.969 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001183/0.6533, allocations: 0.7569 MB / 0.6879 GB, free: 9.211 MB / 0.5294 GB Notification: Performance of SimCode: time 1.774e-06/0.6533, allocations: 0 / 0.6879 GB, free: 9.211 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.324/0.9773, allocations: 52.75 MB / 0.7394 GB, free: 175.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.8/27.78, allocations: 3.656 kB / 0.7394 GB, free: 175.1 MB / 0.5606 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.527340044965968] Failed to read output from testmodel.py, exit status != 0: 27.92741711391136 27.949601132 27.516685596 Calling exit ...