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.007121/0.007121, allocations: 100.8 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.001682/0.001682, allocations: 192.5 kB / 16.67 MB, free: 5.969 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.37/1.37, 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.08305/0.08305, allocations: 15.31 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001801, allocations: 64.12 kB / 424.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09155/0.09336, allocations: 53.62 MB / 478.3 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01282/0.1062, allocations: 11.64 MB / 489.9 MB, free: 10.57 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2282/0.3345, allocations: 33.73 MB / 0.5114 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001754/0.3362, allocations: 28.22 kB / 0.5114 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002001/0.3383, allocations: 0.7503 MB / 0.5122 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008463/0.3468, allocations: 2.757 MB / 0.5149 GB, free: 2.629 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01209/0.3589, allocations: 4.421 MB / 0.5192 GB, free: 1.512 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004893/0.3638, allocations: 3.419 MB / 0.5225 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00253/0.3664, allocations: 2.077 MB / 0.5245 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002364/0.3688, allocations: 1.652 MB / 0.5262 GB, free: 396 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003834/0.3726, allocations: 1.943 MB / 0.5281 GB, free: 0 / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007099/0.3734, allocations: 326.5 kB / 0.5284 GB, free: 15.99 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01254/0.3859, allocations: 3.726 MB / 0.532 GB, free: 15.1 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001171/0.3871, allocations: 0.7545 MB / 0.5327 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002528/0.3897, allocations: 1.587 MB / 0.5343 GB, free: 13.72 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01805/0.4077, allocations: 7.276 MB / 0.5414 GB, free: 9.938 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.872e-06/0.4078, allocations: 3.938 kB / 0.5414 GB, free: 9.934 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.4078, allocations: 0 / 0.5414 GB, free: 9.934 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.947e-05/0.4079, allocations: 0 / 0.5414 GB, free: 9.934 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.007801/0.4157, allocations: 3.793 MB / 0.5451 GB, free: 7.383 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.4157, allocations: 9.25 kB / 0.5451 GB, free: 7.383 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004419/0.4162, allocations: 360.5 kB / 0.5455 GB, free: 7.039 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002641/0.4188, allocations: 0.6347 MB / 0.5461 GB, free: 6.402 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002936/0.4218, allocations: 1.502 MB / 0.5475 GB, free: 4.875 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002397/0.422, allocations: 257.4 kB / 0.5478 GB, free: 4.609 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004929/0.4225, allocations: 279.8 kB / 0.5481 GB, free: 4.336 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005537/0.4281, allocations: 3.117 MB / 0.5511 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.747e-05/0.4281, allocations: 0 / 0.5511 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002665/0.4284, allocations: 108 kB / 0.5512 GB, free: 1.043 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.607e-05/0.4285, allocations: 64 kB / 0.5513 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006354/0.4348, allocations: 3.845 MB / 0.555 GB, free: 13.12 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.01681/0.4517, allocations: 9.895 MB / 0.5647 GB, free: 2.988 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005259/0.457, allocations: 3.456 MB / 0.5681 GB, free: 15.4 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00218/0.4592, allocations: 1.345 MB / 0.5694 GB, free: 14.05 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01637/0.4756, allocations: 10.86 MB / 0.58 GB, free: 2.121 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.572e-05/0.4756, allocations: 48.56 kB / 0.58 GB, free: 2.066 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008352/0.4765, allocations: 206.5 kB / 0.5802 GB, free: 1.863 MB / 430.1 MB Notification: Performance of pre-optimization done (n=177): time 4.148e-06/0.4765, allocations: 0 / 0.5802 GB, free: 1.863 MB / 430.1 MB Notification: Performance of matching and sorting (n=251): time 0.04605/0.5225, allocations: 12.33 MB / 0.5923 GB, free: 5.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.361e-05/0.5226, allocations: 77.41 kB / 0.5923 GB, free: 5.324 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001665/0.5243, allocations: 1.172 MB / 0.5935 GB, free: 4.141 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003323/0.5247, allocations: 65.7 kB / 0.5935 GB, free: 4.07 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008921/0.5256, allocations: 1.188 MB / 0.5947 GB, free: 2.883 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009243/0.5265, allocations: 0.8939 MB / 0.5956 GB, free: 2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008979/0.5274, allocations: 0.5691 MB / 0.5961 GB, free: 1.422 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.5276, allocations: 309.1 kB / 0.5964 GB, free: 1.117 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00189/0.5295, allocations: 1.009 MB / 0.5974 GB, free: 108 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00284/0.5323, allocations: 1.898 MB / 0.5993 GB, free: 13.82 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005057/0.5374, allocations: 3.217 MB / 0.6024 GB, free: 10.18 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.577e-05/0.5374, allocations: 8 kB / 0.6024 GB, free: 10.17 MB / 462.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01085/0.5483, allocations: 4.133 MB / 0.6064 GB, free: 5.977 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.739e-05/0.5484, allocations: 20.38 kB / 0.6065 GB, free: 5.957 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.843e-05/0.5484, allocations: 35.94 kB / 0.6065 GB, free: 5.922 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006282/0.5547, allocations: 1.35 MB / 0.6078 GB, free: 4.559 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002579/0.5573, allocations: 0.6474 MB / 0.6085 GB, free: 3.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01214/0.5695, allocations: 8.293 MB / 0.6166 GB, free: 11.18 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002172/0.5717, allocations: 99.98 kB / 0.6166 GB, free: 11.08 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003261/0.572, allocations: 171.9 kB / 0.6168 GB, free: 10.91 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.001058/0.5731, allocations: 0.5086 MB / 0.6173 GB, free: 10.39 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004462/0.5735, allocations: 202.7 kB / 0.6175 GB, free: 10.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01015/0.5837, allocations: 3.895 MB / 0.6213 GB, free: 6.223 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.959e-05/0.5837, allocations: 24 kB / 0.6213 GB, free: 6.199 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.5838, allocations: 7.938 kB / 0.6213 GB, free: 6.191 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-05/0.5838, allocations: 15.95 kB / 0.6214 GB, free: 6.176 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01399/0.5978, allocations: 6.324 MB / 0.6275 GB, free: 15.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.505e-05/0.5978, allocations: 4 kB / 0.6275 GB, free: 15.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001963/0.5998, allocations: 439.4 kB / 0.628 GB, free: 15.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005929/0.6057, allocations: 1.267 MB / 0.6292 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004279/0.6062, allocations: 99.92 kB / 0.6293 GB, free: 13.94 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01061/0.6168, allocations: 7.796 MB / 0.6369 GB, free: 5.711 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.6169, allocations: 4 kB / 0.6369 GB, free: 5.707 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01188/0.6288, allocations: 5.059 MB / 0.6418 GB, free: 0.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005439/0.6293, allocations: 259.7 kB / 0.6421 GB, free: 232 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003373/0.6297, allocations: 56 kB / 0.6421 GB, free: 176 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001239/0.6309, allocations: 59.97 kB / 0.6422 GB, free: 116 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005232/0.6315, allocations: 225.8 kB / 0.6424 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002383/0.6317, allocations: 115.9 kB / 0.6425 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001023/0.6327, allocations: 0.7272 MB / 0.6432 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.164e-06/0.6327, allocations: 96 / 0.6432 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004058/0.6368, allocations: 1.496 MB / 0.6447 GB, free: 13.55 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.01524/0.6521, allocations: 7.026 MB / 0.6516 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007459/0.6596, allocations: 3.516 MB / 0.655 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.271e-06/0.6596, allocations: 0 / 0.655 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003902/0.6635, allocations: 2.029 MB / 0.657 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002187/0.6657, allocations: 395.6 kB / 0.6573 GB, free: 476 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04533/0.7111, allocations: 20.25 MB / 0.6771 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001346/0.7125, allocations: 1.591 MB / 0.6787 GB, free: 9.457 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001895/0.7144, allocations: 0.5008 MB / 0.6792 GB, free: 8.953 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001666/0.716, allocations: 1.192 MB / 0.6803 GB, free: 7.77 MB / 0.5294 GB Notification: Performance of SimCode: time 7.81e-07/0.7161, allocations: 4 kB / 0.6803 GB, free: 7.766 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3321/1.048, allocations: 73.6 MB / 0.7522 GB, free: 196.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.88/25.93, allocations: 8.844 kB / 0.7522 GB, free: 196.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_LeadAcidBattery_fmu --startTime=0 --stopTime=47800 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_LeadAcidBattery.fmu > Chemical_Chemical.Examples.LeadAcidBattery.pipe 2>&1)