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.001325/0.001325, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.002029/0.002029, allocations: 219 kB / 23.04 MB, free: 5.074 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.576/1.576, allocations: 230.6 MB / 256.8 MB, free: 7.961 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.1362/0.1362, allocations: 23.85 MB / 337.1 MB, free: 11.17 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_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.002178/0.002178, allocations: 63.91 kB / 472 MB, free: 7.668 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.2991, allocations: 59.87 MB / 0.5194 GB, free: 9.574 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.04284/0.3419, allocations: 30.09 MB / 0.5487 GB, free: 9.938 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02831/0.3702, allocations: 22.2 MB / 0.5704 GB, free: 5.488 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001559/0.3718, allocations: 31.81 kB / 0.5705 GB, free: 5.457 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001631/0.3734, allocations: 0.5672 MB / 0.571 GB, free: 5.016 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004/0.3774, allocations: 1.366 MB / 0.5723 GB, free: 3.852 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009092/0.3865, allocations: 3.34 MB / 0.5756 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0041/0.3906, allocations: 2.399 MB / 0.5779 GB, free: 14.08 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002042/0.3926, allocations: 1.266 MB / 0.5792 GB, free: 12.77 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001953/0.3946, allocations: 1.056 MB / 0.5802 GB, free: 11.71 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002636/0.3972, allocations: 1.234 MB / 0.5814 GB, free: 10.47 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006573/0.3979, allocations: 232 kB / 0.5816 GB, free: 10.25 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009021/0.4069, allocations: 2.371 MB / 0.584 GB, free: 7.871 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009807/0.4079, allocations: 0.5414 MB / 0.5845 GB, free: 7.328 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001767/0.4097, allocations: 1.132 MB / 0.5856 GB, free: 6.191 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01141/0.4211, allocations: 5.023 MB / 0.5905 GB, free: 1.148 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.4211, allocations: 3.938 kB / 0.5905 GB, free: 1.145 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.028e-06/0.4211, allocations: 3.984 kB / 0.5905 GB, free: 1.141 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.759e-05/0.4212, allocations: 0 / 0.5905 GB, free: 1.141 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.006012/0.4272, allocations: 2.663 MB / 0.5931 GB, free: 14.43 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.4272, allocations: 8.031 kB / 0.5931 GB, free: 14.43 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.346e-05/0.4273, allocations: 51.98 kB / 0.5932 GB, free: 14.38 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003403/0.4276, allocations: 266.5 kB / 0.5934 GB, free: 14.11 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002128/0.4298, allocations: 0.5105 MB / 0.5939 GB, free: 13.59 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002381/0.4321, allocations: 1.137 MB / 0.595 GB, free: 12.42 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002486/0.4324, allocations: 254.5 kB / 0.5953 GB, free: 12.15 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004135/0.4328, allocations: 188 kB / 0.5954 GB, free: 11.96 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004868/0.4377, allocations: 2.698 MB / 0.5981 GB, free: 9.203 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.092e-05/0.4377, allocations: 0 / 0.5981 GB, free: 9.203 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002035/0.4379, allocations: 76 kB / 0.5982 GB, free: 9.129 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.412e-05/0.438, allocations: 48 kB / 0.5982 GB, free: 9.082 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005576/0.4435, allocations: 3.342 MB / 0.6015 GB, free: 5.734 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.016/0.4595, allocations: 8.495 MB / 0.6098 GB, free: 12.95 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002356/0.4619, allocations: 1.123 MB / 0.6109 GB, free: 11.81 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001166/0.4631, allocations: 0.5911 MB / 0.6114 GB, free: 11.2 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008946/0.472, allocations: 3.58 MB / 0.6149 GB, free: 7.598 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.368e-05/0.4721, allocations: 47.2 kB / 0.615 GB, free: 7.543 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009757/0.473, allocations: 194.8 kB / 0.6152 GB, free: 7.352 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 4.158e-06/0.473, allocations: 0 / 0.6152 GB, free: 7.352 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02932/0.5024, allocations: 6.924 MB / 0.6219 GB, free: 376 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.648e-05/0.5024, allocations: 119.8 kB / 0.622 GB, free: 232 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002828/0.5053, allocations: 1.892 MB / 0.6239 GB, free: 14.31 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002179/0.5055, allocations: 45.7 kB / 0.6239 GB, free: 14.26 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008488/0.5063, allocations: 1.037 MB / 0.6249 GB, free: 13.21 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005117/0.5068, allocations: 436.4 kB / 0.6254 GB, free: 12.79 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008336/0.5077, allocations: 419.3 kB / 0.6258 GB, free: 12.37 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.5078, allocations: 305.1 kB / 0.626 GB, free: 12.07 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001611/0.5094, allocations: 0.8785 MB / 0.6269 GB, free: 11.18 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002254/0.5117, allocations: 1.6 MB / 0.6285 GB, free: 9.238 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00373/0.5154, allocations: 2.352 MB / 0.6308 GB, free: 6.551 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.712e-05/0.5154, allocations: 15.88 kB / 0.6308 GB, free: 6.535 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.009274/0.5247, allocations: 3.327 MB / 0.634 GB, free: 3.184 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.279e-05/0.5248, allocations: 14.81 kB / 0.634 GB, free: 3.172 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-05/0.5248, allocations: 24 kB / 0.6341 GB, free: 3.148 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005083/0.5299, allocations: 1.038 MB / 0.6351 GB, free: 2.094 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001664/0.5315, allocations: 435.3 kB / 0.6355 GB, free: 1.668 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01109/0.5426, allocations: 7.181 MB / 0.6425 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001895/0.5445, allocations: 95.91 kB / 0.6426 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004247/0.545, allocations: 124 kB / 0.6427 GB, free: 9.895 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.001129/0.5461, allocations: 405.5 kB / 0.6431 GB, free: 9.488 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005632/0.5467, allocations: 151 kB / 0.6433 GB, free: 9.34 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007347/0.554, allocations: 2.187 MB / 0.6454 GB, free: 7.129 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.292e-05/0.554, allocations: 16 kB / 0.6454 GB, free: 7.113 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/0.554, allocations: 4 kB / 0.6454 GB, free: 7.109 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-05/0.5541, allocations: 7.969 kB / 0.6454 GB, free: 7.102 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01112/0.5652, allocations: 3.896 MB / 0.6492 GB, free: 3.117 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-05/0.5652, allocations: 3.984 kB / 0.6492 GB, free: 3.113 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000825/0.566, allocations: 167.8 kB / 0.6494 GB, free: 2.949 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004512/0.5705, allocations: 0.9355 MB / 0.6503 GB, free: 2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001748/0.5707, allocations: 43.97 kB / 0.6503 GB, free: 1.957 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009371/0.5801, allocations: 6.466 MB / 0.6567 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/0.5801, allocations: 4.031 kB / 0.6567 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00822/0.5883, allocations: 2.903 MB / 0.6595 GB, free: 8.168 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005211/0.5888, allocations: 143 kB / 0.6596 GB, free: 8.027 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004271/0.5893, allocations: 24 kB / 0.6597 GB, free: 8.004 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/0.5904, allocations: 31.98 kB / 0.6597 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004177/0.5908, allocations: 116.7 kB / 0.6598 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001817/0.591, allocations: 51.97 kB / 0.6598 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002074/0.5931, allocations: 1.326 MB / 0.6611 GB, free: 6.48 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.5931, allocations: 4 kB / 0.6611 GB, free: 6.477 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003727/0.5968, allocations: 0.978 MB / 0.6621 GB, free: 5.496 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.01051/0.6073, allocations: 4.356 MB / 0.6663 GB, free: 1.074 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005322/0.6126, allocations: 2.355 MB / 0.6686 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.6126, allocations: 0 / 0.6686 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002426/0.6151, allocations: 1.099 MB / 0.6697 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001776/0.6168, allocations: 244.6 kB / 0.67 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03541/0.6523, allocations: 16.58 MB / 0.6861 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001276/0.6535, allocations: 1.302 MB / 0.6874 GB, free: 10.48 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001257/0.6548, allocations: 327.4 kB / 0.6877 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001143/0.6559, allocations: 0.7648 MB / 0.6885 GB, free: 9.395 MB / 0.5294 GB Notification: Performance of SimCode: time 1.302e-06/0.6559, allocations: 3.938 kB / 0.6885 GB, free: 9.391 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3182/0.9741, allocations: 52.78 MB / 0.74 GB, free: 174.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.12/29.1, allocations: 10.73 kB / 0.74 GB, free: 174.9 MB / 0.5606 GB " [Timeout remaining time 631] (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 sys.exit(0), Time elapsed: 32.17309308401309] Failed to read output from testmodel.py, exit status != 0: 29.31101863994263 29.323959836 28.899846067 Calling exit ...