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.001076/0.001075, allocations: 108.5 kB / 16.41 MB, free: 6.406 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.001035/0.001035, allocations: 192.3 kB / 17.35 MB, free: 5.691 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.286/1.286, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07468/0.07468, allocations: 15.31 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 64.11 kB / 425.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08403/0.08527, allocations: 53.61 MB / 479.5 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01103/0.09634, allocations: 11.64 MB / 491.1 MB, free: 10.1 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2134/0.3098, allocations: 33.73 MB / 0.5125 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001332/0.3111, allocations: 30.09 kB / 0.5126 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00164/0.3128, allocations: 0.7463 MB / 0.5133 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006324/0.3192, allocations: 2.759 MB / 0.516 GB, free: 3.199 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0102/0.3294, allocations: 4.431 MB / 0.5203 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004384/0.3338, allocations: 3.41 MB / 0.5237 GB, free: 1.309 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002395/0.3362, allocations: 2.07 MB / 0.5257 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002003/0.3382, allocations: 1.659 MB / 0.5273 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002222/0.3404, allocations: 1.861 MB / 0.5291 GB, free: 0 / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005692/0.341, allocations: 322 kB / 0.5294 GB, free: 0 / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01145/0.3525, allocations: 3.732 MB / 0.5331 GB, free: 15.1 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008235/0.3533, allocations: 0.7503 MB / 0.5338 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00181/0.3552, allocations: 1.585 MB / 0.5353 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01276/0.3679, allocations: 7.247 MB / 0.5424 GB, free: 9.906 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.368, allocations: 3.984 kB / 0.5424 GB, free: 9.902 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.368, allocations: 0 / 0.5424 GB, free: 9.902 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.931e-05/0.368, allocations: 0 / 0.5424 GB, free: 9.902 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.006225/0.3743, allocations: 3.705 MB / 0.546 GB, free: 7.324 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.3743, allocations: 8.031 kB / 0.5461 GB, free: 7.316 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002558/0.3769, allocations: 0.6176 MB / 0.5467 GB, free: 6.695 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00231/0.3792, allocations: 1.489 MB / 0.5481 GB, free: 5.176 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001928/0.3794, allocations: 257.6 kB / 0.5484 GB, free: 4.91 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004059/0.3798, allocations: 268.8 kB / 0.5486 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004927/0.3847, allocations: 3.12 MB / 0.5517 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.038e-05/0.3848, allocations: 4 kB / 0.5517 GB, free: 1.453 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000266/0.3851, allocations: 104 kB / 0.5518 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-05/0.3851, allocations: 64 kB / 0.5518 GB, free: 1.289 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005713/0.3908, allocations: 3.849 MB / 0.5556 GB, free: 13.43 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.01479/0.4056, allocations: 9.875 MB / 0.5652 GB, free: 3.305 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004773/0.4104, allocations: 3.464 MB / 0.5686 GB, free: 15.71 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001983/0.4124, allocations: 1.337 MB / 0.5699 GB, free: 14.37 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01622/0.4287, allocations: 10.85 MB / 0.5805 GB, free: 2.453 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.987e-05/0.4288, allocations: 53.91 kB / 0.5806 GB, free: 2.395 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001015/0.4298, allocations: 209.2 kB / 0.5808 GB, free: 2.191 MB / 430.1 MB Notification: Performance of pre-optimization done (n=177): time 6.763e-06/0.4298, allocations: 4 kB / 0.5808 GB, free: 2.188 MB / 430.1 MB Notification: Performance of matching and sorting (n=251): time 0.047/0.4768, allocations: 12.27 MB / 0.5927 GB, free: 5.789 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.12e-05/0.4769, allocations: 77.41 kB / 0.5928 GB, free: 5.703 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001629/0.4785, allocations: 1.175 MB / 0.594 GB, free: 4.516 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003339/0.4789, allocations: 65.7 kB / 0.594 GB, free: 4.445 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007609/0.4797, allocations: 1.146 MB / 0.5951 GB, free: 3.293 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008752/0.4805, allocations: 0.8544 MB / 0.596 GB, free: 2.445 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009685/0.4815, allocations: 0.5727 MB / 0.5965 GB, free: 1.863 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.4816, allocations: 305.1 kB / 0.5968 GB, free: 1.562 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001884/0.4835, allocations: 1.009 MB / 0.5978 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002489/0.486, allocations: 1.904 MB / 0.5997 GB, free: 14.26 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004783/0.4908, allocations: 3.2 MB / 0.6028 GB, free: 10.64 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.937e-05/0.4909, allocations: 8 kB / 0.6028 GB, free: 10.63 MB / 462.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01064/0.5015, allocations: 4.131 MB / 0.6068 GB, free: 6.434 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.972e-05/0.5016, allocations: 16 kB / 0.6069 GB, free: 6.418 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-05/0.5016, allocations: 28 kB / 0.6069 GB, free: 6.391 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00615/0.5078, allocations: 1.363 MB / 0.6082 GB, free: 5.016 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002497/0.5103, allocations: 0.6514 MB / 0.6089 GB, free: 4.363 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0113/0.5216, allocations: 8.278 MB / 0.6169 GB, free: 11.64 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002232/0.5239, allocations: 104 kB / 0.617 GB, free: 11.54 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004253/0.5243, allocations: 175.9 kB / 0.6172 GB, free: 11.37 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.5255, allocations: 0.5087 MB / 0.6177 GB, free: 10.85 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005056/0.526, allocations: 193.6 kB / 0.6179 GB, free: 10.66 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009828/0.5358, allocations: 3.892 MB / 0.6217 GB, free: 6.691 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.739e-05/0.5359, allocations: 15.94 kB / 0.6217 GB, free: 6.676 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.5359, allocations: 0 / 0.6217 GB, free: 6.676 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003747/0.5363, allocations: 246.6 kB / 0.6219 GB, free: 6.414 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003503/0.5366, allocations: 48.09 kB / 0.622 GB, free: 6.367 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001319/0.538, allocations: 55.98 kB / 0.622 GB, free: 6.312 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004438/0.5384, allocations: 217.7 kB / 0.6222 GB, free: 6.098 MB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008686/0.5471, allocations: 3.41 MB / 0.6256 GB, free: 2.676 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.006122/0.5532, allocations: 3.978 MB / 0.6295 GB, free: 14.62 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001682/0.5549, allocations: 1.141 MB / 0.6306 GB, free: 13.46 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0009348/0.5559, allocations: 0.7311 MB / 0.6313 GB, free: 12.73 MB / 494.1 MB Notification: Performance of Backend: time 5.81e-07/0.5559, allocations: 0 / 0.6313 GB, free: 12.73 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00987/0.5658, allocations: 4.466 MB / 0.6357 GB, free: 8.445 MB / 494.1 MB Notification: Performance of SimCode: time 0.007458/0.5733, allocations: 4.936 MB / 0.6405 GB, free: 3.473 MB / 494.1 MB Notification: Performance of Templates: time 0.0841/0.6574, allocations: 61.24 MB / 0.7003 GB, free: 6.367 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)