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.001326/0.001326, allocations: 100.3 kB / 19.73 MB, free: 2.133 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.001438/0.001438, allocations: 222.1 kB / 23.03 MB, free: 4.945 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.433/1.433, allocations: 230.6 MB / 256.8 MB, free: 7.785 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.1306/0.1306, allocations: 23.9 MB / 337.1 MB, free: 10.95 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrolysisMethanation",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.001995/0.001995, allocations: 59.89 kB / 471.9 MB, free: 7.469 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3045, allocations: 59.87 MB / 0.5194 GB, free: 9.535 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.07492/0.3795, allocations: 30.29 MB / 0.5489 GB, free: 9.605 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03588/0.4153, allocations: 25.47 MB / 0.5738 GB, free: 2.062 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002295/0.4176, allocations: 35.75 kB / 0.5738 GB, free: 2.027 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00226/0.4199, allocations: 0.6356 MB / 0.5745 GB, free: 1.387 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007616/0.4275, allocations: 2.211 MB / 0.5766 GB, free: 15.16 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01215/0.4397, allocations: 3.993 MB / 0.5805 GB, free: 11.14 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005051/0.4447, allocations: 3.093 MB / 0.5835 GB, free: 8.035 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002456/0.4472, allocations: 1.609 MB / 0.5851 GB, free: 6.383 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002293/0.4495, allocations: 1.481 MB / 0.5866 GB, free: 4.898 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003022/0.4525, allocations: 1.686 MB / 0.5882 GB, free: 3.207 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006911/0.4532, allocations: 296 kB / 0.5885 GB, free: 2.918 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008555/0.4617, allocations: 3.069 MB / 0.5915 GB, free: 15.84 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001134/0.4629, allocations: 0.6971 MB / 0.5922 GB, free: 15.14 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001852/0.4647, allocations: 1.214 MB / 0.5934 GB, free: 13.93 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01482/0.4795, allocations: 6.552 MB / 0.5998 GB, free: 7.348 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.4795, allocations: 0 / 0.5998 GB, free: 7.348 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.4795, allocations: 0 / 0.5998 GB, free: 7.348 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.343e-05/0.4796, allocations: 0 / 0.5998 GB, free: 7.348 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.007428/0.4871, allocations: 3.326 MB / 0.603 GB, free: 3.969 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.4871, allocations: 12.03 kB / 0.603 GB, free: 3.957 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.786e-05/0.4872, allocations: 60.97 kB / 0.6031 GB, free: 3.895 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004396/0.4876, allocations: 333.7 kB / 0.6034 GB, free: 3.559 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002539/0.4901, allocations: 0.5803 MB / 0.604 GB, free: 2.977 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002705/0.4929, allocations: 1.352 MB / 0.6053 GB, free: 1.586 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003063/0.4932, allocations: 346.9 kB / 0.6056 GB, free: 1.207 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005063/0.4937, allocations: 244 kB / 0.6058 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005689/0.4994, allocations: 3.086 MB / 0.6089 GB, free: 13.77 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.2e-05/0.4994, allocations: 0 / 0.6089 GB, free: 13.77 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002648/0.4997, allocations: 99.98 kB / 0.609 GB, free: 13.67 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.32e-05/0.4998, allocations: 63.94 kB / 0.609 GB, free: 13.61 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00627/0.506, allocations: 3.638 MB / 0.6126 GB, free: 9.965 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.01683/0.5229, allocations: 9.045 MB / 0.6214 GB, free: 0.7344 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003184/0.526, allocations: 1.776 MB / 0.6231 GB, free: 14.95 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001696/0.5277, allocations: 1.027 MB / 0.6241 GB, free: 13.91 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01146/0.5392, allocations: 5.188 MB / 0.6292 GB, free: 8.68 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.76e-05/0.5392, allocations: 55.81 kB / 0.6293 GB, free: 8.617 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001366/0.5406, allocations: 298.5 kB / 0.6295 GB, free: 8.324 MB / 478.1 MB Notification: Performance of pre-optimization done (n=134): time 3.767e-06/0.5406, allocations: 0 / 0.6295 GB, free: 8.324 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.038/0.5786, allocations: 9.534 MB / 0.6388 GB, free: 14.73 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.177e-05/0.5787, allocations: 124.8 kB / 0.639 GB, free: 14.58 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001945/0.5806, allocations: 1.478 MB / 0.6404 GB, free: 13.09 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002288/0.5809, allocations: 57.7 kB / 0.6405 GB, free: 13.03 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009273/0.5818, allocations: 1.19 MB / 0.6416 GB, free: 11.83 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006566/0.5825, allocations: 0.6624 MB / 0.6423 GB, free: 11.16 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000819/0.5833, allocations: 0.5131 MB / 0.6428 GB, free: 10.64 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.5834, allocations: 309.1 kB / 0.6431 GB, free: 10.34 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00171/0.5851, allocations: 0.9462 MB / 0.644 GB, free: 9.387 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002561/0.5877, allocations: 1.906 MB / 0.6459 GB, free: 7.043 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004507/0.5922, allocations: 3 MB / 0.6488 GB, free: 3.609 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.158e-05/0.5922, allocations: 8 kB / 0.6488 GB, free: 3.602 MB / 494.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01155/0.6038, allocations: 3.906 MB / 0.6526 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.542e-05/0.6038, allocations: 16 kB / 0.6526 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.208e-05/0.6039, allocations: 36.03 kB / 0.6527 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005897/0.6098, allocations: 1.173 MB / 0.6538 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002286/0.612, allocations: 0.5811 MB / 0.6544 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01089/0.6229, allocations: 7.154 MB / 0.6614 GB, free: 6.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002186/0.6251, allocations: 111.9 kB / 0.6615 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004149/0.6255, allocations: 163.9 kB / 0.6616 GB, free: 6.07 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.001152/0.6267, allocations: 489.3 kB / 0.6621 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005095/0.6272, allocations: 186.9 kB / 0.6623 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01035/0.6375, allocations: 3.249 MB / 0.6654 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.619e-05/0.6376, allocations: 16 kB / 0.6655 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/0.6376, allocations: 4 kB / 0.6655 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-05/0.6376, allocations: 7.969 kB / 0.6655 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01427/0.6519, allocations: 5.117 MB / 0.6705 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-05/0.6519, allocations: 4 kB / 0.6705 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001464/0.6534, allocations: 303.6 kB / 0.6708 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005259/0.6586, allocations: 1.041 MB / 0.6718 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002387/0.6589, allocations: 79.88 kB / 0.6718 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009024/0.6679, allocations: 6.44 MB / 0.6781 GB, free: 4.629 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.6679, allocations: 4.031 kB / 0.6781 GB, free: 4.625 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01093/0.6788, allocations: 4.128 MB / 0.6822 GB, free: 444 kB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005869/0.6794, allocations: 170.7 kB / 0.6823 GB, free: 272 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003061/0.6797, allocations: 40 kB / 0.6824 GB, free: 232 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001172/0.6809, allocations: 39.98 kB / 0.6824 GB, free: 192 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004703/0.6813, allocations: 189.5 kB / 0.6826 GB, free: 0 / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000229/0.6816, allocations: 79.95 kB / 0.6827 GB, free: 15.92 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001382/0.683, allocations: 0.9664 MB / 0.6836 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8e-08/0.683, allocations: 0 / 0.6836 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004098/0.6871, allocations: 1.259 MB / 0.6848 GB, free: 13.7 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.0134/0.7005, allocations: 5.906 MB / 0.6906 GB, free: 7.715 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005896/0.7064, allocations: 2.842 MB / 0.6934 GB, free: 4.836 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/0.7064, allocations: 4 kB / 0.6934 GB, free: 4.832 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003018/0.7094, allocations: 1.46 MB / 0.6948 GB, free: 3.332 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001786/0.7112, allocations: 313.2 kB / 0.6951 GB, free: 3.031 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04035/0.7515, allocations: 19.18 MB / 0.7138 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001102/0.7526, allocations: 0.9106 MB / 0.7147 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001744/0.7544, allocations: 470.5 kB / 0.7152 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001586/0.756, allocations: 1.009 MB / 0.7162 GB, free: 12.19 MB / 0.5606 GB Notification: Performance of SimCode: time 1.323e-06/0.756, allocations: 0 / 0.7162 GB, free: 12.19 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3197/1.076, allocations: 66.71 MB / 0.7813 GB, free: 146.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 35.16/36.24, allocations: 2.406 kB / 0.7813 GB, free: 146.9 MB / 0.5606 GB " [Timeout remaining time 624] (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: 38.9358139699325] Failed to read output from testmodel.py, exit status != 0: 36.451251502963714 36.467476516 35.984394168 Calling exit ...