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.001043/0.001048, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001364/0.001364, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.184/0.184, allocations: 15.28 MB / 306.4 MB, free: 15.73 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003181/0.0003182, allocations: 8 kB / 371.5 MB, free: 3.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2697, allocations: 54.63 MB / 426.1 MB, free: 39.93 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.008577/0.2783, allocations: 11.92 MB / 438 MB, free: 34.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02468/0.303, allocations: 31.05 MB / 469.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002323/0.3054, allocations: 47.78 kB / 469.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001788/0.3072, allocations: 0.6756 MB / 469.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006188/0.3134, allocations: 2.532 MB / 472.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009852/0.3233, allocations: 3.573 MB / 475.9 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006452/0.3298, allocations: 3.142 MB / 479 MB, free: 6.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003038/0.3328, allocations: 1.636 MB / 480.7 MB, free: 5.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003411/0.3363, allocations: 1.332 MB / 482 MB, free: 5.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003611/0.3399, allocations: 1.656 MB / 483.7 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008223/0.3408, allocations: 171.1 kB / 483.8 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01183/0.3526, allocations: 3.486 MB / 487.3 MB, free: 3.895 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001408/0.354, allocations: 0.5748 MB / 487.9 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001282/0.3553, allocations: 0.5187 MB / 488.4 MB, free: 3.328 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00835/0.3637, allocations: 5.456 MB / 493.9 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3637, allocations: 0 / 493.9 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.3637, allocations: 1.375 kB / 493.9 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.666e-05/0.3638, allocations: 4 kB / 493.9 MB, free: 0.9805 MB / 350.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.00683/0.3707, allocations: 3.089 MB / 497 MB, free: 14.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.3707, allocations: 13.94 kB / 497 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002587/0.3733, allocations: 0.6184 MB / 497.6 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002385/0.3757, allocations: 1.388 MB / 499 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001964/0.3759, allocations: 256.6 kB / 499.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004296/0.3763, allocations: 271.8 kB / 499.5 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005077/0.3814, allocations: 3.097 MB / 0.4908 GB, free: 9.266 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.22e-05/0.3815, allocations: 4 kB / 0.4908 GB, free: 9.262 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002616/0.3818, allocations: 104 kB / 0.4909 GB, free: 9.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-05/0.3818, allocations: 64 kB / 0.491 GB, free: 9.098 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006019/0.3878, allocations: 3.823 MB / 0.4947 GB, free: 5.262 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.0166/0.4045, allocations: 9.873 MB / 0.5044 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004633/0.4091, allocations: 3.454 MB / 0.5077 GB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002122/0.4113, allocations: 1.329 MB / 0.509 GB, free: 6.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01515/0.4264, allocations: 10.65 MB / 0.5194 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.44e-05/0.4265, allocations: 48.56 kB / 0.5195 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009957/0.4275, allocations: 201.9 kB / 0.5197 GB, free: 10.03 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 6.633e-06/0.4275, allocations: 3.984 kB / 0.5197 GB, free: 10.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=251): time 0.04375/0.4713, allocations: 12.4 MB / 0.5318 GB, free: 13.46 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.39e-05/0.4714, allocations: 77.41 kB / 0.5319 GB, free: 13.38 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001584/0.473, allocations: 1.156 MB / 0.533 GB, free: 12.21 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003779/0.4734, allocations: 65.7 kB / 0.533 GB, free: 12.14 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000768/0.4741, allocations: 1.149 MB / 0.5342 GB, free: 10.97 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008523/0.475, allocations: 0.8548 MB / 0.535 GB, free: 10.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001703/0.4752, allocations: 64 kB / 0.5351 GB, free: 10.04 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001969/0.4754, allocations: 424.3 kB / 0.5355 GB, free: 9.621 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001817/0.4772, allocations: 0.9977 MB / 0.5364 GB, free: 8.621 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002293/0.4795, allocations: 1.893 MB / 0.5383 GB, free: 6.336 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002273/0.4818, allocations: 1.276 MB / 0.5395 GB, free: 5.039 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.319e-05/0.4818, allocations: 8 kB / 0.5395 GB, free: 5.031 MB / 414.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.009947/0.4918, allocations: 4.11 MB / 0.5436 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.754e-05/0.4918, allocations: 22.22 kB / 0.5436 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.809e-05/0.4919, allocations: 28 kB / 0.5436 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005956/0.4979, allocations: 1.369 MB / 0.5449 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002382/0.5003, allocations: 0.663 MB / 0.5456 GB, free: 14.76 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01059/0.5109, allocations: 7.698 MB / 0.5531 GB, free: 6.637 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002363/0.5132, allocations: 171.7 kB / 0.5533 GB, free: 6.469 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003199/0.5136, allocations: 171.9 kB / 0.5534 GB, free: 6.301 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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,77.8%) 15,(1,100.0%) 3} * Non-linear torn systems: 2 {2 25,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.00107/0.5147, allocations: 0.5125 MB / 0.5539 GB, free: 5.777 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003371/0.515, allocations: 201.5 kB / 0.5541 GB, free: 5.578 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009815/0.5248, allocations: 3.894 MB / 0.5579 GB, free: 1.613 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.279e-05/0.5249, allocations: 28 kB / 0.558 GB, free: 1.586 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.5249, allocations: 0 / 0.558 GB, free: 1.586 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.224e-05/0.5249, allocations: 19.94 kB / 0.558 GB, free: 1.566 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01283/0.5378, allocations: 6.308 MB / 0.5641 GB, free: 11.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/0.5378, allocations: 0 / 0.5641 GB, free: 11.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001806/0.5396, allocations: 443.7 kB / 0.5646 GB, free: 10.67 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00557/0.5452, allocations: 1.28 MB / 0.5658 GB, free: 9.371 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003758/0.5456, allocations: 99.92 kB / 0.5659 GB, free: 9.273 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00941/0.555, allocations: 7.242 MB / 0.573 GB, free: 1.609 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/0.5551, allocations: 4 kB / 0.573 GB, free: 1.605 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01107/0.5661, allocations: 5.027 MB / 0.5779 GB, free: 12.42 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006182/0.5668, allocations: 250.6 kB / 0.5781 GB, free: 12.16 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003726/0.5672, allocations: 52 kB / 0.5782 GB, free: 12.11 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00135/0.5685, allocations: 107.7 kB / 0.5783 GB, free: 12 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004267/0.569, allocations: 225.7 kB / 0.5785 GB, free: 11.78 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002403/0.5692, allocations: 111.9 kB / 0.5786 GB, free: 11.67 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001025/0.5702, allocations: 0.7155 MB / 0.5793 GB, free: 10.95 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5703, allocations: 0 / 0.5793 GB, free: 10.95 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004648/0.5749, allocations: 1.48 MB / 0.5807 GB, free: 9.473 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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,66.7%) 15,(1,100.0%) 3} * Non-linear torn systems: 2 {2 27,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003411/0.5783, allocations: 1.5 MB / 0.5822 GB, free: 7.965 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006665/0.585, allocations: 3.479 MB / 0.5856 GB, free: 4.398 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.471e-06/0.5851, allocations: 0 / 0.5856 GB, free: 4.398 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003436/0.5885, allocations: 2.017 MB / 0.5876 GB, free: 2.32 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001936/0.5904, allocations: 380.7 kB / 0.5879 GB, free: 1.945 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1837/0.7741, allocations: 5.81 MB / 0.5936 GB, free: 134.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008943/0.7751, allocations: 1.599 MB / 0.5952 GB, free: 134 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00235/0.7774, allocations: 0.5061 MB / 0.5957 GB, free: 134 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007306/0.7782, allocations: 352.3 kB / 0.596 GB, free: 134 MB / 462.1 MB Notification: Performance of SimCode: time 8.22e-07/0.7782, allocations: 0 / 0.596 GB, free: 134 MB / 462.1 MB Notification: Performance of Templates: time 0.06466/0.8428, allocations: 50.66 MB / 0.6455 GB, free: 111.8 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)