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.0009089/0.0009089, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.005491/0.005491, allocations: 169.7 kB / 16.27 MB, free: 6.652 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.25/1.25, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1832/0.1832, allocations: 15.28 MB / 306.7 MB, free: 15.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002956/0.0002955, allocations: 8 kB / 372.2 MB, free: 3.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2549, allocations: 54.62 MB / 426.8 MB, free: 40.54 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.MethanElectrosynthesis): time 0.02914/0.2841, allocations: 29.52 MB / 456.3 MB, free: 29.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02039/0.3045, allocations: 21.81 MB / 478.1 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001379/0.3059, allocations: 41.75 kB / 478.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001217/0.3071, allocations: 0.5078 MB / 478.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002994/0.3101, allocations: 1.213 MB / 479.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007124/0.3173, allocations: 2.877 MB / 482.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00213/0.3194, allocations: 2.317 MB / 485.1 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001083/0.3205, allocations: 1.295 MB / 486.4 MB, free: 7.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006867/0.3212, allocations: 0.9031 MB / 487.3 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009818/0.3222, allocations: 1.094 MB / 488.4 MB, free: 5.508 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001709/0.3224, allocations: 120 kB / 488.5 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005939/0.3283, allocations: 2.248 MB / 490.8 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003569/0.3287, allocations: 428.5 kB / 491.2 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007494/0.3294, allocations: 1.029 MB / 492.2 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007964/0.3374, allocations: 4.48 MB / 496.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3374, allocations: 0 / 496.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3375, allocations: 0 / 496.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.428e-05/0.3375, allocations: 0 / 496.7 MB, free: 14.64 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.004279/0.3418, allocations: 2.269 MB / 499 MB, free: 12.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.3418, allocations: 8.031 kB / 499 MB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00034/0.3422, allocations: 268.8 kB / 499.2 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001761/0.344, allocations: 0.5004 MB / 499.7 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001718/0.3457, allocations: 1.143 MB / 0.4891 GB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001568/0.3459, allocations: 204.1 kB / 0.4893 GB, free: 10.72 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002835/0.3461, allocations: 192.7 kB / 0.4895 GB, free: 10.53 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003927/0.3501, allocations: 2.646 MB / 0.4921 GB, free: 8.305 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.57e-05/0.3501, allocations: 0 / 0.4921 GB, free: 8.305 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001848/0.3503, allocations: 76 kB / 0.4922 GB, free: 8.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-05/0.3504, allocations: 48.66 kB / 0.4922 GB, free: 8.184 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004536/0.3549, allocations: 3.288 MB / 0.4954 GB, free: 5.289 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.01104/0.366, allocations: 8.455 MB / 0.5037 GB, free: 12.56 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001823/0.3678, allocations: 1.325 MB / 0.505 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000937/0.3687, allocations: 0.6379 MB / 0.5056 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007228/0.376, allocations: 5.472 MB / 0.5109 GB, free: 4.516 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/0.376, allocations: 55.09 kB / 0.511 GB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006682/0.3767, allocations: 170.4 kB / 0.5112 GB, free: 4.281 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 2.856e-06/0.3767, allocations: 0 / 0.5112 GB, free: 4.281 MB / 382.1 MB Notification: Performance of matching and sorting (n=115): time 0.02633/0.4031, allocations: 7.067 MB / 0.5181 GB, free: 13.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.299e-05/0.4031, allocations: 115.8 kB / 0.5182 GB, free: 12.95 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002015/0.4052, allocations: 1.849 MB / 0.52 GB, free: 11.08 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.624e-05/0.4053, allocations: 49.64 kB / 0.52 GB, free: 11.03 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005871/0.4059, allocations: 1.014 MB / 0.521 GB, free: 9.996 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003089/0.4062, allocations: 406.3 kB / 0.5214 GB, free: 9.594 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002115/0.4064, allocations: 161.7 kB / 0.5216 GB, free: 9.43 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.976e-05/0.4065, allocations: 305.1 kB / 0.5218 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001236/0.4077, allocations: 0.8434 MB / 0.5227 GB, free: 8.281 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001643/0.4094, allocations: 1.577 MB / 0.5242 GB, free: 6.355 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002748/0.4121, allocations: 2.313 MB / 0.5265 GB, free: 3.707 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.066e-05/0.4122, allocations: 8 kB / 0.5265 GB, free: 3.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007481/0.4196, allocations: 3.26 MB / 0.5297 GB, free: 424 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.092e-05/0.4197, allocations: 15.98 kB / 0.5297 GB, free: 408 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.817e-05/0.4197, allocations: 24 kB / 0.5297 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004772/0.4245, allocations: 1.007 MB / 0.5307 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001421/0.4259, allocations: 439.3 kB / 0.5311 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009308/0.4353, allocations: 6.912 MB / 0.5378 GB, free: 7.586 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001775/0.4371, allocations: 115.6 kB / 0.538 GB, free: 7.473 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001906/0.4373, allocations: 116 kB / 0.5381 GB, free: 7.359 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.0007469/0.438, allocations: 405 kB / 0.5385 GB, free: 6.953 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002547/0.4383, allocations: 142.2 kB / 0.5386 GB, free: 6.812 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006335/0.4446, allocations: 2.153 MB / 0.5407 GB, free: 4.637 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.4447, allocations: 16 kB / 0.5407 GB, free: 4.621 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.4447, allocations: 0 / 0.5407 GB, free: 4.621 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.614e-05/0.4447, allocations: 15.97 kB / 0.5407 GB, free: 4.605 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008437/0.4531, allocations: 3.858 MB / 0.5445 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.4531, allocations: 0 / 0.5445 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000699/0.4539, allocations: 167.8 kB / 0.5446 GB, free: 492 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004388/0.4583, allocations: 0.917 MB / 0.5455 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.346e-05/0.4584, allocations: 43.97 kB / 0.5456 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007454/0.4658, allocations: 6.272 MB / 0.5517 GB, free: 8.809 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.4658, allocations: 8.016 kB / 0.5517 GB, free: 8.801 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006752/0.4726, allocations: 2.85 MB / 0.5545 GB, free: 5.902 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003582/0.473, allocations: 235.2 kB / 0.5547 GB, free: 5.652 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001815/0.4732, allocations: 24 kB / 0.5547 GB, free: 5.629 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008907/0.4741, allocations: 52.09 kB / 0.5548 GB, free: 5.578 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002506/0.4743, allocations: 113 kB / 0.5549 GB, free: 5.469 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.944e-05/0.4744, allocations: 55.97 kB / 0.555 GB, free: 5.414 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001396/0.4758, allocations: 1.302 MB / 0.5562 GB, free: 4.109 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4758, allocations: 0 / 0.5562 GB, free: 4.109 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00267/0.4785, allocations: 0.9486 MB / 0.5572 GB, free: 3.16 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.008419/0.4869, allocations: 4.289 MB / 0.5613 GB, free: 14.81 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004201/0.4912, allocations: 2.47 MB / 0.5638 GB, free: 12.29 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.4912, allocations: 8.125 kB / 0.5638 GB, free: 12.28 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001906/0.4931, allocations: 1.209 MB / 0.5649 GB, free: 11.01 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001811/0.4949, allocations: 244.9 kB / 0.5652 GB, free: 10.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0302/0.5251, allocations: 18.17 MB / 0.5829 GB, free: 7.32 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008417/0.526, allocations: 1.307 MB / 0.5842 GB, free: 5.984 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001308/0.5273, allocations: 344 kB / 0.5845 GB, free: 5.645 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008937/0.5282, allocations: 0.757 MB / 0.5853 GB, free: 4.891 MB / 462.1 MB Notification: Performance of SimCode: time 9.92e-07/0.5282, allocations: 0 / 0.5853 GB, free: 4.891 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.618/2.146, allocations: 47.39 MB / 0.6315 GB, free: 122.2 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002134/2.146, allocations: 240.3 kB / 0.6318 GB, free: 122 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.135/5.281, allocations: 0 / 0.6318 GB, free: 122 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)