Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001288/0.001288, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001478/0.001478, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.419/1.419, allocations: 230.6 MB / 256 MB, free: 7.992 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.1399/0.1399, allocations: 23.89 MB / 336.3 MB, free: 11.18 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.ElectrolysisMethanation,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrolysisMethanation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation,fileNamePrefix="Chemical_master_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.002177/0.002177, allocations: 63.89 kB / 471.2 MB, free: 7.66 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3217, allocations: 59.87 MB / 0.5187 GB, free: 9.637 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.ElectrolysisMethanation): time 0.04312/0.3648, allocations: 31.95 MB / 0.5499 GB, free: 8.164 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0405/0.4053, allocations: 29.09 MB / 0.5783 GB, free: 13.02 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002358/0.4077, allocations: 35.75 kB / 0.5783 GB, free: 12.98 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002496/0.4102, allocations: 0.6939 MB / 0.579 GB, free: 12.28 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007772/0.4179, allocations: 2.262 MB / 0.5812 GB, free: 10 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01187/0.4298, allocations: 3.993 MB / 0.5851 GB, free: 5.988 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005192/0.435, allocations: 3.085 MB / 0.5881 GB, free: 2.887 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00299/0.438, allocations: 1.605 MB / 0.5897 GB, free: 1.238 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002792/0.4408, allocations: 1.481 MB / 0.5911 GB, free: 15.75 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003239/0.444, allocations: 1.689 MB / 0.5928 GB, free: 14.06 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009978/0.445, allocations: 304 kB / 0.5931 GB, free: 13.76 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01013/0.4551, allocations: 3.175 MB / 0.5962 GB, free: 10.58 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00122/0.4564, allocations: 0.6933 MB / 0.5968 GB, free: 9.887 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002673/0.459, allocations: 1.439 MB / 0.5982 GB, free: 8.441 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01486/0.4739, allocations: 6.572 MB / 0.6047 GB, free: 1.844 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.4739, allocations: 0 / 0.6047 GB, free: 1.844 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.4739, allocations: 0 / 0.6047 GB, free: 1.844 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001497/0.474, allocations: 0 / 0.6047 GB, free: 1.844 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.008529/0.4826, allocations: 3.326 MB / 0.6079 GB, free: 14.46 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.4826, allocations: 12.03 kB / 0.6079 GB, free: 14.45 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008119/0.4834, allocations: 329.7 kB / 0.6082 GB, free: 14.12 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00291/0.4863, allocations: 0.5804 MB / 0.6088 GB, free: 13.54 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003295/0.4896, allocations: 1.368 MB / 0.6101 GB, free: 12.13 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003715/0.49, allocations: 347.1 kB / 0.6105 GB, free: 11.75 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007326/0.4907, allocations: 247.9 kB / 0.6107 GB, free: 11.51 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006974/0.4977, allocations: 3.057 MB / 0.6137 GB, free: 8.344 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.004e-05/0.4978, allocations: 4 kB / 0.6137 GB, free: 8.34 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004295/0.4982, allocations: 100 kB / 0.6138 GB, free: 8.242 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.877e-05/0.4983, allocations: 60 kB / 0.6138 GB, free: 8.184 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006907/0.5052, allocations: 3.638 MB / 0.6174 GB, free: 4.543 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.02007/0.5253, allocations: 10.46 MB / 0.6276 GB, free: 9.707 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003363/0.5286, allocations: 1.779 MB / 0.6293 GB, free: 7.918 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00186/0.5305, allocations: 1.024 MB / 0.6303 GB, free: 6.883 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01276/0.5433, allocations: 5.473 MB / 0.6357 GB, free: 1.371 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.821e-05/0.5433, allocations: 51.88 kB / 0.6357 GB, free: 1.312 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001387/0.5447, allocations: 294.5 kB / 0.636 GB, free: 1.023 MB / 478.1 MB Notification: Performance of pre-optimization done (n=134): time 6.382e-06/0.5447, allocations: 0 / 0.636 GB, free: 1.023 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03735/0.582, allocations: 9.541 MB / 0.6453 GB, free: 7.422 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.341e-05/0.5821, allocations: 124.8 kB / 0.6455 GB, free: 7.273 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002276/0.5844, allocations: 1.47 MB / 0.6469 GB, free: 5.793 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002677/0.5847, allocations: 53.7 kB / 0.6469 GB, free: 5.734 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009815/0.5857, allocations: 1.194 MB / 0.6481 GB, free: 4.527 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008149/0.5865, allocations: 0.6585 MB / 0.6488 GB, free: 3.863 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001045/0.5875, allocations: 0.517 MB / 0.6493 GB, free: 3.34 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.5877, allocations: 305.1 kB / 0.6495 GB, free: 3.039 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001889/0.5895, allocations: 0.9501 MB / 0.6505 GB, free: 2.086 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00288/0.5924, allocations: 1.906 MB / 0.6523 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004758/0.5972, allocations: 2.996 MB / 0.6553 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.753e-05/0.5972, allocations: 8 kB / 0.6553 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01119/0.6084, allocations: 3.905 MB / 0.6591 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.462e-05/0.6085, allocations: 20 kB / 0.6591 GB, free: 8.355 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.59e-05/0.6085, allocations: 32 kB / 0.6591 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005604/0.6141, allocations: 1.186 MB / 0.6603 GB, free: 7.125 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002155/0.6163, allocations: 0.5811 MB / 0.6609 GB, free: 6.543 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01088/0.6272, allocations: 7.22 MB / 0.6679 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002059/0.6292, allocations: 111.9 kB / 0.668 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004871/0.6297, allocations: 156 kB / 0.6682 GB, free: 14.7 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.00127/0.631, allocations: 489.3 kB / 0.6686 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006105/0.6316, allocations: 190.7 kB / 0.6688 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01039/0.642, allocations: 3.23 MB / 0.672 GB, free: 10.76 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-05/0.642, allocations: 20 kB / 0.672 GB, free: 10.74 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.347e-05/0.642, allocations: 4 kB / 0.672 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.2e-05/0.6421, allocations: 7.969 kB / 0.672 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01492/0.657, allocations: 5.409 MB / 0.6773 GB, free: 5.223 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.568e-05/0.657, allocations: 0 / 0.6773 GB, free: 5.223 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/0.6583, allocations: 311.9 kB / 0.6776 GB, free: 4.918 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005272/0.6636, allocations: 1.04 MB / 0.6786 GB, free: 3.863 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003294/0.6639, allocations: 75.89 kB / 0.6787 GB, free: 3.789 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009606/0.6736, allocations: 6.498 MB / 0.685 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.6736, allocations: 0 / 0.685 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01172/0.6853, allocations: 4.136 MB / 0.6891 GB, free: 8.727 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000551/0.6858, allocations: 162.8 kB / 0.6892 GB, free: 8.566 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005115/0.6863, allocations: 40 kB / 0.6892 GB, free: 8.527 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/0.6877, allocations: 51.98 kB / 0.6893 GB, free: 8.477 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000558/0.6882, allocations: 193.5 kB / 0.6895 GB, free: 8.285 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002735/0.6885, allocations: 79.95 kB / 0.6896 GB, free: 8.207 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001582/0.6901, allocations: 0.9585 MB / 0.6905 GB, free: 7.25 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.6901, allocations: 3.938 kB / 0.6905 GB, free: 7.246 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004354/0.6944, allocations: 1.27 MB / 0.6917 GB, free: 5.973 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.01456/0.709, allocations: 5.899 MB / 0.6975 GB, free: 15.99 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006522/0.7155, allocations: 2.834 MB / 0.7003 GB, free: 13.12 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.7155, allocations: 0 / 0.7003 GB, free: 13.12 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003333/0.7189, allocations: 1.464 MB / 0.7017 GB, free: 11.62 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00237/0.7212, allocations: 318.3 kB / 0.702 GB, free: 11.32 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04437/0.7656, allocations: 19.18 MB / 0.7207 GB, free: 6.891 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002035/0.7676, allocations: 1.478 MB / 0.7222 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001945/0.7696, allocations: 458.7 kB / 0.7226 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00175/0.7713, allocations: 1.013 MB / 0.7236 GB, free: 3.918 MB / 0.5606 GB Notification: Performance of SimCode: time 1.483e-06/0.7713, allocations: 0 / 0.7236 GB, free: 3.918 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3324/1.104, allocations: 66.97 MB / 0.789 GB, free: 140.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 33.65/34.76, allocations: 4.062 kB / 0.789 GB, free: 140.1 MB / 0.5606 GB " [Timeout remaining time 625] (rm -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrolysisMethanation_fmu --startTime=0 --stopTime=0.0001 --stepSize=4e-08 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrolysisMethanation.fmu > Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 37.63049246184528] Failed to read output from testmodel.py, exit status != 0: 34.91298418189399 34.928583469 34.452058539 Calling exit ...