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.001348/0.001348, 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.001506/0.001506, allocations: 214.4 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.479/1.479, 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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1413/0.1413, allocations: 24 MB / 336.4 MB, free: 10.83 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.002138/0.002138, allocations: 75.89 kB / 471.3 MB, free: 7.312 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3655, allocations: 59.89 MB / 0.5187 GB, free: 9.547 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.07668/0.4422, allocations: 30.69 MB / 0.5487 GB, free: 9.098 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03558/0.4778, allocations: 25.5 MB / 0.5736 GB, free: 1.457 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00236/0.4802, allocations: 35.75 kB / 0.5736 GB, free: 1.422 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00215/0.4823, allocations: 0.6317 MB / 0.5743 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007018/0.4893, allocations: 2.208 MB / 0.5764 GB, free: 14.56 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01176/0.5011, allocations: 3.993 MB / 0.5803 GB, free: 10.55 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004956/0.5061, allocations: 3.085 MB / 0.5833 GB, free: 7.445 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002415/0.5085, allocations: 1.573 MB / 0.5849 GB, free: 5.828 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002372/0.5108, allocations: 1.481 MB / 0.5863 GB, free: 4.344 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002753/0.5136, allocations: 1.502 MB / 0.5878 GB, free: 2.836 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007019/0.5143, allocations: 296 kB / 0.5881 GB, free: 2.547 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008502/0.5228, allocations: 2.995 MB / 0.591 GB, free: 15.55 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001066/0.5239, allocations: 0.6894 MB / 0.5917 GB, free: 14.86 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001683/0.5255, allocations: 1.222 MB / 0.5929 GB, free: 13.63 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01397/0.5395, allocations: 6.549 MB / 0.5992 GB, free: 7.055 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.5395, allocations: 4 kB / 0.5993 GB, free: 7.051 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.5395, allocations: 0 / 0.5993 GB, free: 7.051 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.722e-05/0.5396, allocations: 0 / 0.5993 GB, free: 7.051 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.007212/0.5468, allocations: 3.334 MB / 0.6025 GB, free: 3.664 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.5469, allocations: 8.031 kB / 0.6025 GB, free: 3.656 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004137/0.5473, allocations: 329.7 kB / 0.6028 GB, free: 3.324 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002445/0.5497, allocations: 0.5842 MB / 0.6034 GB, free: 2.738 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003014/0.5527, allocations: 1.348 MB / 0.6047 GB, free: 1.352 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003059/0.553, allocations: 355 kB / 0.6051 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004851/0.5535, allocations: 240 kB / 0.6053 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00565/0.5592, allocations: 3.09 MB / 0.6083 GB, free: 13.53 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.81e-05/0.5592, allocations: 0 / 0.6083 GB, free: 13.53 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002417/0.5595, allocations: 96 kB / 0.6084 GB, free: 13.43 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.919e-05/0.5595, allocations: 63.98 kB / 0.6085 GB, free: 13.37 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006269/0.5658, allocations: 3.603 MB / 0.612 GB, free: 9.766 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.01766/0.5835, allocations: 9.037 MB / 0.6208 GB, free: 0.543 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003173/0.5866, allocations: 1.783 MB / 0.6225 GB, free: 14.75 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001724/0.5884, allocations: 1.024 MB / 0.6235 GB, free: 13.71 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01232/0.6007, allocations: 5.189 MB / 0.6286 GB, free: 8.484 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.735e-05/0.6007, allocations: 47.88 kB / 0.6287 GB, free: 8.43 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001423/0.6021, allocations: 302.5 kB / 0.6289 GB, free: 8.133 MB / 478.1 MB Notification: Performance of pre-optimization done (n=134): time 6.362e-06/0.6022, allocations: 0 / 0.6289 GB, free: 8.133 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.0412/0.6433, allocations: 9.534 MB / 0.6383 GB, free: 14.54 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.6434, allocations: 124.8 kB / 0.6384 GB, free: 14.39 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002177/0.6456, allocations: 1.536 MB / 0.6399 GB, free: 12.84 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003072/0.6459, allocations: 53.7 kB / 0.6399 GB, free: 12.79 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001084/0.647, allocations: 1.186 MB / 0.6411 GB, free: 11.59 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007926/0.6478, allocations: 0.6663 MB / 0.6417 GB, free: 10.91 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000894/0.6487, allocations: 0.517 MB / 0.6422 GB, free: 10.39 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.6489, allocations: 309.1 kB / 0.6425 GB, free: 10.09 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002474/0.6514, allocations: 0.9462 MB / 0.6435 GB, free: 9.137 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004135/0.6555, allocations: 1.898 MB / 0.6453 GB, free: 6.801 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007881/0.6634, allocations: 3.007 MB / 0.6482 GB, free: 3.359 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.896e-05/0.6634, allocations: 8 kB / 0.6483 GB, free: 3.352 MB / 494.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01855/0.682, allocations: 3.906 MB / 0.6521 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.672e-05/0.682, allocations: 20 kB / 0.6521 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.821e-05/0.6821, allocations: 32 kB / 0.6521 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009449/0.6916, allocations: 1.169 MB / 0.6533 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003865/0.6954, allocations: 0.585 MB / 0.6538 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01825/0.7137, allocations: 7.162 MB / 0.6608 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003665/0.7173, allocations: 111.9 kB / 0.6609 GB, free: 5.973 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007782/0.7181, allocations: 160 kB / 0.6611 GB, free: 5.816 MB / 0.4981 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.00205/0.7202, allocations: 480.8 kB / 0.6615 GB, free: 5.336 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009584/0.7211, allocations: 186.8 kB / 0.6617 GB, free: 5.152 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01732/0.7384, allocations: 3.257 MB / 0.6649 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.264e-05/0.7385, allocations: 20 kB / 0.6649 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-05/0.7385, allocations: 0 / 0.6649 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.338e-05/0.7386, allocations: 11.97 kB / 0.6649 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02329/0.7619, allocations: 5.113 MB / 0.6699 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.6e-05/0.7619, allocations: 0 / 0.6699 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00199/0.7639, allocations: 303.6 kB / 0.6702 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00627/0.7701, allocations: 1.046 MB / 0.6712 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004784/0.7706, allocations: 79.88 kB / 0.6713 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009215/0.7798, allocations: 6.44 MB / 0.6776 GB, free: 4.375 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.229e-06/0.7798, allocations: 7.875 kB / 0.6776 GB, free: 4.367 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01082/0.7907, allocations: 4.128 MB / 0.6816 GB, free: 180 kB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005479/0.7912, allocations: 170.7 kB / 0.6818 GB, free: 8 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003146/0.7915, allocations: 36.16 kB / 0.6818 GB, free: 15.97 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.7926, allocations: 44.27 kB / 0.6819 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004634/0.7931, allocations: 189.5 kB / 0.6821 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001895/0.7933, allocations: 79.95 kB / 0.6821 GB, free: 15.66 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001367/0.7946, allocations: 0.9663 MB / 0.6831 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.7946, allocations: 4 kB / 0.6831 GB, free: 14.69 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004003/0.7987, allocations: 1.263 MB / 0.6843 GB, free: 13.43 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.01328/0.8119, allocations: 5.91 MB / 0.6901 GB, free: 7.441 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006291/0.8182, allocations: 2.823 MB / 0.6928 GB, free: 4.582 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/0.8182, allocations: 128 / 0.6928 GB, free: 4.582 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003229/0.8215, allocations: 1.464 MB / 0.6943 GB, free: 3.078 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001931/0.8234, allocations: 316.2 kB / 0.6946 GB, free: 2.773 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04094/0.8643, allocations: 19.17 MB / 0.7133 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001114/0.8654, allocations: 0.9106 MB / 0.7142 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001829/0.8673, allocations: 462.5 kB / 0.7146 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00168/0.869, allocations: 1.012 MB / 0.7156 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of SimCode: time 2.625e-06/0.869, allocations: 0 / 0.7156 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3193/1.188, allocations: 66.25 MB / 0.7803 GB, free: 147 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.22/17.41, allocations: 8.5 kB / 0.7803 GB, free: 147 MB / 0.5606 GB " [Timeout remaining time 642] (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 os._exit(0), Time elapsed: 20.16404743073508] Failed to read output from testmodel.py, exit status != 0: 17.572847350034863 17.584009212 17.042133386 Calling exit ...