Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Chemical.Examples.LeadAcidBattery.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-beta1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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) 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) Running command: translateModel(Physiolibrary.Chemical.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.LeadAcidBattery") translateModel(Physiolibrary.Chemical.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.LeadAcidBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 183.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.282/1.282, allocations: 222.9 MB / 239.6 MB, free: 11.02 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 112.9 kB / 289.9 MB, free: 10.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3497/0.3497, allocations: 36.67 MB / 376.7 MB, free: 41.4 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 71.88 kB / 446.4 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1121, allocations: 58.91 MB / 0.4935 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Chemical.Examples.LeadAcidBattery): time 0.197/0.3091, allocations: 13.32 MB / 0.5065 GB, free: 34.5 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02935/0.3385, allocations: 33.49 MB / 0.5392 GB, free: 10.33 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002674/0.3412, allocations: 53.12 kB / 0.5392 GB, free: 10.31 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002025/0.3433, allocations: 0.6701 MB / 0.5399 GB, free: 9.957 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007032/0.3504, allocations: 2.381 MB / 0.5422 GB, free: 8.535 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0117/0.3621, allocations: 3.877 MB / 0.546 GB, free: 6.246 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004323/0.3665, allocations: 3.322 MB / 0.5492 GB, free: 4.676 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002117/0.3686, allocations: 1.776 MB / 0.551 GB, free: 3.914 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002046/0.3707, allocations: 1.618 MB / 0.5526 GB, free: 3.383 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002547/0.3732, allocations: 1.823 MB / 0.5543 GB, free: 2.66 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005286/0.3738, allocations: 215.7 kB / 0.5545 GB, free: 2.66 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01134/0.3851, allocations: 3.549 MB / 0.558 GB, free: 1.766 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001278/0.3864, allocations: 0.6602 MB / 0.5587 GB, free: 1.395 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002514/0.389, allocations: 1.483 MB / 0.5601 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01745/0.4064, allocations: 6.948 MB / 0.5669 GB, free: 13.29 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.4065, allocations: 0 / 0.5669 GB, free: 13.29 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.4065, allocations: 4 kB / 0.5669 GB, free: 13.28 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001736/0.4067, allocations: 1.062 kB / 0.5669 GB, free: 13.28 MB / 394.7 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.01262/0.4193, allocations: 3.675 MB / 0.5705 GB, free: 10.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.4194, allocations: 13.5 kB / 0.5705 GB, free: 10.84 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003041/0.4224, allocations: 0.6114 MB / 0.5711 GB, free: 10.56 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003221/0.4257, allocations: 1.471 MB / 0.5725 GB, free: 9.461 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002372/0.4259, allocations: 269 kB / 0.5728 GB, free: 9.184 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005273/0.4265, allocations: 267.8 kB / 0.573 GB, free: 8.922 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005354/0.4318, allocations: 3.124 MB / 0.5761 GB, free: 5.727 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.006e-05/0.4319, allocations: 4 kB / 0.5761 GB, free: 5.723 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002633/0.4322, allocations: 104 kB / 0.5762 GB, free: 5.621 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-05/0.4322, allocations: 64 kB / 0.5763 GB, free: 5.559 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00623/0.4385, allocations: 3.85 MB / 0.58 GB, free: 1.695 MB / 394.7 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.01828/0.4568, allocations: 9.945 MB / 0.5897 GB, free: 7.371 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004719/0.4615, allocations: 3.474 MB / 0.5931 GB, free: 3.77 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002023/0.4636, allocations: 1.349 MB / 0.5944 GB, free: 2.414 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01679/0.4804, allocations: 10.9 MB / 0.6051 GB, free: 6.355 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.663e-05/0.4805, allocations: 52.56 kB / 0.6051 GB, free: 6.293 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001349/0.4818, allocations: 217.8 kB / 0.6053 GB, free: 6.078 MB / 426.7 MB Notification: Performance of pre-optimization done (n=177): time 9.518e-06/0.4818, allocations: 4 kB / 0.6053 GB, free: 6.074 MB / 426.7 MB Notification: Performance of matching and sorting (n=251): time 0.04925/0.5311, allocations: 12.38 MB / 0.6174 GB, free: 9.543 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.617e-05/0.5313, allocations: 77.41 kB / 0.6175 GB, free: 9.453 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001698/0.533, allocations: 1.164 MB / 0.6186 GB, free: 8.277 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005213/0.5335, allocations: 69.7 kB / 0.6187 GB, free: 8.203 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008559/0.5344, allocations: 1.156 MB / 0.6198 GB, free: 7.031 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001061/0.5354, allocations: 0.8549 MB / 0.6207 GB, free: 6.164 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008601/0.5363, allocations: 0.5611 MB / 0.6212 GB, free: 5.594 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.5364, allocations: 301.1 kB / 0.6215 GB, free: 5.297 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001955/0.5384, allocations: 1.024 MB / 0.6225 GB, free: 4.273 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002966/0.5414, allocations: 1.917 MB / 0.6244 GB, free: 1.965 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005381/0.5468, allocations: 3.204 MB / 0.6275 GB, free: 14.34 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.248e-05/0.5468, allocations: 12 kB / 0.6275 GB, free: 14.33 MB / 458.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01076/0.5576, allocations: 4.18 MB / 0.6316 GB, free: 10.08 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.469e-05/0.5577, allocations: 16 kB / 0.6316 GB, free: 10.06 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.565e-05/0.5577, allocations: 28 kB / 0.6316 GB, free: 10.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006387/0.5641, allocations: 1.403 MB / 0.633 GB, free: 8.621 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00258/0.5667, allocations: 0.6514 MB / 0.6337 GB, free: 7.969 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01098/0.5778, allocations: 7.686 MB / 0.6412 GB, free: 15.84 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002798/0.5806, allocations: 173.9 kB / 0.6413 GB, free: 15.68 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005345/0.5811, allocations: 171.9 kB / 0.6415 GB, free: 15.51 MB / 474.7 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.001282/0.5824, allocations: 0.5178 MB / 0.642 GB, free: 14.98 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005727/0.583, allocations: 201.5 kB / 0.6422 GB, free: 14.78 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01068/0.5937, allocations: 3.949 MB / 0.646 GB, free: 10.78 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.203e-05/0.5938, allocations: 28 kB / 0.6461 GB, free: 10.75 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/0.5938, allocations: 4 kB / 0.6461 GB, free: 10.75 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.483e-05/0.5939, allocations: 15.94 kB / 0.6461 GB, free: 10.73 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02109/0.615, allocations: 6.386 MB / 0.6523 GB, free: 4.195 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.909e-05/0.6151, allocations: 8.031 kB / 0.6523 GB, free: 4.188 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003257/0.6183, allocations: 435.4 kB / 0.6527 GB, free: 3.762 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008932/0.6273, allocations: 1.318 MB / 0.654 GB, free: 2.43 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006634/0.628, allocations: 99.94 kB / 0.6541 GB, free: 2.332 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01391/0.6419, allocations: 7.214 MB / 0.6612 GB, free: 10.69 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.114e-06/0.642, allocations: 8 kB / 0.6612 GB, free: 10.68 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06638/0.7084, allocations: 19.76 MB / 0.6805 GB, free: 6.316 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008233/0.7092, allocations: 246.6 kB / 0.6807 GB, free: 6.055 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000717/0.71, allocations: 56 kB / 0.6808 GB, free: 6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002305/0.7123, allocations: 99.78 kB / 0.6809 GB, free: 5.902 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008018/0.7131, allocations: 225.7 kB / 0.6811 GB, free: 5.68 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003912/0.7135, allocations: 111.9 kB / 0.6812 GB, free: 5.57 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001491/0.715, allocations: 0.7272 MB / 0.6819 GB, free: 4.844 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.315e-06/0.7151, allocations: 96 / 0.6819 GB, free: 4.844 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008511/0.7236, allocations: 1.722 MB / 0.6836 GB, free: 3.121 MB / 0.4948 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.005108/0.7287, allocations: 1.489 MB / 0.685 GB, free: 1.621 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.2898/1.019, allocations: 3.515 MB / 0.6885 GB, free: 151.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.528e-06/1.019, allocations: 3.125 kB / 0.6885 GB, free: 151.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004165/1.023, allocations: 2.045 MB / 0.6905 GB, free: 151.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002555/1.025, allocations: 370.7 kB / 0.6908 GB, free: 151.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/1.037, allocations: 7.658 MB / 0.6983 GB, free: 148 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001636/1.039, allocations: 1.684 MB / 0.6999 GB, free: 147.2 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003025/1.042, allocations: 0.5352 MB / 0.7005 GB, free: 147.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008486/1.043, allocations: 365.5 kB / 0.7008 GB, free: 147.2 MB / 0.4948 GB Notification: Performance of SimCode: time 6.52e-07/1.043, allocations: 0 / 0.7008 GB, free: 147.2 MB / 0.4948 GB Notification: Performance of Templates: time 0.08459/1.128, allocations: 59.33 MB / 0.7587 GB, free: 115.7 MB / 0.4948 GB make -j1 -f Physiolibrary_Physiolibrary.Chemical.Examples.LeadAcidBattery.makefile (rm -f Physiolibrary_Physiolibrary.Chemical.Examples.LeadAcidBattery.pipe ; mkfifo Physiolibrary_Physiolibrary.Chemical.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Chemical.Examples.LeadAcidBattery.pipe >> ../files/Physiolibrary_Physiolibrary.Chemical.Examples.LeadAcidBattery.sim & ./Physiolibrary_Physiolibrary.Chemical.Examples.LeadAcidBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Chemical.Examples.LeadAcidBattery.pipe 2>&1)