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.001314/0.001314, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001455/0.001455, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.454/1.454, allocations: 230.6 MB / 256 MB, free: 7.781 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.1395/0.1395, allocations: 23.88 MB / 336.3 MB, free: 10.94 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.002138/0.002138, allocations: 71.88 kB / 471.1 MB, free: 7.465 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3035, 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.07679/0.3803, allocations: 29.27 MB / 0.5471 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02985/0.4101, allocations: 19.48 MB / 0.5661 GB, free: 8.852 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00177/0.4119, allocations: 27.81 kB / 0.5662 GB, free: 8.824 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001899/0.4138, allocations: 0.5249 MB / 0.5667 GB, free: 8.426 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004434/0.4182, allocations: 1.321 MB / 0.568 GB, free: 7.238 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009717/0.4279, allocations: 3.347 MB / 0.5712 GB, free: 3.871 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005125/0.433, allocations: 2.391 MB / 0.5736 GB, free: 1.465 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002486/0.4355, allocations: 1.247 MB / 0.5748 GB, free: 176 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001964/0.4375, allocations: 1.059 MB / 0.5758 GB, free: 15.11 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002264/0.4398, allocations: 1.081 MB / 0.5769 GB, free: 14.02 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006483/0.4404, allocations: 232 kB / 0.5771 GB, free: 13.8 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006968/0.4474, allocations: 2.231 MB / 0.5793 GB, free: 11.56 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009528/0.4483, allocations: 0.5336 MB / 0.5798 GB, free: 11.03 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00184/0.4502, allocations: 0.957 MB / 0.5807 GB, free: 10.07 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01108/0.4613, allocations: 5.019 MB / 0.5856 GB, free: 5.027 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.4613, allocations: 0 / 0.5856 GB, free: 5.027 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4613, allocations: 3.938 kB / 0.5856 GB, free: 5.023 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001023/0.4614, allocations: 0 / 0.5856 GB, free: 5.023 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.006343/0.4677, allocations: 2.651 MB / 0.5882 GB, free: 2.328 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.4678, allocations: 8.031 kB / 0.5882 GB, free: 2.32 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005205/0.4683, allocations: 266.5 kB / 0.5885 GB, free: 2.051 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002286/0.4706, allocations: 0.5145 MB / 0.589 GB, free: 1.535 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002677/0.4732, allocations: 1.133 MB / 0.5901 GB, free: 376 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000258/0.4735, allocations: 254.7 kB / 0.5903 GB, free: 96 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000449/0.4739, allocations: 192 kB / 0.5905 GB, free: 15.9 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005224/0.4792, allocations: 2.719 MB / 0.5932 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.567e-05/0.4792, allocations: 4 kB / 0.5932 GB, free: 13.11 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000256/0.4795, allocations: 76 kB / 0.5933 GB, free: 13.04 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.387e-05/0.4795, allocations: 51.94 kB / 0.5933 GB, free: 12.99 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005724/0.4853, allocations: 3.31 MB / 0.5965 GB, free: 9.672 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.01531/0.5006, allocations: 7.523 MB / 0.6039 GB, free: 1.984 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002177/0.5027, allocations: 1.109 MB / 0.605 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001045/0.5038, allocations: 0.595 MB / 0.6055 GB, free: 252 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008497/0.5123, allocations: 3.397 MB / 0.6089 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.836e-05/0.5123, allocations: 43.16 kB / 0.6089 GB, free: 12.77 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009797/0.5133, allocations: 198.8 kB / 0.6091 GB, free: 12.57 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 4.829e-06/0.5133, allocations: 0 / 0.6091 GB, free: 12.57 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02784/0.5412, allocations: 6.917 MB / 0.6159 GB, free: 5.602 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.487e-05/0.5412, allocations: 115.8 kB / 0.616 GB, free: 5.465 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002644/0.5439, allocations: 1.943 MB / 0.6179 GB, free: 3.504 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002679/0.5442, allocations: 45.64 kB / 0.6179 GB, free: 3.453 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008618/0.545, allocations: 1.045 MB / 0.6189 GB, free: 2.395 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004721/0.5455, allocations: 432.4 kB / 0.6193 GB, free: 1.969 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007069/0.5462, allocations: 423.3 kB / 0.6197 GB, free: 1.547 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.5463, allocations: 301.1 kB / 0.62 GB, free: 1.25 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001476/0.5478, allocations: 0.8746 MB / 0.6209 GB, free: 380 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002258/0.5501, allocations: 1.612 MB / 0.6225 GB, free: 14.41 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003618/0.5537, allocations: 2.352 MB / 0.6248 GB, free: 11.73 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.811e-05/0.5537, allocations: 8 kB / 0.6248 GB, free: 11.72 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008603/0.5623, allocations: 3.327 MB / 0.628 GB, free: 8.367 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.308e-05/0.5624, allocations: 16 kB / 0.628 GB, free: 8.352 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.615e-05/0.5624, allocations: 24 kB / 0.628 GB, free: 8.328 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004658/0.5671, allocations: 1.031 MB / 0.6291 GB, free: 7.281 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/0.5687, allocations: 435.3 kB / 0.6295 GB, free: 6.855 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01023/0.5789, allocations: 7.137 MB / 0.6364 GB, free: 15.35 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0019/0.5808, allocations: 87.84 kB / 0.6365 GB, free: 15.26 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002814/0.5811, allocations: 124 kB / 0.6366 GB, free: 15.14 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.0008175/0.5819, allocations: 412.2 kB / 0.637 GB, free: 14.73 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003805/0.5823, allocations: 151 kB / 0.6372 GB, free: 14.58 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006617/0.5889, allocations: 2.176 MB / 0.6393 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.609e-05/0.589, allocations: 15.94 kB / 0.6393 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.589, allocations: 4 kB / 0.6393 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.549e-05/0.589, allocations: 7.969 kB / 0.6393 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01019/0.5992, allocations: 3.69 MB / 0.6429 GB, free: 8.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/0.5992, allocations: 8.156 kB / 0.6429 GB, free: 8.562 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007828/0.6, allocations: 171.8 kB / 0.6431 GB, free: 8.395 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004468/0.6044, allocations: 0.9247 MB / 0.644 GB, free: 7.453 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001877/0.6046, allocations: 43.95 kB / 0.644 GB, free: 7.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009119/0.6137, allocations: 6.424 MB / 0.6503 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.6137, allocations: 4 kB / 0.6503 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00785/0.6216, allocations: 2.896 MB / 0.6532 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005405/0.6221, allocations: 147 kB / 0.6533 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003764/0.6225, allocations: 20 kB / 0.6533 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/0.6236, allocations: 35.98 kB / 0.6533 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003259/0.6239, allocations: 120.7 kB / 0.6535 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001509/0.624, allocations: 51.97 kB / 0.6535 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001796/0.6258, allocations: 1.326 MB / 0.6548 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8e-08/0.6258, allocations: 0 / 0.6548 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003578/0.6294, allocations: 0.9741 MB / 0.6558 GB, free: 11 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.009894/0.6393, allocations: 4.359 MB / 0.66 GB, free: 6.578 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005057/0.6444, allocations: 2.359 MB / 0.6623 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.6444, allocations: 192 / 0.6623 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002182/0.6465, allocations: 1.098 MB / 0.6634 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001531/0.6481, allocations: 250.1 kB / 0.6636 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0332/0.6813, allocations: 16.57 MB / 0.6798 GB, free: 1.32 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008675/0.6821, allocations: 0.7335 MB / 0.6805 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001201/0.6833, allocations: 327.2 kB / 0.6808 GB, free: 244 kB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001094/0.6844, allocations: 0.7609 MB / 0.6816 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of SimCode: time 1.333e-06/0.6844, allocations: 0 / 0.6816 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3465/1.031, allocations: 52.35 MB / 0.7327 GB, free: 177.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.35/16.38, allocations: 7.891 kB / 0.7327 GB, free: 177.7 MB / 0.5606 GB " [Timeout remaining time 643] (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.07594673195854] Failed to read output from testmodel.py, exit status != 0: 16.532061425969005 16.545689805 16.081429616 Calling exit ...