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.001752/0.001752, allocations: 107.3 kB / 16.45 MB, free: 6.508 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.002072/0.002072, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.409/1.409, allocations: 230.6 MB / 252.8 MB, free: 9.109 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.1976/0.1976, allocations: 23.88 MB / 332.7 MB, free: 12.34 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.001954/0.001954, allocations: 63.89 kB / 466.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.2996, allocations: 59.82 MB / 0.5136 GB, free: 8.84 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.04064/0.3402, allocations: 30.23 MB / 0.5431 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02818/0.3684, allocations: 22.15 MB / 0.5647 GB, free: 6.207 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001902/0.3703, allocations: 31.75 kB / 0.5647 GB, free: 6.176 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002088/0.3724, allocations: 0.5756 MB / 0.5653 GB, free: 5.727 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00478/0.3772, allocations: 1.354 MB / 0.5666 GB, free: 4.578 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009491/0.3867, allocations: 3.306 MB / 0.5699 GB, free: 1.559 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003929/0.3906, allocations: 2.399 MB / 0.5722 GB, free: 15.15 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001682/0.3923, allocations: 1.297 MB / 0.5735 GB, free: 13.8 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001189/0.3935, allocations: 1.06 MB / 0.5745 GB, free: 12.74 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001486/0.3949, allocations: 1.226 MB / 0.5757 GB, free: 11.51 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003192/0.3953, allocations: 236 kB / 0.5759 GB, free: 11.28 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007435/0.4027, allocations: 2.375 MB / 0.5782 GB, free: 8.898 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005955/0.4033, allocations: 0.5297 MB / 0.5788 GB, free: 8.367 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001356/0.4046, allocations: 1.139 MB / 0.5799 GB, free: 7.223 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0109/0.4155, allocations: 5.019 MB / 0.5848 GB, free: 2.184 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.4156, allocations: 4 kB / 0.5848 GB, free: 2.18 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4156, allocations: 0 / 0.5848 GB, free: 2.18 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.429e-05/0.4156, allocations: 0 / 0.5848 GB, free: 2.18 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.005127/0.4207, allocations: 2.746 MB / 0.5875 GB, free: 15.37 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.4208, allocations: 8.031 kB / 0.5875 GB, free: 15.36 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003272/0.4211, allocations: 266.5 kB / 0.5877 GB, free: 15.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001938/0.423, allocations: 0.5064 MB / 0.5882 GB, free: 14.59 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001992/0.425, allocations: 1.205 MB / 0.5894 GB, free: 13.34 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001942/0.4252, allocations: 207.3 kB / 0.5896 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002929/0.4255, allocations: 184 kB / 0.5898 GB, free: 12.94 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004041/0.4296, allocations: 2.659 MB / 0.5924 GB, free: 10.22 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.302e-05/0.4296, allocations: 4 kB / 0.5924 GB, free: 10.21 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001876/0.4298, allocations: 76 kB / 0.5924 GB, free: 10.14 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.18e-05/0.4298, allocations: 51.98 kB / 0.5925 GB, free: 10.09 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004887/0.4347, allocations: 3.291 MB / 0.5957 GB, free: 6.793 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.01285/0.4476, allocations: 8.528 MB / 0.604 GB, free: 13.98 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002008/0.4496, allocations: 1.264 MB / 0.6053 GB, free: 12.65 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009587/0.4505, allocations: 0.5989 MB / 0.6058 GB, free: 12.05 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008575/0.4591, allocations: 5.587 MB / 0.6113 GB, free: 5.938 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.86e-05/0.4591, allocations: 55.08 kB / 0.6114 GB, free: 5.875 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000841/0.46, allocations: 190.8 kB / 0.6115 GB, free: 5.688 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 2.695e-06/0.46, allocations: 4 kB / 0.6115 GB, free: 5.684 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02807/0.4881, allocations: 7.226 MB / 0.6186 GB, free: 14.33 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.662e-05/0.4881, allocations: 115.8 kB / 0.6187 GB, free: 14.19 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002479/0.4906, allocations: 1.857 MB / 0.6205 GB, free: 12.32 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001222/0.4907, allocations: 45.7 kB / 0.6206 GB, free: 12.27 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007957/0.4915, allocations: 1.037 MB / 0.6216 GB, free: 11.21 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004567/0.492, allocations: 436.4 kB / 0.622 GB, free: 10.79 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007104/0.4927, allocations: 415.3 kB / 0.6224 GB, free: 10.37 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.4928, allocations: 309.1 kB / 0.6227 GB, free: 10.07 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001448/0.4943, allocations: 0.8512 MB / 0.6235 GB, free: 9.211 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00211/0.4964, allocations: 1.592 MB / 0.6251 GB, free: 7.27 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003404/0.4998, allocations: 2.333 MB / 0.6273 GB, free: 4.602 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.732e-05/0.4998, allocations: 7.938 kB / 0.6274 GB, free: 4.594 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.00848/0.5083, allocations: 3.288 MB / 0.6306 GB, free: 1.281 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.81e-05/0.5083, allocations: 16 kB / 0.6306 GB, free: 1.266 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.083e-05/0.5084, allocations: 24.47 kB / 0.6306 GB, free: 1.242 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00483/0.5132, allocations: 1.05 MB / 0.6316 GB, free: 180 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001471/0.5147, allocations: 427.3 kB / 0.632 GB, free: 15.76 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01062/0.5253, allocations: 7.479 MB / 0.6393 GB, free: 7.84 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001669/0.527, allocations: 95.84 kB / 0.6394 GB, free: 7.746 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003098/0.5273, allocations: 120 kB / 0.6395 GB, free: 7.629 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.0008853/0.5281, allocations: 405.1 kB / 0.6399 GB, free: 7.223 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004587/0.5286, allocations: 151 kB / 0.6401 GB, free: 7.074 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00696/0.5356, allocations: 2.191 MB / 0.6422 GB, free: 4.855 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.921e-05/0.5356, allocations: 12 kB / 0.6422 GB, free: 4.844 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-05/0.5356, allocations: 8 kB / 0.6422 GB, free: 4.836 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.63e-05/0.5356, allocations: 7.969 kB / 0.6422 GB, free: 4.828 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009884/0.5455, allocations: 3.932 MB / 0.6461 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.5455, allocations: 0 / 0.6461 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007494/0.5463, allocations: 175.9 kB / 0.6463 GB, free: 0.625 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004351/0.5506, allocations: 0.9247 MB / 0.6472 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001339/0.5507, allocations: 47.97 kB / 0.6472 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008775/0.5595, allocations: 6.765 MB / 0.6538 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.5595, allocations: 4 kB / 0.6538 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007375/0.5669, allocations: 2.907 MB / 0.6567 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004012/0.5673, allocations: 216.1 kB / 0.6569 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002398/0.5675, allocations: 32.05 kB / 0.6569 GB, free: 5.207 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008697/0.5684, allocations: 35.98 kB / 0.6569 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003016/0.5687, allocations: 120.7 kB / 0.657 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001084/0.5688, allocations: 47.97 kB / 0.6571 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001592/0.5704, allocations: 1.302 MB / 0.6584 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.5704, allocations: 0 / 0.6584 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003022/0.5734, allocations: 0.9703 MB / 0.6593 GB, free: 2.73 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.009511/0.5829, allocations: 4.352 MB / 0.6636 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004952/0.5879, allocations: 2.43 MB / 0.6659 GB, free: 11.83 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.5879, allocations: 3.938 kB / 0.6659 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002242/0.5901, allocations: 1.17 MB / 0.6671 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001479/0.5916, allocations: 233 kB / 0.6673 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03178/0.6234, allocations: 16.48 MB / 0.6834 GB, free: 8.977 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001258/0.6247, allocations: 1.306 MB / 0.6847 GB, free: 7.641 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001168/0.6258, allocations: 335.3 kB / 0.685 GB, free: 7.312 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001093/0.6269, allocations: 0.7608 MB / 0.6857 GB, free: 6.551 MB / 0.5294 GB Notification: Performance of SimCode: time 9.62e-07/0.6269, allocations: 0 / 0.6857 GB, free: 6.551 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3105/0.9374, allocations: 51.1 MB / 0.7356 GB, free: 176.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.59/26.53, allocations: 4.859 kB / 0.7356 GB, free: 176.5 MB / 0.5606 GB " [Timeout remaining time 633] (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: 29.300899259047583] Failed to read output from testmodel.py, exit status != 0: 26.65758070605807 26.67854847 26.258903296 Calling exit ...