Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.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.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis") translateModel(Chemical.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 195.5 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.192/1.192, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.171/0.171, allocations: 15.31 MB / 305.7 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 71.88 kB / 370.3 MB, free: 3.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08286/0.08401, allocations: 53.6 MB / 423.9 MB, free: 14.29 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.ClimateChange.MethanElectrosynthesis): time 0.2917/0.3757, allocations: 28.95 MB / 452.9 MB, free: 39.11 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01681/0.3925, allocations: 22.03 MB / 474.9 MB, free: 28.48 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001037/0.3936, allocations: 27.91 kB / 474.9 MB, free: 28.46 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001214/0.3948, allocations: 0.5721 MB / 475.5 MB, free: 28.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002782/0.3976, allocations: 1.342 MB / 476.9 MB, free: 27.3 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00692/0.4046, allocations: 3.281 MB / 480.1 MB, free: 25.36 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002371/0.407, allocations: 2.384 MB / 482.5 MB, free: 24.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00139/0.4084, allocations: 1.578 MB / 484.1 MB, free: 23.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009399/0.4093, allocations: 1.021 MB / 485.1 MB, free: 22.99 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001043/0.4104, allocations: 1.211 MB / 486.3 MB, free: 22.44 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002917/0.4107, allocations: 236.7 kB / 486.6 MB, free: 22.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006465/0.4171, allocations: 2.334 MB / 488.9 MB, free: 21.86 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004019/0.4176, allocations: 0.5356 MB / 489.4 MB, free: 21.51 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001062/0.4186, allocations: 1.132 MB / 490.6 MB, free: 20.83 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008774/0.4274, allocations: 4.815 MB / 495.4 MB, free: 18.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.4274, allocations: 0 / 495.4 MB, free: 18.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4274, allocations: 0 / 495.4 MB, free: 18.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.161e-05/0.4275, allocations: 0 / 495.4 MB, free: 18.71 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 484 * Number of variables: 484 Notification: Performance of Generate backend data structure: time 0.004956/0.4325, allocations: 2.673 MB / 498 MB, free: 17.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.114e-05/0.4325, allocations: 19.42 kB / 498.1 MB, free: 17.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001728/0.4342, allocations: 0.4959 MB / 498.6 MB, free: 16.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00156/0.4358, allocations: 1.148 MB / 499.7 MB, free: 16.28 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/0.4359, allocations: 207.7 kB / 499.9 MB, free: 16.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002142/0.4362, allocations: 191.1 kB / 0.4884 GB, free: 16.08 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003128/0.4393, allocations: 2.643 MB / 0.491 GB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.277e-05/0.4393, allocations: 3.938 kB / 0.491 GB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001631/0.4395, allocations: 76.88 kB / 0.491 GB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.107e-05/0.4396, allocations: 48.28 kB / 0.4911 GB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003599/0.4432, allocations: 3.276 MB / 0.4943 GB, free: 12.39 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.009251/0.4524, allocations: 8.482 MB / 0.5026 GB, free: 4.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001398/0.4538, allocations: 1.341 MB / 0.5039 GB, free: 3.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006824/0.4545, allocations: 0.6378 MB / 0.5045 GB, free: 2.762 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006861/0.4614, allocations: 5.542 MB / 0.5099 GB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.756e-05/0.4615, allocations: 47.16 kB / 0.51 GB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008238/0.4623, allocations: 182.3 kB / 0.5101 GB, free: 12.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 3.025e-06/0.4623, allocations: 0 / 0.5101 GB, free: 12.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=115): time 0.02432/0.4866, allocations: 7.164 MB / 0.5171 GB, free: 5.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.018e-05/0.4867, allocations: 115.8 kB / 0.5172 GB, free: 5.023 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001863/0.4886, allocations: 1.853 MB / 0.519 GB, free: 3.152 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.718e-05/0.4887, allocations: 49.64 kB / 0.5191 GB, free: 3.098 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005907/0.4893, allocations: 1.006 MB / 0.5201 GB, free: 2.074 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003059/0.4896, allocations: 418.2 kB / 0.5205 GB, free: 1.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005318/0.4901, allocations: 419.1 kB / 0.5209 GB, free: 1.242 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.207e-05/0.4902, allocations: 301.1 kB / 0.5212 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001176/0.4914, allocations: 0.8551 MB / 0.522 GB, free: 88 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001642/0.4931, allocations: 1.585 MB / 0.5235 GB, free: 14.15 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002662/0.4957, allocations: 2.337 MB / 0.5258 GB, free: 11.48 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/0.4957, allocations: 8 kB / 0.5258 GB, free: 11.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007083/0.5028, allocations: 3.299 MB / 0.5291 GB, free: 8.148 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.716e-05/0.5029, allocations: 16 kB / 0.5291 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.474e-05/0.5029, allocations: 24 kB / 0.5291 GB, free: 8.109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004361/0.5073, allocations: 1.046 MB / 0.5301 GB, free: 7.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/0.5086, allocations: 431.3 kB / 0.5305 GB, free: 6.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008862/0.5174, allocations: 7.472 MB / 0.5378 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001552/0.519, allocations: 99.77 kB / 0.5379 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002417/0.5193, allocations: 116 kB / 0.538 GB, free: 14.51 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * 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 (226): * Single equations (assignments): 221 * 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 {(2,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 {(2,15), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007411/0.52, allocations: 409 kB / 0.5384 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003637/0.5204, allocations: 146.2 kB / 0.5386 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006149/0.5266, allocations: 2.192 MB / 0.5407 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.896e-05/0.5266, allocations: 15.94 kB / 0.5407 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.5266, allocations: 8 kB / 0.5407 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.156e-05/0.5266, allocations: 3.984 kB / 0.5407 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008541/0.5352, allocations: 3.939 MB / 0.5446 GB, free: 7.668 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.5352, allocations: 4 kB / 0.5446 GB, free: 7.664 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006742/0.5359, allocations: 171.9 kB / 0.5447 GB, free: 7.496 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00395/0.5398, allocations: 0.9287 MB / 0.5456 GB, free: 6.551 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001129/0.54, allocations: 43.97 kB / 0.5457 GB, free: 6.508 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007334/0.5473, allocations: 6.775 MB / 0.5523 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.5473, allocations: 0 / 0.5523 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006767/0.5541, allocations: 2.901 MB / 0.5551 GB, free: 12.34 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004793/0.5546, allocations: 211.3 kB / 0.5553 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003259/0.555, allocations: 27.98 kB / 0.5554 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009702/0.5559, allocations: 31.98 kB / 0.5554 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002729/0.5562, allocations: 116.7 kB / 0.5555 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/0.5563, allocations: 51.97 kB / 0.5556 GB, free: 11.89 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001528/0.5579, allocations: 1.302 MB / 0.5568 GB, free: 10.59 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5579, allocations: 0 / 0.5568 GB, free: 10.59 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003559/0.5614, allocations: 0.9603 MB / 0.5578 GB, free: 9.629 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (90): * Single equations (assignments): 85 * 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 {(2,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,17), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002473/0.5639, allocations: 0.985 MB / 0.5587 GB, free: 8.633 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005283/0.5692, allocations: 2.641 MB / 0.5613 GB, free: 5.938 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.5693, allocations: 0 / 0.5613 GB, free: 5.938 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002005/0.5713, allocations: 1.233 MB / 0.5625 GB, free: 4.645 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001443/0.5727, allocations: 243.4 kB / 0.5627 GB, free: 4.406 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005137/0.5779, allocations: 3.198 MB / 0.5659 GB, free: 1.16 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008679/0.5788, allocations: 1.31 MB / 0.5671 GB, free: 15.82 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001187/0.58, allocations: 339.7 kB / 0.5675 GB, free: 15.48 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000358/0.5803, allocations: 183.3 kB / 0.5676 GB, free: 15.3 MB / 446.1 MB Notification: Performance of SimCode: time 4.51e-07/0.5803, allocations: 0 / 0.5676 GB, free: 15.3 MB / 446.1 MB Notification: Performance of Templates: time 0.1919/0.7723, allocations: 35.99 MB / 0.6028 GB, free: 132.1 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.makefile (rm -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.sim & ./Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1)