Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.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.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_ElectrochemicalAcetateProduction",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.006951/0.006951, allocations: 96.91 kB / 15.73 MB, free: 6.484 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.001748/0.001748, allocations: 192 kB / 16.67 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.398/1.398, 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.2026/0.2026, allocations: 15.31 MB / 305.9 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002093/0.002093, allocations: 59.91 kB / 424.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2553, allocations: 53.61 MB / 478.3 MB, free: 25.48 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.ElectrochemicalAcetateProduction): time 0.03373/0.2891, allocations: 30.19 MB / 0.4966 GB, free: 4.547 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02903/0.3181, allocations: 24.88 MB / 0.5209 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001912/0.3201, allocations: 23.88 kB / 0.5209 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001846/0.322, allocations: 0.6048 MB / 0.5215 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005458/0.3274, allocations: 1.85 MB / 0.5233 GB, free: 9.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008765/0.3362, allocations: 3.421 MB / 0.5266 GB, free: 5.629 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004077/0.3403, allocations: 2.707 MB / 0.5293 GB, free: 2.91 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002365/0.3427, allocations: 1.765 MB / 0.531 GB, free: 1.098 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001598/0.3443, allocations: 1.243 MB / 0.5322 GB, free: 15.85 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001699/0.346, allocations: 1.417 MB / 0.5336 GB, free: 14.43 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003743/0.3464, allocations: 264 kB / 0.5339 GB, free: 14.17 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007955/0.3544, allocations: 2.699 MB / 0.5365 GB, free: 11.47 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007031/0.3551, allocations: 0.5959 MB / 0.5371 GB, free: 10.87 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001621/0.3567, allocations: 1.268 MB / 0.5383 GB, free: 9.598 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01267/0.3694, allocations: 5.545 MB / 0.5437 GB, free: 4.031 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.064e-06/0.3695, allocations: 0 / 0.5437 GB, free: 4.031 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3695, allocations: 0 / 0.5437 GB, free: 4.031 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.552e-05/0.3696, allocations: 0 / 0.5437 GB, free: 4.031 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: 548 * Number of variables: 548 Notification: Performance of Generate backend data structure: time 0.00614/0.3757, allocations: 3.047 MB / 0.5467 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.3758, allocations: 12.03 kB / 0.5467 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003478/0.3761, allocations: 304 kB / 0.547 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001984/0.3781, allocations: 0.518 MB / 0.5475 GB, free: 76 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002168/0.3803, allocations: 1.28 MB / 0.5488 GB, free: 14.75 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000208/0.3805, allocations: 223.8 kB / 0.549 GB, free: 14.51 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003428/0.3809, allocations: 223.9 kB / 0.5492 GB, free: 14.29 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004474/0.3854, allocations: 2.677 MB / 0.5518 GB, free: 11.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.348e-05/0.3854, allocations: 3.984 kB / 0.5518 GB, free: 11.5 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002208/0.3857, allocations: 88 kB / 0.5519 GB, free: 11.41 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.78e-05/0.3857, allocations: 59.94 kB / 0.552 GB, free: 11.36 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005069/0.3908, allocations: 3.16 MB / 0.555 GB, free: 8.191 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.01531/0.4061, allocations: 9.248 MB / 0.5641 GB, free: 14.59 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002662/0.4088, allocations: 1.841 MB / 0.5659 GB, free: 12.66 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001382/0.4102, allocations: 0.9021 MB / 0.5668 GB, free: 11.75 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01112/0.4213, allocations: 7.454 MB / 0.574 GB, free: 3.547 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.523e-05/0.4214, allocations: 43.56 kB / 0.5741 GB, free: 3.492 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009298/0.4223, allocations: 218.7 kB / 0.5743 GB, free: 3.277 MB / 446.1 MB Notification: Performance of pre-optimization done (n=113): time 5.581e-06/0.4224, allocations: 0 / 0.5743 GB, free: 3.277 MB / 446.1 MB Notification: Performance of matching and sorting (n=161): time 0.03669/0.4591, allocations: 9.554 MB / 0.5836 GB, free: 9.613 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.091e-05/0.4592, allocations: 120.1 kB / 0.5837 GB, free: 9.469 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001968/0.4612, allocations: 1.345 MB / 0.585 GB, free: 8.105 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001795/0.4614, allocations: 49.7 kB / 0.5851 GB, free: 8.051 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008479/0.4622, allocations: 1.089 MB / 0.5861 GB, free: 6.949 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006045/0.4628, allocations: 0.5811 MB / 0.5867 GB, free: 6.363 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008159/0.4637, allocations: 472.6 kB / 0.5872 GB, free: 5.895 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.4638, allocations: 313.1 kB / 0.5875 GB, free: 5.586 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001567/0.4654, allocations: 0.848 MB / 0.5883 GB, free: 4.734 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002309/0.4677, allocations: 1.705 MB / 0.59 GB, free: 2.625 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004071/0.4718, allocations: 2.689 MB / 0.5926 GB, free: 15.54 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.019e-05/0.4718, allocations: 8 kB / 0.5926 GB, free: 15.53 MB / 478.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.00901/0.4808, allocations: 3.488 MB / 0.596 GB, free: 12.02 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.859e-05/0.4809, allocations: 23.94 kB / 0.596 GB, free: 12 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.333e-05/0.481, allocations: 35.97 kB / 0.5961 GB, free: 11.96 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005398/0.4864, allocations: 1.155 MB / 0.5972 GB, free: 10.79 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001953/0.4883, allocations: 0.5187 MB / 0.5977 GB, free: 10.27 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0111/0.4995, allocations: 7.616 MB / 0.6051 GB, free: 2.203 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001969/0.5015, allocations: 107.9 kB / 0.6052 GB, free: 2.098 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000441/0.5019, allocations: 140 kB / 0.6054 GB, free: 1.961 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (270): * Single equations (assignments): 265 * 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 {(1,20), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001112/0.5031, allocations: 452.9 kB / 0.6058 GB, free: 1.508 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004484/0.5035, allocations: 162.9 kB / 0.606 GB, free: 1.348 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1993/0.7029, allocations: 2.85 MB / 0.6087 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.116e-05/0.7029, allocations: 17.03 kB / 0.6088 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.629e-06/0.7029, allocations: 3.062 kB / 0.6088 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.276e-05/0.703, allocations: 9.594 kB / 0.6088 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01086/0.7138, allocations: 4.868 MB / 0.6135 GB, free: 113.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.787e-06/0.7139, allocations: 2.672 kB / 0.6135 GB, free: 113.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/0.7149, allocations: 256.4 kB / 0.6138 GB, free: 113.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004566/0.7195, allocations: 1.038 MB / 0.6148 GB, free: 113.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001415/0.7197, allocations: 61.33 kB / 0.6148 GB, free: 113.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006922/0.7266, allocations: 6.923 MB / 0.6216 GB, free: 107.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.7266, allocations: 5.406 kB / 0.6216 GB, free: 107.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00773/0.7344, allocations: 3.672 MB / 0.6252 GB, free: 105.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003686/0.7347, allocations: 233.5 kB / 0.6254 GB, free: 105.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002223/0.735, allocations: 35.88 kB / 0.6254 GB, free: 105.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009218/0.7359, allocations: 35.52 kB / 0.6255 GB, free: 105.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003202/0.7362, allocations: 156.6 kB / 0.6256 GB, free: 105.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/0.7364, allocations: 70.05 kB / 0.6257 GB, free: 105.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0009361/0.7373, allocations: 0.8809 MB / 0.6266 GB, free: 105.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.7373, allocations: 3.531 kB / 0.6266 GB, free: 105.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002894/0.7402, allocations: 1.107 MB / 0.6276 GB, free: 105.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,AcAc.logn,CO2.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 (133): * Single equations (assignments): 128 * 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,21), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009627/0.7498, allocations: 5.274 MB / 0.6328 GB, free: 102.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004496/0.7544, allocations: 2.781 MB / 0.6355 GB, free: 101.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.7544, allocations: 2.656 kB / 0.6355 GB, free: 101.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002107/0.7565, allocations: 1.466 MB / 0.6369 GB, free: 100.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001491/0.758, allocations: 283.6 kB / 0.6372 GB, free: 100.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02493/0.7829, allocations: 17.22 MB / 0.654 GB, free: 89.28 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006576/0.7836, allocations: 1.397 MB / 0.6554 GB, free: 87.87 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001125/0.7848, allocations: 390.7 kB / 0.6558 GB, free: 87.61 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008437/0.7856, allocations: 0.8794 MB / 0.6566 GB, free: 86.73 MB / 478.1 MB Notification: Performance of SimCode: time 7.31e-07/0.7856, allocations: 0 / 0.6566 GB, free: 86.73 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08422/0.8699, allocations: 56.91 MB / 0.7122 GB, free: 30.88 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 30.55/31.42, allocations: 0.6875 kB / 0.7122 GB, free: 30.88 MB / 478.1 MB (rm -f Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_Chemical_Examples_ClimateChange_ElectrochemicalAcetateProduction.fmu > Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1)