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: "" <> buildModelFMU(Chemical.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001136/0.001136, 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.001111/0.001111, allocations: 197.6 kB / 16.54 MB, free: 6.672 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.157/1.157, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1518/0.1518, allocations: 15.32 MB / 305.7 MB, free: 15.31 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001094/0.001094, allocations: 59.89 kB / 370.4 MB, free: 3.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07656/0.07767, allocations: 53.61 MB / 424.1 MB, free: 14.18 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.2653/0.343, allocations: 28.97 MB / 453 MB, free: 39.04 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01579/0.3588, allocations: 22.04 MB / 475.1 MB, free: 28.4 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007692/0.3596, allocations: 24.09 kB / 475.1 MB, free: 28.39 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001032/0.3606, allocations: 0.5717 MB / 475.7 MB, free: 28.06 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002345/0.363, allocations: 1.35 MB / 477 MB, free: 27.21 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005969/0.369, allocations: 3.276 MB / 480.3 MB, free: 25.28 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001783/0.3708, allocations: 2.385 MB / 482.7 MB, free: 24.1 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001195/0.372, allocations: 1.573 MB / 484.2 MB, free: 23.35 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007756/0.3728, allocations: 1.026 MB / 485.3 MB, free: 22.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009534/0.3737, allocations: 1.209 MB / 486.5 MB, free: 22.36 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002777/0.374, allocations: 233.3 kB / 486.7 MB, free: 22.36 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005502/0.3795, allocations: 2.337 MB / 489 MB, free: 21.78 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003099/0.3798, allocations: 0.5371 MB / 489.6 MB, free: 21.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000736/0.3806, allocations: 1.128 MB / 490.7 MB, free: 20.76 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005378/0.386, allocations: 4.815 MB / 495.5 MB, free: 18.63 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.386, allocations: 0 / 495.5 MB, free: 18.63 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.386, allocations: 0 / 495.5 MB, free: 18.63 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.044e-05/0.386, allocations: 0 / 495.5 MB, free: 18.63 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.003514/0.3896, allocations: 2.685 MB / 498.2 MB, free: 17.04 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.016e-05/0.3896, allocations: 10.69 kB / 498.2 MB, free: 17.04 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000228/0.3898, allocations: 264.9 kB / 498.5 MB, free: 16.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00151/0.3913, allocations: 0.4962 MB / 499 MB, free: 16.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/0.3927, allocations: 1.153 MB / 0.4884 GB, free: 16.03 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001043/0.3928, allocations: 210.5 kB / 0.4886 GB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002168/0.393, allocations: 189.2 kB / 0.4888 GB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002878/0.3959, allocations: 2.639 MB / 0.4914 GB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.123e-05/0.3959, allocations: 3.938 kB / 0.4914 GB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001574/0.3961, allocations: 80.53 kB / 0.4914 GB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.816e-05/0.3961, allocations: 48.86 kB / 0.4915 GB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003418/0.3995, allocations: 3.275 MB / 0.4947 GB, free: 11.94 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.008639/0.4082, allocations: 8.486 MB / 0.503 GB, free: 4.422 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.4096, allocations: 1.329 MB / 0.5043 GB, free: 3.023 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000665/0.4102, allocations: 0.63 MB / 0.5049 GB, free: 2.383 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006421/0.4167, allocations: 5.554 MB / 0.5103 GB, free: 12.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.4167, allocations: 43.16 kB / 0.5104 GB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006539/0.4174, allocations: 182.3 kB / 0.5105 GB, free: 12.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 2.315e-06/0.4174, allocations: 4 kB / 0.5105 GB, free: 12.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=115): time 0.02354/0.4409, allocations: 7.16 MB / 0.5175 GB, free: 4.773 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.441, allocations: 119.8 kB / 0.5176 GB, free: 4.633 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001712/0.4427, allocations: 1.849 MB / 0.5194 GB, free: 2.766 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.526e-05/0.4428, allocations: 49.77 kB / 0.5195 GB, free: 2.711 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005254/0.4433, allocations: 1.01 MB / 0.5205 GB, free: 1.684 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002724/0.4436, allocations: 418.1 kB / 0.5209 GB, free: 1.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005074/0.4441, allocations: 415.1 kB / 0.5213 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.805e-05/0.4442, allocations: 301.1 kB / 0.5216 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001122/0.4453, allocations: 0.8551 MB / 0.5224 GB, free: 15.7 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001506/0.4468, allocations: 1.585 MB / 0.5239 GB, free: 13.77 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002535/0.4494, allocations: 2.333 MB / 0.5262 GB, free: 11.1 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.826e-06/0.4494, allocations: 8 kB / 0.5262 GB, free: 11.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.006896/0.4563, allocations: 3.303 MB / 0.5295 GB, free: 7.762 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.4563, allocations: 12 kB / 0.5295 GB, free: 7.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.997e-05/0.4564, allocations: 24 kB / 0.5295 GB, free: 7.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004128/0.4605, allocations: 1.042 MB / 0.5305 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/0.4617, allocations: 439.3 kB / 0.5309 GB, free: 6.238 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008197/0.4699, allocations: 7.472 MB / 0.5382 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/0.4711, allocations: 91.7 kB / 0.5383 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001524/0.4713, allocations: 124 kB / 0.5384 GB, free: 14.12 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.0005539/0.4718, allocations: 409 kB / 0.5388 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002619/0.4721, allocations: 142.2 kB / 0.539 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005831/0.4779, allocations: 2.195 MB / 0.5411 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/0.478, allocations: 15.94 kB / 0.5411 GB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.478, allocations: 4 kB / 0.5411 GB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.46e-05/0.478, allocations: 3.984 kB / 0.5411 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007872/0.4859, allocations: 3.942 MB / 0.545 GB, free: 7.281 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.4859, allocations: 0 / 0.545 GB, free: 7.281 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006355/0.4865, allocations: 175.7 kB / 0.5451 GB, free: 7.109 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003774/0.4903, allocations: 0.9288 MB / 0.546 GB, free: 6.164 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.061e-05/0.4904, allocations: 39.97 kB / 0.5461 GB, free: 6.125 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006832/0.4972, allocations: 6.779 MB / 0.5527 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.4973, allocations: 0 / 0.5527 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006087/0.5033, allocations: 2.897 MB / 0.5555 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000198/0.5036, allocations: 215.2 kB / 0.5557 GB, free: 11.73 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001924/0.5038, allocations: 27.98 kB / 0.5558 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007857/0.5046, allocations: 39.92 kB / 0.5558 GB, free: 11.66 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002199/0.5048, allocations: 108.8 kB / 0.5559 GB, free: 11.56 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.596e-05/0.5049, allocations: 51.97 kB / 0.556 GB, free: 11.51 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001186/0.5061, allocations: 1.298 MB / 0.5572 GB, free: 10.21 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5061, allocations: 0 / 0.5572 GB, free: 10.21 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002344/0.5084, allocations: 0.9603 MB / 0.5582 GB, free: 9.246 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.00782/0.5162, allocations: 4.34 MB / 0.5624 GB, free: 4.844 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004463/0.5207, allocations: 2.648 MB / 0.565 GB, free: 2.141 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.5207, allocations: 0 / 0.565 GB, free: 2.141 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00178/0.5225, allocations: 1.226 MB / 0.5662 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001217/0.5238, allocations: 244.2 kB / 0.5664 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02403/0.5478, allocations: 17.36 MB / 0.5834 GB, free: 13.98 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007383/0.5486, allocations: 1.314 MB / 0.5847 GB, free: 12.64 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001105/0.5497, allocations: 335.6 kB / 0.585 GB, free: 12.31 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007767/0.5505, allocations: 0.7608 MB / 0.5857 GB, free: 11.55 MB / 462.1 MB Notification: Performance of SimCode: time 6.51e-07/0.5505, allocations: 0 / 0.5857 GB, free: 11.55 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1967/0.7472, allocations: 49.68 MB / 0.6342 GB, free: 124.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.76, allocations: 12.59 kB / 0.6342 GB, free: 124.1 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis.fmu > Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1)