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: translateModel(Chemical.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.LeadAcidBattery") translateModel(Chemical.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.LeadAcidBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004923/0.004923, allocations: 100.8 kB / 15.87 MB, free: 6.328 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.001186/0.001186, allocations: 195.3 kB / 16.79 MB, free: 6.254 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.354/1.354, allocations: 222.9 MB / 240.5 MB, free: 4.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1963/0.1963, allocations: 15.31 MB / 305.9 MB, free: 15.34 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 63.91 kB / 370.3 MB, free: 4.422 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09442/0.09565, allocations: 53.61 MB / 423.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01229/0.108, allocations: 13.32 MB / 437.2 MB, free: 1.371 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2063/0.3144, allocations: 33.7 MB / 470.9 MB, free: 27.69 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002797/0.3172, allocations: 56.31 kB / 471 MB, free: 27.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002463/0.3197, allocations: 0.6652 MB / 471.6 MB, free: 27.32 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007721/0.3275, allocations: 2.453 MB / 474.1 MB, free: 25.86 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01085/0.3384, allocations: 3.864 MB / 478 MB, free: 23.57 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00412/0.3425, allocations: 3.292 MB / 481.3 MB, free: 22 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002309/0.3449, allocations: 1.789 MB / 483 MB, free: 21.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002964/0.3479, allocations: 1.604 MB / 484.6 MB, free: 20.7 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00381/0.3517, allocations: 1.822 MB / 486.5 MB, free: 19.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001206/0.3529, allocations: 216.8 kB / 486.7 MB, free: 19.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01266/0.3656, allocations: 3.651 MB / 490.3 MB, free: 19.06 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001859/0.3675, allocations: 0.6639 MB / 491 MB, free: 18.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003417/0.371, allocations: 1.487 MB / 492.5 MB, free: 17.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01009/0.3811, allocations: 5.354 MB / 497.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.3811, allocations: 0 / 497.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.3811, allocations: 0 / 497.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001469/0.3813, allocations: 4.938 kB / 497.8 MB, free: 15.61 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: 669 * Number of variables: 669 Notification: Performance of Generate backend data structure: time 0.01116/0.3924, allocations: 3.695 MB / 0.4898 GB, free: 13.56 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/0.3925, allocations: 10.34 kB / 0.4898 GB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003477/0.396, allocations: 0.6208 MB / 0.4904 GB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003575/0.3996, allocations: 1.456 MB / 0.4918 GB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002401/0.3999, allocations: 257.3 kB / 0.4921 GB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007955/0.4007, allocations: 275.6 kB / 0.4923 GB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00647/0.4072, allocations: 3.119 MB / 0.4954 GB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.476e-05/0.4072, allocations: 1.219 kB / 0.4954 GB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003038/0.4076, allocations: 106.3 kB / 0.4955 GB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.343e-05/0.4076, allocations: 64.12 kB / 0.4955 GB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006034/0.4136, allocations: 3.841 MB / 0.4993 GB, free: 8.652 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.01736/0.431, allocations: 9.917 MB / 0.509 GB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005106/0.4362, allocations: 3.458 MB / 0.5124 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002392/0.4386, allocations: 1.336 MB / 0.5137 GB, free: 9.438 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0168/0.4554, allocations: 10.89 MB / 0.5243 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.54e-05/0.4555, allocations: 48.56 kB / 0.5243 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001225/0.4567, allocations: 209.9 kB / 0.5245 GB, free: 13.13 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 4.579e-06/0.4568, allocations: 0 / 0.5245 GB, free: 13.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=251): time 0.04918/0.506, allocations: 12.27 MB / 0.5365 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.5061, allocations: 77.41 kB / 0.5366 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001595/0.5077, allocations: 1.175 MB / 0.5377 GB, free: 15.42 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004632/0.5081, allocations: 65.7 kB / 0.5378 GB, free: 15.35 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007514/0.5089, allocations: 1.153 MB / 0.5389 GB, free: 14.18 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008984/0.5098, allocations: 0.8587 MB / 0.5398 GB, free: 13.31 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008569/0.5107, allocations: 0.565 MB / 0.5403 GB, free: 12.74 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.829e-05/0.5108, allocations: 301.1 kB / 0.5406 GB, free: 12.44 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001863/0.5126, allocations: 1.006 MB / 0.5416 GB, free: 11.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002512/0.5152, allocations: 1.905 MB / 0.5434 GB, free: 9.137 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004981/0.5202, allocations: 3.204 MB / 0.5466 GB, free: 5.512 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-05/0.5202, allocations: 8 kB / 0.5466 GB, free: 5.504 MB / 414.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01099/0.5312, allocations: 4.133 MB / 0.5506 GB, free: 1.305 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.45e-05/0.5313, allocations: 18.19 kB / 0.5506 GB, free: 1.289 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.265e-05/0.5313, allocations: 28 kB / 0.5507 GB, free: 1.262 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006399/0.5377, allocations: 1.35 MB / 0.552 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002574/0.5403, allocations: 0.66 MB / 0.5526 GB, free: 15.24 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01124/0.5516, allocations: 7.687 MB / 0.5601 GB, free: 7.129 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002652/0.5543, allocations: 171.6 kB / 0.5603 GB, free: 6.961 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004048/0.5547, allocations: 171.9 kB / 0.5605 GB, free: 6.793 MB / 430.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.001141/0.5559, allocations: 0.5202 MB / 0.561 GB, free: 6.262 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005049/0.5564, allocations: 193.6 kB / 0.5612 GB, free: 6.07 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0104/0.5668, allocations: 3.891 MB / 0.5649 GB, free: 2.109 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.409e-05/0.5668, allocations: 24 kB / 0.565 GB, free: 2.086 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.5668, allocations: 4 kB / 0.565 GB, free: 2.082 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-05/0.5669, allocations: 11.95 kB / 0.565 GB, free: 2.07 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01402/0.5809, allocations: 6.331 MB / 0.5712 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.718e-05/0.581, allocations: 4 kB / 0.5712 GB, free: 11.58 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002019/0.583, allocations: 439.7 kB / 0.5716 GB, free: 11.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006137/0.5891, allocations: 1.272 MB / 0.5728 GB, free: 9.863 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004938/0.5896, allocations: 95.94 kB / 0.5729 GB, free: 9.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009635/0.5993, allocations: 7.219 MB / 0.58 GB, free: 2.125 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.249e-06/0.5993, allocations: 4.781 kB / 0.58 GB, free: 2.121 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01211/0.6114, allocations: 5.043 MB / 0.5849 GB, free: 12.93 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006139/0.6121, allocations: 250.6 kB / 0.5851 GB, free: 12.66 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003892/0.6125, allocations: 56 kB / 0.5852 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/0.614, allocations: 103.7 kB / 0.5853 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004975/0.6145, allocations: 217.8 kB / 0.5855 GB, free: 12.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002351/0.6147, allocations: 111.9 kB / 0.5856 GB, free: 12.18 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000988/0.6157, allocations: 0.735 MB / 0.5863 GB, free: 11.45 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6157, allocations: 4 kB / 0.5863 GB, free: 11.44 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004659/0.6204, allocations: 1.472 MB / 0.5878 GB, free: 9.969 MB / 462.1 MB 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.00345/0.6239, allocations: 1.497 MB / 0.5892 GB, free: 8.465 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006901/0.6308, allocations: 3.49 MB / 0.5926 GB, free: 4.887 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.864e-06/0.6308, allocations: 0 / 0.5926 GB, free: 4.887 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003677/0.6345, allocations: 2.036 MB / 0.5946 GB, free: 2.789 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002122/0.6367, allocations: 366.6 kB / 0.595 GB, free: 2.43 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1796/0.8163, allocations: 5.984 MB / 0.6008 GB, free: 132.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008951/0.8172, allocations: 1.599 MB / 0.6024 GB, free: 132.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001268/0.8185, allocations: 440.9 kB / 0.6028 GB, free: 132.1 MB / 462.1 MB Notification: Performance of SimCode: time 9.92e-07/0.8185, allocations: 0.6562 kB / 0.6028 GB, free: 132.1 MB / 462.1 MB Notification: Performance of Templates: time 0.08197/0.9005, allocations: 89.3 MB / 0.69 GB, free: 73.46 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.LeadAcidBattery.makefile (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 & ./Chemical_Chemical.Examples.LeadAcidBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.LeadAcidBattery.pipe 2>&1)