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.00156/0.00156, allocations: 116.2 kB / 16.42 MB, free: 6.492 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.001756/0.001756, allocations: 183.9 kB / 17.35 MB, free: 5.762 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.352/1.352, allocations: 222.9 MB / 241.1 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.08076/0.08076, allocations: 15.31 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 59.91 kB / 425.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08272/0.08392, allocations: 53.61 MB / 479.5 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01156/0.09551, allocations: 11.65 MB / 491.1 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2298/0.3254, allocations: 33.72 MB / 0.5125 GB, free: 3.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001572/0.327, allocations: 28.34 kB / 0.5126 GB, free: 3.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001853/0.3289, allocations: 0.751 MB / 0.5133 GB, free: 3.246 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007134/0.336, allocations: 2.779 MB / 0.516 GB, free: 3.188 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01068/0.3467, allocations: 4.458 MB / 0.5204 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004701/0.3515, allocations: 3.419 MB / 0.5237 GB, free: 1.316 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002404/0.3539, allocations: 2.075 MB / 0.5257 GB, free: 1.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00204/0.3559, allocations: 1.659 MB / 0.5274 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00248/0.3584, allocations: 1.878 MB / 0.5292 GB, free: 0 / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005128/0.359, allocations: 322.1 kB / 0.5295 GB, free: 0 / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01269/0.3717, allocations: 3.725 MB / 0.5331 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001191/0.3729, allocations: 0.7526 MB / 0.5339 GB, free: 14.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002654/0.3755, allocations: 1.58 MB / 0.5354 GB, free: 13.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01698/0.3925, allocations: 7.259 MB / 0.5425 GB, free: 9.898 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.3926, allocations: 0 / 0.5425 GB, free: 9.898 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3926, allocations: 0 / 0.5425 GB, free: 9.898 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.671e-05/0.3927, allocations: 0 / 0.5425 GB, free: 9.898 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.007624/0.4003, allocations: 3.704 MB / 0.5461 GB, free: 7.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.4004, allocations: 8.031 kB / 0.5461 GB, free: 7.262 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002666/0.403, allocations: 0.6215 MB / 0.5467 GB, free: 6.637 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002629/0.4057, allocations: 1.489 MB / 0.5482 GB, free: 5.117 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002063/0.4059, allocations: 249.6 kB / 0.5484 GB, free: 4.859 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000412/0.4063, allocations: 271.9 kB / 0.5487 GB, free: 4.594 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004929/0.4112, allocations: 3.12 MB / 0.5517 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.964e-05/0.4113, allocations: 4.938 kB / 0.5517 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002633/0.4116, allocations: 108 kB / 0.5518 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-05/0.4116, allocations: 64 kB / 0.5519 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005894/0.4175, allocations: 3.846 MB / 0.5557 GB, free: 13.37 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.01644/0.434, allocations: 9.864 MB / 0.5653 GB, free: 3.258 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004793/0.4388, allocations: 3.467 MB / 0.5687 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001917/0.4407, allocations: 1.337 MB / 0.57 GB, free: 14.32 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01647/0.4572, allocations: 10.85 MB / 0.5806 GB, free: 2.398 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.233e-05/0.4573, allocations: 52.5 kB / 0.5806 GB, free: 2.34 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008905/0.4582, allocations: 205.9 kB / 0.5808 GB, free: 2.137 MB / 430.1 MB Notification: Performance of pre-optimization done (n=177): time 5.941e-06/0.4582, allocations: 4 kB / 0.5808 GB, free: 2.133 MB / 430.1 MB Notification: Performance of matching and sorting (n=251): time 0.04666/0.5049, allocations: 12.27 MB / 0.5928 GB, free: 5.734 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.825e-05/0.5049, allocations: 77.41 kB / 0.5929 GB, free: 5.648 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001703/0.5067, allocations: 1.175 MB / 0.594 GB, free: 4.461 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002544/0.5069, allocations: 69.7 kB / 0.5941 GB, free: 4.387 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007863/0.5077, allocations: 1.142 MB / 0.5952 GB, free: 3.238 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007666/0.5085, allocations: 0.8584 MB / 0.5961 GB, free: 2.387 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008928/0.5094, allocations: 0.5649 MB / 0.5966 GB, free: 1.812 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.765e-05/0.5095, allocations: 309.1 kB / 0.5969 GB, free: 1.508 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001889/0.5114, allocations: 1.006 MB / 0.5979 GB, free: 0.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002528/0.5139, allocations: 1.909 MB / 0.5998 GB, free: 14.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004741/0.5187, allocations: 3.2 MB / 0.6029 GB, free: 10.58 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.025e-05/0.5187, allocations: 8 kB / 0.6029 GB, free: 10.57 MB / 462.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01043/0.5292, allocations: 4.133 MB / 0.6069 GB, free: 6.379 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.625e-05/0.5292, allocations: 16 kB / 0.6069 GB, free: 6.363 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.651e-05/0.5293, allocations: 28 kB / 0.607 GB, free: 6.336 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006138/0.5354, allocations: 1.36 MB / 0.6083 GB, free: 4.965 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002515/0.5379, allocations: 0.6474 MB / 0.6089 GB, free: 4.316 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01159/0.5496, allocations: 8.283 MB / 0.617 GB, free: 11.59 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002197/0.5518, allocations: 95.98 kB / 0.6171 GB, free: 11.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000425/0.5522, allocations: 171.9 kB / 0.6173 GB, free: 11.33 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.00115/0.5534, allocations: 0.5047 MB / 0.6178 GB, free: 10.81 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005359/0.5539, allocations: 205.5 kB / 0.618 GB, free: 10.61 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01051/0.5644, allocations: 3.889 MB / 0.6218 GB, free: 6.645 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.804e-05/0.5645, allocations: 15.95 kB / 0.6218 GB, free: 6.629 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.5645, allocations: 0 / 0.6218 GB, free: 6.629 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006118/0.5651, allocations: 250.6 kB / 0.622 GB, free: 6.363 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004898/0.5656, allocations: 48 kB / 0.6221 GB, free: 6.316 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/0.5671, allocations: 51.98 kB / 0.6221 GB, free: 6.266 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005045/0.5677, allocations: 217.8 kB / 0.6223 GB, free: 6.051 MB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.009234/0.5769, allocations: 3.418 MB / 0.6257 GB, free: 2.625 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.006367/0.5833, allocations: 3.971 MB / 0.6295 GB, free: 14.58 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001745/0.585, allocations: 1.145 MB / 0.6306 GB, free: 13.42 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001001/0.5861, allocations: 0.7311 MB / 0.6314 GB, free: 12.69 MB / 494.1 MB Notification: Performance of Backend: time 3.81e-07/0.5861, allocations: 0 / 0.6314 GB, free: 12.69 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01051/0.5966, allocations: 4.468 MB / 0.6357 GB, free: 8.395 MB / 494.1 MB Notification: Performance of SimCode: time 0.007511/0.6041, allocations: 4.942 MB / 0.6405 GB, free: 3.418 MB / 494.1 MB Notification: Performance of Templates: time 0.08623/0.6904, allocations: 61.23 MB / 0.7003 GB, free: 6.324 MB / 0.545 GB 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)