Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.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.001342/0.001342, 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.001586/0.001586, allocations: 216.4 kB / 22.25 MB, free: 5.113 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.476/1.476, allocations: 230.6 MB / 256 MB, free: 8.215 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.14/0.14, allocations: 23.85 MB / 336.3 MB, free: 11.23 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.ElectrolysisMethanation,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrolysisMethanation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrolysisMethanation",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.002073/0.002073, allocations: 71.89 kB / 471.2 MB, free: 7.695 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2999/0.302, allocations: 59.86 MB / 0.5186 GB, free: 9.613 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.ElectrolysisMethanation): time 0.04204/0.3441, allocations: 31.94 MB / 0.5498 GB, free: 8.234 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03933/0.3834, allocations: 29.09 MB / 0.5782 GB, free: 13.08 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002158/0.3855, allocations: 39.69 kB / 0.5782 GB, free: 13.04 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002355/0.3879, allocations: 0.6901 MB / 0.5789 GB, free: 12.34 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007488/0.3954, allocations: 2.258 MB / 0.5811 GB, free: 10.07 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01187/0.4072, allocations: 3.993 MB / 0.585 GB, free: 6.055 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00527/0.4125, allocations: 3.085 MB / 0.588 GB, free: 2.953 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002712/0.4152, allocations: 1.609 MB / 0.5896 GB, free: 1.301 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002413/0.4176, allocations: 1.481 MB / 0.591 GB, free: 15.82 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003055/0.4207, allocations: 1.693 MB / 0.5927 GB, free: 14.12 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009236/0.4216, allocations: 296 kB / 0.593 GB, free: 13.83 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009749/0.4314, allocations: 3.186 MB / 0.5961 GB, free: 10.64 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001075/0.4324, allocations: 0.6855 MB / 0.5968 GB, free: 9.949 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002395/0.4348, allocations: 1.435 MB / 0.5982 GB, free: 8.508 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01395/0.4488, allocations: 6.583 MB / 0.6046 GB, free: 1.898 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.4488, allocations: 0 / 0.6046 GB, free: 1.898 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.4488, allocations: 4 kB / 0.6046 GB, free: 1.895 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001073/0.4489, allocations: 0 / 0.6046 GB, free: 1.895 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: 609 * Number of variables: 609 Notification: Performance of Generate backend data structure: time 0.007732/0.4566, allocations: 3.319 MB / 0.6078 GB, free: 14.52 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.4567, allocations: 12.03 kB / 0.6078 GB, free: 14.51 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005748/0.4573, allocations: 333.6 kB / 0.6082 GB, free: 14.17 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002572/0.4598, allocations: 0.5764 MB / 0.6087 GB, free: 13.59 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002961/0.4628, allocations: 1.364 MB / 0.6101 GB, free: 12.19 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003157/0.4631, allocations: 343.1 kB / 0.6104 GB, free: 11.82 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005579/0.4637, allocations: 240 kB / 0.6106 GB, free: 11.58 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006012/0.4697, allocations: 3.072 MB / 0.6136 GB, free: 8.402 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.864e-05/0.4697, allocations: 3.938 kB / 0.6136 GB, free: 8.398 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000305/0.47, allocations: 96 kB / 0.6137 GB, free: 8.305 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.493e-05/0.4701, allocations: 60 kB / 0.6138 GB, free: 8.246 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00655/0.4766, allocations: 3.638 MB / 0.6173 GB, free: 4.605 MB / 462.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.01943/0.4961, allocations: 10.45 MB / 0.6275 GB, free: 9.777 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003382/0.4995, allocations: 1.787 MB / 0.6293 GB, free: 7.98 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001817/0.5013, allocations: 1.022 MB / 0.6303 GB, free: 6.949 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01275/0.514, allocations: 5.484 MB / 0.6356 GB, free: 1.426 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.67e-05/0.5141, allocations: 47.88 kB / 0.6357 GB, free: 1.371 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001386/0.5155, allocations: 306.5 kB / 0.636 GB, free: 1.07 MB / 478.1 MB Notification: Performance of pre-optimization done (n=134): time 5.64e-06/0.5155, allocations: 0 / 0.636 GB, free: 1.07 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03812/0.5536, allocations: 9.533 MB / 0.6453 GB, free: 7.477 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.312e-05/0.5537, allocations: 128.9 kB / 0.6454 GB, free: 7.324 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002116/0.5558, allocations: 1.47 MB / 0.6468 GB, free: 5.844 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000255/0.556, allocations: 57.7 kB / 0.6469 GB, free: 5.781 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009386/0.557, allocations: 1.19 MB / 0.648 GB, free: 4.578 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007317/0.5577, allocations: 0.6546 MB / 0.6487 GB, free: 3.918 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008894/0.5586, allocations: 0.517 MB / 0.6492 GB, free: 3.395 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.5587, allocations: 309.1 kB / 0.6495 GB, free: 3.09 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001827/0.5606, allocations: 0.9462 MB / 0.6504 GB, free: 2.141 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002731/0.5633, allocations: 1.902 MB / 0.6523 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004781/0.5681, allocations: 3.003 MB / 0.6552 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.679e-05/0.5681, allocations: 12 kB / 0.6552 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01161/0.5797, allocations: 3.91 MB / 0.659 GB, free: 8.418 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.404e-05/0.5798, allocations: 20 kB / 0.659 GB, free: 8.398 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.821e-05/0.5798, allocations: 32 kB / 0.6591 GB, free: 8.367 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006011/0.5858, allocations: 1.175 MB / 0.6602 GB, free: 7.176 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00248/0.5883, allocations: 0.5811 MB / 0.6608 GB, free: 6.594 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01148/0.5998, allocations: 7.218 MB / 0.6678 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002203/0.602, allocations: 111.8 kB / 0.6679 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004774/0.6025, allocations: 159.9 kB / 0.6681 GB, free: 14.75 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * 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 (305): * Single equations (assignments): 300 * 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 {(3,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 {(1,18), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001229/0.6037, allocations: 493.3 kB / 0.6686 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005701/0.6043, allocations: 186.8 kB / 0.6687 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01063/0.6149, allocations: 3.242 MB / 0.6719 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.115e-05/0.6149, allocations: 16 kB / 0.6719 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/0.6149, allocations: 4 kB / 0.6719 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.094e-05/0.6149, allocations: 11.97 kB / 0.6719 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01464/0.6296, allocations: 5.401 MB / 0.6772 GB, free: 5.273 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-05/0.6296, allocations: 4 kB / 0.6772 GB, free: 5.27 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001402/0.631, allocations: 303.6 kB / 0.6775 GB, free: 4.973 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005215/0.6362, allocations: 1.038 MB / 0.6785 GB, free: 3.918 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002477/0.6365, allocations: 79.88 kB / 0.6786 GB, free: 3.84 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00941/0.6459, allocations: 6.491 MB / 0.6849 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.895e-06/0.6459, allocations: 12.05 kB / 0.685 GB, free: 12.97 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01125/0.6571, allocations: 4.12 MB / 0.689 GB, free: 8.785 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005163/0.6576, allocations: 170.8 kB / 0.6891 GB, free: 8.617 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004324/0.6581, allocations: 32 kB / 0.6892 GB, free: 8.586 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/0.6594, allocations: 47.98 kB / 0.6892 GB, free: 8.539 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004453/0.6598, allocations: 189.6 kB / 0.6894 GB, free: 8.352 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002058/0.66, allocations: 79.95 kB / 0.6895 GB, free: 8.273 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001435/0.6615, allocations: 0.9624 MB / 0.6904 GB, free: 7.312 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.71e-07/0.6615, allocations: 4 kB / 0.6904 GB, free: 7.309 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003964/0.6654, allocations: 1.262 MB / 0.6916 GB, free: 6.043 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,CH4.logn,CO2.logn,H2.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 (156): * Single equations (assignments): 151 * 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 {(3,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,19), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01423/0.6796, allocations: 5.911 MB / 0.6974 GB, free: 56 kB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006515/0.6862, allocations: 2.834 MB / 0.7002 GB, free: 13.18 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/0.6862, allocations: 0 / 0.7002 GB, free: 13.18 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003418/0.6896, allocations: 1.46 MB / 0.7016 GB, free: 11.68 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002124/0.6917, allocations: 318.2 kB / 0.7019 GB, free: 11.38 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04533/0.737, allocations: 19.2 MB / 0.7207 GB, free: 6.934 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001474/0.7385, allocations: 1.474 MB / 0.7221 GB, free: 5.426 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001727/0.7402, allocations: 466.7 kB / 0.7225 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001564/0.7418, allocations: 1.014 MB / 0.7235 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of SimCode: time 7.11e-07/0.7418, allocations: 0 / 0.7235 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3206/1.062, allocations: 66.94 MB / 0.7889 GB, free: 140.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 35.07/36.14, allocations: 13.28 kB / 0.7889 GB, free: 140.1 MB / 0.5606 GB " [Timeout remaining time 624] (rm -f Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrolysisMethanation_fmu --startTime=0 --stopTime=0.0001 --stepSize=4e-08 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrolysisMethanation.fmu > Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 39.05173329310492] Failed to read output from testmodel.py, exit status != 0: 36.30110672209412 36.312067612999996 35.86061027 Calling exit ...