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.006957/0.006957, allocations: 100.6 kB / 15.73 MB, free: 6.035 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.001727/0.001727, allocations: 195.1 kB / 16.67 MB, free: 5.965 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.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1932/0.1932, allocations: 15.33 MB / 305.9 MB, free: 15.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 67.91 kB / 424.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2346, allocations: 53.59 MB / 478.3 MB, free: 25.38 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.03235/0.267, allocations: 29 MB / 0.4954 GB, free: 5.727 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02191/0.2889, allocations: 22.04 MB / 0.5169 GB, free: 15.6 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002008/0.291, allocations: 23.88 kB / 0.517 GB, free: 15.58 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001593/0.2926, allocations: 0.5816 MB / 0.5175 GB, free: 14.99 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004121/0.2967, allocations: 1.35 MB / 0.5188 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008632/0.3053, allocations: 3.304 MB / 0.5221 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003306/0.3087, allocations: 2.402 MB / 0.5244 GB, free: 7.898 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001706/0.3104, allocations: 1.571 MB / 0.526 GB, free: 6.277 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009918/0.3114, allocations: 1.04 MB / 0.527 GB, free: 5.234 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001231/0.3127, allocations: 1.199 MB / 0.5281 GB, free: 4.031 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002826/0.3129, allocations: 232 kB / 0.5284 GB, free: 3.805 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006022/0.319, allocations: 2.344 MB / 0.5306 GB, free: 1.457 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004612/0.3195, allocations: 0.5335 MB / 0.5312 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001046/0.3205, allocations: 1.136 MB / 0.5323 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008034/0.3286, allocations: 4.847 MB / 0.537 GB, free: 10.92 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3286, allocations: 0 / 0.537 GB, free: 10.92 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3286, allocations: 0 / 0.537 GB, free: 10.92 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.852e-05/0.3286, allocations: 0 / 0.537 GB, free: 10.92 MB / 414.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.004577/0.3332, allocations: 2.685 MB / 0.5396 GB, free: 8.176 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.3333, allocations: 8.031 kB / 0.5396 GB, free: 8.168 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000275/0.3336, allocations: 270.5 kB / 0.5399 GB, free: 7.895 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001836/0.3354, allocations: 0.4911 MB / 0.5404 GB, free: 7.402 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001896/0.3373, allocations: 1.189 MB / 0.5415 GB, free: 6.168 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001736/0.3375, allocations: 211.2 kB / 0.5417 GB, free: 5.949 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002788/0.3378, allocations: 191.9 kB / 0.5419 GB, free: 5.762 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00362/0.3414, allocations: 2.64 MB / 0.5445 GB, free: 3.059 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.902e-05/0.3415, allocations: 7.984 kB / 0.5445 GB, free: 3.051 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001658/0.3416, allocations: 76 kB / 0.5446 GB, free: 2.977 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.728e-05/0.3417, allocations: 52 kB / 0.5446 GB, free: 2.926 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004373/0.3461, allocations: 3.275 MB / 0.5478 GB, free: 15.64 MB / 430.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.01157/0.3576, allocations: 8.434 MB / 0.5561 GB, free: 6.918 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001836/0.3595, allocations: 1.321 MB / 0.5574 GB, free: 5.539 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008942/0.3604, allocations: 0.6339 MB / 0.558 GB, free: 4.895 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008214/0.3686, allocations: 5.527 MB / 0.5634 GB, free: 14.84 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.3687, allocations: 51.09 kB / 0.5634 GB, free: 14.79 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008303/0.3695, allocations: 186.3 kB / 0.5636 GB, free: 14.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=81): time 2.845e-06/0.3696, allocations: 0 / 0.5636 GB, free: 14.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=115): time 0.02713/0.3967, allocations: 7.172 MB / 0.5706 GB, free: 7.297 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.964e-05/0.3968, allocations: 119.8 kB / 0.5707 GB, free: 7.156 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002222/0.399, allocations: 1.853 MB / 0.5725 GB, free: 5.285 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000159/0.3992, allocations: 41.7 kB / 0.5726 GB, free: 5.238 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005917/0.3998, allocations: 1.006 MB / 0.5735 GB, free: 4.215 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003862/0.4002, allocations: 418.2 kB / 0.5739 GB, free: 3.801 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006226/0.4008, allocations: 419.2 kB / 0.5743 GB, free: 3.383 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.211e-05/0.4009, allocations: 301.1 kB / 0.5746 GB, free: 3.086 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001364/0.4023, allocations: 0.8551 MB / 0.5755 GB, free: 2.227 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001828/0.4041, allocations: 1.589 MB / 0.577 GB, free: 296 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00297/0.4071, allocations: 2.325 MB / 0.5793 GB, free: 13.63 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.249e-05/0.4071, allocations: 12 kB / 0.5793 GB, free: 13.62 MB / 462.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007829/0.415, allocations: 3.303 MB / 0.5825 GB, free: 10.29 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.774e-05/0.415, allocations: 18.19 kB / 0.5825 GB, free: 10.27 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.669e-05/0.4151, allocations: 24 kB / 0.5826 GB, free: 10.25 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004819/0.4199, allocations: 1.034 MB / 0.5836 GB, free: 9.199 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001493/0.4214, allocations: 439.3 kB / 0.584 GB, free: 8.77 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009994/0.4314, allocations: 7.48 MB / 0.5913 GB, free: 0.8438 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001776/0.4332, allocations: 95.77 kB / 0.5914 GB, free: 0.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002805/0.4335, allocations: 120 kB / 0.5915 GB, free: 0.6328 MB / 462.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.0008163/0.4343, allocations: 405.1 kB / 0.5919 GB, free: 232 kB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000429/0.4348, allocations: 146.2 kB / 0.592 GB, free: 84 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006721/0.4415, allocations: 2.188 MB / 0.5942 GB, free: 13.86 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.561e-05/0.4415, allocations: 15.94 kB / 0.5942 GB, free: 13.84 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.4416, allocations: 7.984 kB / 0.5942 GB, free: 13.84 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.4416, allocations: 7.984 kB / 0.5942 GB, free: 13.83 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00952/0.4511, allocations: 3.944 MB / 0.5981 GB, free: 9.793 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.276e-06/0.4511, allocations: 0 / 0.5981 GB, free: 9.793 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007552/0.4519, allocations: 171.8 kB / 0.5982 GB, free: 9.625 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004338/0.4563, allocations: 0.9249 MB / 0.5991 GB, free: 8.684 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001271/0.4564, allocations: 43.97 kB / 0.5992 GB, free: 8.641 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007955/0.4644, allocations: 6.78 MB / 0.6058 GB, free: 1.422 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4644, allocations: 0 / 0.6058 GB, free: 1.422 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2274/0.6918, allocations: 2.896 MB / 0.6086 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004518/0.6923, allocations: 212.3 kB / 0.6088 GB, free: 114.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004261/0.6927, allocations: 23.05 kB / 0.6088 GB, free: 114.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/0.694, allocations: 36.72 kB / 0.6089 GB, free: 114.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00043/0.6944, allocations: 110.1 kB / 0.609 GB, free: 114.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002052/0.6946, allocations: 54.53 kB / 0.609 GB, free: 114.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001849/0.6965, allocations: 1.299 MB / 0.6103 GB, free: 114.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6965, allocations: 2.656 kB / 0.6103 GB, free: 114.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003889/0.7004, allocations: 0.9599 MB / 0.6112 GB, free: 114.7 MB / 478.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.009903/0.7103, allocations: 4.337 MB / 0.6155 GB, free: 112.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004668/0.715, allocations: 2.504 MB / 0.6179 GB, free: 111.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.902e-06/0.7151, allocations: 1.156 kB / 0.6179 GB, free: 111.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002087/0.7172, allocations: 1.234 MB / 0.6191 GB, free: 111.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001538/0.7187, allocations: 238.7 kB / 0.6194 GB, free: 111 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02841/0.7471, allocations: 16.42 MB / 0.6354 GB, free: 102.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007535/0.7479, allocations: 1.318 MB / 0.6367 GB, free: 101.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001163/0.7491, allocations: 324.8 kB / 0.637 GB, free: 101.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008241/0.7499, allocations: 0.7605 MB / 0.6377 GB, free: 101.2 MB / 478.1 MB Notification: Performance of SimCode: time 1.122e-06/0.75, allocations: 0 / 0.6377 GB, free: 101.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07757/0.8275, allocations: 50.3 MB / 0.6868 GB, free: 57.27 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.8/26.62, allocations: 11.95 kB / 0.6869 GB, free: 57.25 MB / 478.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)