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.006332/0.006332, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.001437/0.001437, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.0768/0.0768, allocations: 15.31 MB / 305.8 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 67.91 kB / 424.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08216/0.08343, allocations: 53.61 MB / 478.3 MB, free: 6.281 MB / 350.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.03662/0.1201, allocations: 29.67 MB / 0.4961 GB, free: 8.676 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2057/0.3258, allocations: 24.87 MB / 0.5204 GB, free: 15.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001216/0.327, allocations: 28.41 kB / 0.5204 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001473/0.3285, allocations: 0.6104 MB / 0.521 GB, free: 15.1 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004795/0.3333, allocations: 1.87 MB / 0.5228 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008594/0.3419, allocations: 3.452 MB / 0.5262 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003357/0.3453, allocations: 2.707 MB / 0.5288 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002002/0.3473, allocations: 1.759 MB / 0.5305 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001694/0.349, allocations: 1.253 MB / 0.5318 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001999/0.3511, allocations: 1.417 MB / 0.5331 GB, free: 9.254 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005245/0.3516, allocations: 260.8 kB / 0.5334 GB, free: 9.254 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008972/0.3606, allocations: 2.691 MB / 0.536 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008027/0.3614, allocations: 0.6111 MB / 0.5366 GB, free: 7.992 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002134/0.3636, allocations: 1.273 MB / 0.5379 GB, free: 7.129 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01137/0.3749, allocations: 5.508 MB / 0.5432 GB, free: 3.656 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.375, allocations: 0 / 0.5432 GB, free: 3.656 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.375, allocations: 0 / 0.5432 GB, free: 3.656 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.363e-05/0.3751, allocations: 0 / 0.5432 GB, free: 3.656 MB / 382.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.005126/0.3802, allocations: 2.965 MB / 0.5461 GB, free: 1.395 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.3802, allocations: 12.03 kB / 0.5461 GB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002605/0.3805, allocations: 304 kB / 0.5464 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001872/0.3824, allocations: 0.5038 MB / 0.5469 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002099/0.3845, allocations: 1.283 MB / 0.5482 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000191/0.3847, allocations: 220.2 kB / 0.5484 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004108/0.3851, allocations: 223.7 kB / 0.5486 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004478/0.3896, allocations: 2.682 MB / 0.5512 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.59e-05/0.3897, allocations: 4 kB / 0.5512 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002044/0.3899, allocations: 88 kB / 0.5513 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.932e-05/0.3899, allocations: 52 kB / 0.5514 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00495/0.3949, allocations: 3.163 MB / 0.5545 GB, free: 8.703 MB / 398.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.01412/0.409, allocations: 9.217 MB / 0.5635 GB, free: 15.17 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002531/0.4116, allocations: 1.844 MB / 0.5653 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001371/0.413, allocations: 0.9026 MB / 0.5661 GB, free: 12.34 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01039/0.4234, allocations: 7.441 MB / 0.5734 GB, free: 4.164 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.4235, allocations: 50.22 kB / 0.5734 GB, free: 4.105 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009197/0.4244, allocations: 206.2 kB / 0.5736 GB, free: 3.902 MB / 414.1 MB Notification: Performance of pre-optimization done (n=113): time 3.757e-06/0.4244, allocations: 0 / 0.5736 GB, free: 3.902 MB / 414.1 MB Notification: Performance of matching and sorting (n=161): time 0.0357/0.4601, allocations: 9.481 MB / 0.5829 GB, free: 10.43 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.142e-05/0.4602, allocations: 120.1 kB / 0.583 GB, free: 10.28 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00153/0.4618, allocations: 1.345 MB / 0.5843 GB, free: 8.918 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001766/0.462, allocations: 53.7 kB / 0.5844 GB, free: 8.859 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006212/0.4626, allocations: 1.052 MB / 0.5854 GB, free: 7.793 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004789/0.4631, allocations: 0.5624 MB / 0.586 GB, free: 7.223 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006555/0.4637, allocations: 472.3 kB / 0.5864 GB, free: 6.754 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.567e-05/0.4638, allocations: 305.1 kB / 0.5867 GB, free: 6.453 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001402/0.4652, allocations: 0.848 MB / 0.5875 GB, free: 5.602 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001938/0.4672, allocations: 1.715 MB / 0.5892 GB, free: 3.508 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003626/0.4708, allocations: 2.685 MB / 0.5918 GB, free: 500 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-05/0.4709, allocations: 11.94 kB / 0.5918 GB, free: 488 kB / 430.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.008882/0.4798, allocations: 3.481 MB / 0.5952 GB, free: 13 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.655e-05/0.4798, allocations: 16 kB / 0.5953 GB, free: 12.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.042e-05/0.4799, allocations: 31.94 kB / 0.5953 GB, free: 12.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005515/0.4854, allocations: 1.155 MB / 0.5964 GB, free: 11.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00197/0.4874, allocations: 0.507 MB / 0.5969 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009951/0.4974, allocations: 7.625 MB / 0.6044 GB, free: 3.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00199/0.4994, allocations: 106.4 kB / 0.6045 GB, free: 3.168 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003807/0.4998, allocations: 140 kB / 0.6046 GB, free: 3.031 MB / 446.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.0009034/0.5007, allocations: 455.5 kB / 0.605 GB, free: 2.578 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004238/0.5011, allocations: 154 kB / 0.6052 GB, free: 2.426 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008493/0.5096, allocations: 2.853 MB / 0.608 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.895e-05/0.5097, allocations: 22.62 kB / 0.608 GB, free: 15.62 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/0.5097, allocations: 0 / 0.608 GB, free: 15.62 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.368e-05/0.5098, allocations: 14.62 kB / 0.608 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01236/0.5222, allocations: 4.879 MB / 0.6128 GB, free: 10.63 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.381e-05/0.5222, allocations: 0 / 0.6128 GB, free: 10.63 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.5234, allocations: 251.7 kB / 0.613 GB, free: 10.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004955/0.5284, allocations: 1.035 MB / 0.614 GB, free: 9.355 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002039/0.5286, allocations: 62.64 kB / 0.6141 GB, free: 9.297 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008202/0.5368, allocations: 6.917 MB / 0.6208 GB, free: 1.957 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.359e-06/0.5368, allocations: 4 kB / 0.6208 GB, free: 1.953 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008582/0.5454, allocations: 3.677 MB / 0.6244 GB, free: 14.23 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004017/0.5459, allocations: 219 kB / 0.6246 GB, free: 14 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002362/0.5461, allocations: 35.94 kB / 0.6247 GB, free: 13.96 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.5471, allocations: 42.67 kB / 0.6247 GB, free: 13.93 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003359/0.5475, allocations: 149 kB / 0.6248 GB, free: 13.78 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000146/0.5476, allocations: 74.53 kB / 0.6249 GB, free: 13.71 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001053/0.5487, allocations: 0.8882 MB / 0.6258 GB, free: 12.82 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5487, allocations: 0 / 0.6258 GB, free: 12.82 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003177/0.5519, allocations: 1.093 MB / 0.6268 GB, free: 11.72 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.01068/0.5626, allocations: 5.247 MB / 0.632 GB, free: 6.48 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005075/0.5677, allocations: 2.773 MB / 0.6347 GB, free: 3.66 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.792e-06/0.5677, allocations: 4 kB / 0.6347 GB, free: 3.656 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002561/0.5703, allocations: 1.465 MB / 0.6361 GB, free: 2.129 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001656/0.572, allocations: 293.1 kB / 0.6364 GB, free: 1.863 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0331/0.6051, allocations: 17.1 MB / 0.6531 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/0.6061, allocations: 1.399 MB / 0.6545 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001504/0.6077, allocations: 389.3 kB / 0.6548 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001238/0.6089, allocations: 0.8841 MB / 0.6557 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of SimCode: time 8.02e-07/0.6089, allocations: 0 / 0.6557 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09841/0.7074, allocations: 56.89 MB / 0.7113 GB, free: 4.473 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.79/31.5, allocations: 7.188 kB / 0.7113 GB, free: 4.469 MB / 0.545 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_ClimateChange_ElectrochemicalAcetateProduction_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_ClimateChange_ElectrochemicalAcetateProduction.fmu > Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1)