Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.LeadAcidBattery.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.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Examples_LeadAcidBattery",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.004916/0.004916, allocations: 98.78 kB / 15.73 MB, free: 6.062 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.001247/0.001247, allocations: 193.4 kB / 16.67 MB, free: 5.973 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.291/1.291, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07737/0.07737, allocations: 15.3 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 60.12 kB / 424.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08599/0.08717, allocations: 53.61 MB / 478.3 MB, free: 6.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01189/0.0991, allocations: 11.64 MB / 489.9 MB, free: 10.57 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2495/0.3486, allocations: 33.73 MB / 0.5114 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003154/0.3518, allocations: 29.03 kB / 0.5114 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003059/0.3549, allocations: 0.7541 MB / 0.5122 GB, free: 2.738 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009519/0.3645, allocations: 2.783 MB / 0.5149 GB, free: 2.668 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01394/0.3784, allocations: 4.448 MB / 0.5192 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006685/0.3851, allocations: 3.424 MB / 0.5226 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003153/0.3883, allocations: 2.081 MB / 0.5246 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002847/0.3912, allocations: 1.652 MB / 0.5262 GB, free: 364 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004475/0.3957, allocations: 1.957 MB / 0.5281 GB, free: 0 / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001138/0.3968, allocations: 323 kB / 0.5284 GB, free: 0 / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01782/0.4147, allocations: 3.729 MB / 0.5321 GB, free: 15.1 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001795/0.4165, allocations: 0.7529 MB / 0.5328 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002715/0.4192, allocations: 1.579 MB / 0.5343 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01836/0.4376, allocations: 7.281 MB / 0.5415 GB, free: 9.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.4377, allocations: 0 / 0.5415 GB, free: 9.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4377, allocations: 4 kB / 0.5415 GB, free: 9.926 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001802/0.4379, allocations: 0 / 0.5415 GB, free: 9.926 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 669 * Number of variables: 669 Notification: Performance of Generate backend data structure: time 0.009642/0.4475, allocations: 3.796 MB / 0.5452 GB, free: 7.375 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.4476, allocations: 14.34 kB / 0.5452 GB, free: 7.371 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005422/0.4481, allocations: 365.2 kB / 0.5455 GB, free: 7.008 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002897/0.4511, allocations: 0.6231 MB / 0.5461 GB, free: 6.383 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003406/0.4545, allocations: 1.501 MB / 0.5476 GB, free: 4.855 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002201/0.4547, allocations: 257.4 kB / 0.5479 GB, free: 4.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005522/0.4553, allocations: 275.8 kB / 0.5481 GB, free: 4.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005416/0.4607, allocations: 3.12 MB / 0.5512 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.536e-05/0.4608, allocations: 0 / 0.5512 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002487/0.461, allocations: 108 kB / 0.5513 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.82e-05/0.4611, allocations: 64 kB / 0.5513 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005743/0.4668, allocations: 3.842 MB / 0.5551 GB, free: 13.11 MB / 414.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.01559/0.4825, allocations: 9.9 MB / 0.5647 GB, free: 2.961 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00466/0.4871, allocations: 3.459 MB / 0.5681 GB, free: 15.37 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001942/0.4891, allocations: 1.337 MB / 0.5694 GB, free: 14.03 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01433/0.5035, allocations: 10.86 MB / 0.58 GB, free: 2.098 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.918e-05/0.5035, allocations: 60.55 kB / 0.5801 GB, free: 2.031 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008193/0.5043, allocations: 202.5 kB / 0.5803 GB, free: 1.832 MB / 430.1 MB Notification: Performance of pre-optimization done (n=177): time 4.068e-06/0.5044, allocations: 0 / 0.5803 GB, free: 1.832 MB / 430.1 MB Notification: Performance of matching and sorting (n=251): time 0.04482/0.5492, allocations: 12.33 MB / 0.5923 GB, free: 5.383 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.593e-05/0.5493, allocations: 77.41 kB / 0.5924 GB, free: 5.297 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001612/0.5509, allocations: 1.172 MB / 0.5936 GB, free: 4.113 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002615/0.5512, allocations: 69.7 kB / 0.5936 GB, free: 4.039 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006627/0.5518, allocations: 1.185 MB / 0.5948 GB, free: 2.852 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006976/0.5525, allocations: 0.8974 MB / 0.5957 GB, free: 1.965 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008048/0.5534, allocations: 0.5652 MB / 0.5962 GB, free: 1.391 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.886e-05/0.5535, allocations: 301.1 kB / 0.5965 GB, free: 1.094 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001726/0.5552, allocations: 1.017 MB / 0.5975 GB, free: 76 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002532/0.5577, allocations: 1.902 MB / 0.5993 GB, free: 13.79 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004886/0.5626, allocations: 3.209 MB / 0.6025 GB, free: 10.16 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.863e-05/0.5627, allocations: 8 kB / 0.6025 GB, free: 10.15 MB / 462.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01019/0.5729, allocations: 4.141 MB / 0.6065 GB, free: 5.945 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.3e-05/0.573, allocations: 19.94 kB / 0.6065 GB, free: 5.926 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.866e-05/0.573, allocations: 28 kB / 0.6066 GB, free: 5.898 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006439/0.5795, allocations: 1.353 MB / 0.6079 GB, free: 4.535 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002605/0.5821, allocations: 0.6541 MB / 0.6085 GB, free: 3.883 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01118/0.5933, allocations: 8.282 MB / 0.6166 GB, free: 11.16 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0023/0.5956, allocations: 95.98 kB / 0.6167 GB, free: 11.06 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004772/0.5961, allocations: 171.9 kB / 0.6169 GB, free: 10.89 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 127 * 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 (341): * Single equations (assignments): 336 * 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 {(3,15,77.8%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,25), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001204/0.5974, allocations: 0.5126 MB / 0.6174 GB, free: 10.37 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005246/0.5979, allocations: 202.7 kB / 0.6176 GB, free: 10.17 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009946/0.6078, allocations: 3.903 MB / 0.6214 GB, free: 6.191 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.13e-05/0.6079, allocations: 24 kB / 0.6214 GB, free: 6.168 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.975e-05/0.6079, allocations: 4 kB / 0.6214 GB, free: 6.164 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.662e-05/0.608, allocations: 11.95 kB / 0.6214 GB, free: 6.152 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01539/0.6234, allocations: 6.325 MB / 0.6276 GB, free: 15.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.413e-05/0.6235, allocations: 4 kB / 0.6276 GB, free: 15.73 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002135/0.6256, allocations: 443.7 kB / 0.628 GB, free: 15.29 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005827/0.6314, allocations: 1.267 MB / 0.6293 GB, free: 14.01 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004919/0.632, allocations: 95.94 kB / 0.6294 GB, free: 13.92 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01053/0.6425, allocations: 7.795 MB / 0.637 GB, free: 5.691 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-05/0.6426, allocations: 7.938 kB / 0.637 GB, free: 5.684 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01256/0.6552, allocations: 5.051 MB / 0.6419 GB, free: 496 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005561/0.6558, allocations: 259.7 kB / 0.6422 GB, free: 216 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005317/0.6563, allocations: 52 kB / 0.6422 GB, free: 164 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001598/0.6579, allocations: 63.97 kB / 0.6423 GB, free: 100 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005709/0.6585, allocations: 233.7 kB / 0.6425 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002976/0.6588, allocations: 107.9 kB / 0.6426 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001056/0.6599, allocations: 0.735 MB / 0.6433 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6599, allocations: 0 / 0.6433 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005171/0.6651, allocations: 1.492 MB / 0.6448 GB, free: 13.53 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (anode.temperature,cathode.temperature,solution1.temperature,Pb.logn,HSO4.logn,PbSO4_.logn,H.logn,PbO2.logn,H2O.logn,PbSO4.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 (222): * Single equations (assignments): 217 * 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 {(3,15,66.7%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,27), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01544/0.6805, allocations: 7.031 MB / 0.6516 GB, free: 6.52 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007427/0.688, allocations: 3.513 MB / 0.6551 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/0.688, allocations: 8.438 kB / 0.6551 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003864/0.6919, allocations: 2.024 MB / 0.657 GB, free: 0.8242 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002495/0.6944, allocations: 397.5 kB / 0.6574 GB, free: 444 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03996/0.7344, allocations: 20.23 MB / 0.6772 GB, free: 11.06 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0016/0.736, allocations: 1.599 MB / 0.6787 GB, free: 9.43 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002111/0.7382, allocations: 0.5086 MB / 0.6792 GB, free: 8.918 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001659/0.7398, allocations: 1.185 MB / 0.6804 GB, free: 7.742 MB / 0.5294 GB Notification: Performance of SimCode: time 1.913e-06/0.7399, allocations: 0 / 0.6804 GB, free: 7.742 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3719/1.112, allocations: 73.61 MB / 0.7523 GB, free: 170.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.87/25.98, allocations: 10.81 kB / 0.7523 GB, free: 170.9 MB / 0.5606 GB (rm -f Chemical_Chemical.Examples.LeadAcidBattery.pipe ; mkfifo Chemical_Chemical.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Chemical_Chemical.Examples.LeadAcidBattery.pipe >> ../files/Chemical_Chemical.Examples.LeadAcidBattery.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.LeadAcidBattery_res.csv --start-time 0 --stop-time 47800 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 19.12 Chemical_Chemical_Examples_LeadAcidBattery.fmu > Chemical_Chemical.Examples.LeadAcidBattery.pipe 2>&1)