Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.ClimateChange.ElectrolysisMethanation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation") translateModel(Chemical.Examples.ClimateChange.ElectrolysisMethanation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007911/0.0007912, allocations: 91.92 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008193/0.0008194, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 223.3 MB / 240 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1866/0.1866, allocations: 15.28 MB / 306.4 MB, free: 15.71 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002858/0.0002859, allocations: 8 kB / 371.5 MB, free: 3.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2539, allocations: 54.62 MB / 426.1 MB, free: 39.91 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65: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 1.4.1-master/package.mo:3019:6-3019:65: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.Examples.ClimateChange.ElectrolysisMethanation): time 0.008536/0.2625, allocations: 11.32 MB / 437.4 MB, free: 34.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02153/0.284, allocations: 26.62 MB / 464.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002002/0.2861, allocations: 48.25 kB / 464.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001586/0.2877, allocations: 0.6149 MB / 464.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005311/0.293, allocations: 2.078 MB / 466.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007954/0.301, allocations: 3.172 MB / 470 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00362/0.3047, allocations: 2.84 MB / 472.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002306/0.307, allocations: 1.535 MB / 474.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002302/0.3093, allocations: 1.172 MB / 475.5 MB, free: 9.793 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002804/0.3122, allocations: 1.456 MB / 477 MB, free: 9.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006858/0.3129, allocations: 155.2 kB / 477.1 MB, free: 9.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009795/0.3227, allocations: 2.928 MB / 480 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001171/0.3239, allocations: 0.5335 MB / 480.6 MB, free: 8.277 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001395/0.3253, allocations: 483.3 kB / 481.1 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008553/0.3339, allocations: 4.784 MB / 485.8 MB, free: 6.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.3339, allocations: 0 / 485.8 MB, free: 6.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3339, allocations: 1.25 kB / 485.8 MB, free: 6.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001182/0.334, allocations: 0 / 485.8 MB, free: 6.27 MB / 350.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.007493/0.3415, allocations: 2.811 MB / 488.6 MB, free: 4.656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.3416, allocations: 10.44 kB / 488.7 MB, free: 4.656 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002779/0.3444, allocations: 0.5574 MB / 489.2 MB, free: 4.477 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002744/0.3471, allocations: 1.307 MB / 490.5 MB, free: 3.695 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002101/0.3474, allocations: 264.8 kB / 490.8 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005606/0.3479, allocations: 245.7 kB / 491 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005064/0.353, allocations: 3.022 MB / 494 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.618e-05/0.3531, allocations: 1.562 kB / 494 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002383/0.3533, allocations: 95.88 kB / 494.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.495e-05/0.3534, allocations: 60.06 kB / 494.2 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005232/0.3586, allocations: 3.593 MB / 497.8 MB, free: 14.1 MB / 366.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.01589/0.3745, allocations: 10.39 MB / 0.4963 GB, free: 3.332 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00281/0.3774, allocations: 2.242 MB / 0.4985 GB, free: 0.9805 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001598/0.379, allocations: 1.113 MB / 0.4995 GB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01217/0.3912, allocations: 8.599 MB / 0.5079 GB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.034e-05/0.3913, allocations: 51.81 kB / 0.508 GB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001356/0.3926, allocations: 250 kB / 0.5082 GB, free: 6.098 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 6.432e-06/0.3926, allocations: 4 kB / 0.5082 GB, free: 6.094 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.03399/0.4266, allocations: 9.759 MB / 0.5178 GB, free: 12.22 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.725e-05/0.4267, allocations: 124.8 kB / 0.5179 GB, free: 12.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001679/0.4284, allocations: 1.45 MB / 0.5193 GB, free: 10.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002094/0.4287, allocations: 57.7 kB / 0.5194 GB, free: 10.55 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006881/0.4293, allocations: 1.151 MB / 0.5205 GB, free: 9.379 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005313/0.4299, allocations: 0.6316 MB / 0.5211 GB, free: 8.738 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001382/0.43, allocations: 56 kB / 0.5212 GB, free: 8.684 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.4302, allocations: 407.4 kB / 0.5215 GB, free: 8.281 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001486/0.4317, allocations: 0.9345 MB / 0.5225 GB, free: 7.344 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002013/0.4337, allocations: 1.878 MB / 0.5243 GB, free: 5.027 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001851/0.4356, allocations: 1.201 MB / 0.5255 GB, free: 3.824 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.287e-05/0.4356, allocations: 8 kB / 0.5255 GB, free: 3.816 MB / 398.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01027/0.4459, allocations: 3.881 MB / 0.5293 GB, free: 15.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.353e-05/0.446, allocations: 20 kB / 0.5293 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.532e-05/0.446, allocations: 28 kB / 0.5293 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005142/0.4512, allocations: 1.212 MB / 0.5305 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002157/0.4534, allocations: 0.5772 MB / 0.5311 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008968/0.4623, allocations: 6.906 MB / 0.5378 GB, free: 6.719 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002293/0.4647, allocations: 147.6 kB / 0.5379 GB, free: 6.574 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003567/0.4651, allocations: 167.9 kB / 0.5381 GB, free: 6.41 MB / 414.1 MB 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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 3} * Non-linear torn systems: 2 {1 18,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001019/0.4661, allocations: 480.9 kB / 0.5386 GB, free: 5.93 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003579/0.4664, allocations: 173.8 kB / 0.5387 GB, free: 5.758 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009072/0.4755, allocations: 3.274 MB / 0.5419 GB, free: 2.469 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.888e-05/0.4756, allocations: 20 kB / 0.5419 GB, free: 2.449 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.4756, allocations: 0 / 0.5419 GB, free: 2.449 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-05/0.4756, allocations: 11.97 kB / 0.5419 GB, free: 2.438 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0125/0.4881, allocations: 5.421 MB / 0.5472 GB, free: 12.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.518e-05/0.4882, allocations: 4 kB / 0.5472 GB, free: 12.91 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/0.4895, allocations: 303.6 kB / 0.5475 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00464/0.4941, allocations: 1.075 MB / 0.5486 GB, free: 11.52 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002561/0.4944, allocations: 71.95 kB / 0.5487 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007398/0.5018, allocations: 6.294 MB / 0.5548 GB, free: 4.73 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.5018, allocations: 15.98 kB / 0.5548 GB, free: 4.715 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009455/0.5113, allocations: 4.125 MB / 0.5588 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006021/0.5119, allocations: 246.8 kB / 0.5591 GB, free: 272 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003471/0.5123, allocations: 40 kB / 0.5591 GB, free: 232 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.5134, allocations: 71.81 kB / 0.5592 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003913/0.5138, allocations: 173.7 kB / 0.5594 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001741/0.514, allocations: 83.94 kB / 0.5594 GB, free: 15.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001182/0.5152, allocations: 0.9429 MB / 0.5604 GB, free: 14.96 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.5152, allocations: 3.938 kB / 0.5604 GB, free: 14.96 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004452/0.5197, allocations: 1.249 MB / 0.5616 GB, free: 13.71 MB / 446.1 MB 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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(1,100.0%) 3} * Non-linear torn systems: 2 {1 19,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002909/0.5226, allocations: 1.291 MB / 0.5628 GB, free: 12.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005447/0.5281, allocations: 2.996 MB / 0.5658 GB, free: 9.355 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/0.5281, allocations: 0 / 0.5658 GB, free: 9.355 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002872/0.531, allocations: 1.625 MB / 0.5673 GB, free: 7.676 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002008/0.533, allocations: 293.6 kB / 0.5676 GB, free: 7.391 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007894/0.5409, allocations: 4.976 MB / 0.5725 GB, free: 2.348 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00107/0.542, allocations: 1.482 MB / 0.5739 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002008/0.5441, allocations: 466.2 kB / 0.5744 GB, free: 392 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006051/0.5447, allocations: 281.9 kB / 0.5747 GB, free: 112 kB / 446.1 MB Notification: Performance of SimCode: time 8.22e-07/0.5447, allocations: 0 / 0.5747 GB, free: 112 kB / 446.1 MB Notification: Performance of Templates: time 0.2321/0.7768, allocations: 43.17 MB / 0.6168 GB, free: 131.6 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.makefile (rm -f Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.sim & ./Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1)