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.00114/0.00114, allocations: 103.3 kB / 16.35 MB, free: 5.875 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.00109/0.00109, allocations: 191 kB / 17.29 MB, free: 5.516 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.436/1.436, allocations: 222.9 MB / 241 MB, free: 14.97 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.0986/0.0986, allocations: 15.31 MB / 306.5 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 60.34 kB / 371.7 MB, free: 50.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1185, allocations: 53.61 MB / 425.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.009282/0.1279, allocations: 11.64 MB / 437 MB, free: 1.598 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03583/0.1637, allocations: 33.75 MB / 470.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001985/0.1658, allocations: 31.88 kB / 470.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001958/0.1677, allocations: 0.7444 MB / 471.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00879/0.1766, allocations: 2.766 MB / 474.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01466/0.1913, allocations: 4.415 MB / 478.7 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007294/0.1986, allocations: 3.426 MB / 482.1 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0037/0.2024, allocations: 2.074 MB / 484.2 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002991/0.2054, allocations: 1.648 MB / 485.8 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004108/0.2095, allocations: 1.861 MB / 487.7 MB, free: 14.63 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008582/0.2104, allocations: 324 kB / 488 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01483/0.2253, allocations: 3.725 MB / 491.7 MB, free: 10.59 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001278/0.2266, allocations: 0.7517 MB / 492.5 MB, free: 9.832 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002324/0.2289, allocations: 1.587 MB / 494.1 MB, free: 8.238 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02139/0.2503, allocations: 7.225 MB / 0.4896 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.712e-06/0.2504, allocations: 0 / 0.4896 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.2504, allocations: 0 / 0.4896 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.906e-05/0.2505, allocations: 4 kB / 0.4896 GB, free: 0.9844 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.009604/0.2601, allocations: 3.702 MB / 0.4932 GB, free: 13.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.2601, allocations: 8.031 kB / 0.4932 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003264/0.2634, allocations: 0.6137 MB / 0.4938 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002682/0.2661, allocations: 1.486 MB / 0.4952 GB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002139/0.2663, allocations: 265 kB / 0.4955 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004772/0.2668, allocations: 271.9 kB / 0.4957 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004964/0.2718, allocations: 3.12 MB / 0.4988 GB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.352e-05/0.2718, allocations: 7.922 kB / 0.4988 GB, free: 7.324 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002484/0.2721, allocations: 104 kB / 0.4989 GB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-05/0.2722, allocations: 68 kB / 0.499 GB, free: 7.156 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005951/0.2781, allocations: 3.838 MB / 0.5027 GB, free: 3.305 MB / 382.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.2052/0.4834, allocations: 9.861 MB / 0.5123 GB, free: 73.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004038/0.4874, allocations: 3.463 MB / 0.5157 GB, free: 72.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001829/0.4893, allocations: 1.338 MB / 0.517 GB, free: 71.56 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01297/0.5023, allocations: 10.85 MB / 0.5276 GB, free: 63.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.512e-05/0.5023, allocations: 58.03 kB / 0.5277 GB, free: 63.45 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007062/0.503, allocations: 197.6 kB / 0.5279 GB, free: 63.31 MB / 382.1 MB Notification: Performance of pre-optimization done (n=177): time 4.829e-06/0.5031, allocations: 2.344 kB / 0.5279 GB, free: 63.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=251): time 0.04089/0.544, allocations: 12.27 MB / 0.5399 GB, free: 56.97 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.544, allocations: 85.39 kB / 0.5399 GB, free: 56.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0012/0.5452, allocations: 1.167 MB / 0.5411 GB, free: 55.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002401/0.5455, allocations: 77.69 kB / 0.5412 GB, free: 55.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004463/0.5459, allocations: 1.14 MB / 0.5423 GB, free: 54.47 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005934/0.5465, allocations: 0.8649 MB / 0.5431 GB, free: 53.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006611/0.5472, allocations: 0.5572 MB / 0.5437 GB, free: 53.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.671e-05/0.5473, allocations: 305.1 kB / 0.5439 GB, free: 52.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00142/0.5487, allocations: 1.009 MB / 0.5449 GB, free: 51.74 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001813/0.5505, allocations: 1.909 MB / 0.5468 GB, free: 49.44 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003438/0.554, allocations: 3.189 MB / 0.5499 GB, free: 45.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-05/0.554, allocations: 15.94 kB / 0.5499 GB, free: 45.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.008906/0.5629, allocations: 4.129 MB / 0.554 GB, free: 41.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.291e-05/0.5629, allocations: 16 kB / 0.554 GB, free: 41.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.584e-05/0.563, allocations: 28.38 kB / 0.554 GB, free: 41.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005689/0.5687, allocations: 1.369 MB / 0.5553 GB, free: 40.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002115/0.5708, allocations: 0.6512 MB / 0.556 GB, free: 39.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009156/0.58, allocations: 8.272 MB / 0.5641 GB, free: 30.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002417/0.5824, allocations: 99.98 kB / 0.5641 GB, free: 30.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002625/0.5827, allocations: 171.9 kB / 0.5643 GB, free: 30.58 MB / 382.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.0009053/0.5836, allocations: 0.5086 MB / 0.5648 GB, free: 30.06 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003597/0.584, allocations: 193.6 kB / 0.565 GB, free: 29.87 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008448/0.5925, allocations: 3.9 MB / 0.5688 GB, free: 25.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.638e-05/0.5925, allocations: 24 kB / 0.5688 GB, free: 25.87 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/0.5925, allocations: 4 kB / 0.5688 GB, free: 25.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.86e-05/0.5926, allocations: 11.95 kB / 0.5688 GB, free: 25.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01158/0.6041, allocations: 6.332 MB / 0.575 GB, free: 19.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/0.6042, allocations: 4.344 kB / 0.575 GB, free: 19.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001697/0.6059, allocations: 435.4 kB / 0.5754 GB, free: 19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005071/0.611, allocations: 1.272 MB / 0.5767 GB, free: 17.72 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002406/0.6112, allocations: 95.94 kB / 0.5768 GB, free: 17.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007655/0.6189, allocations: 7.784 MB / 0.5844 GB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.6189, allocations: 4 kB / 0.5844 GB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009877/0.6288, allocations: 5.041 MB / 0.5893 GB, free: 4.223 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005448/0.6294, allocations: 258.5 kB / 0.5896 GB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003145/0.6297, allocations: 58.75 kB / 0.5896 GB, free: 3.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001274/0.631, allocations: 59.98 kB / 0.5897 GB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004525/0.6315, allocations: 225.7 kB / 0.5899 GB, free: 3.613 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000203/0.6317, allocations: 111.9 kB / 0.59 GB, free: 3.504 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008539/0.6325, allocations: 0.735 MB / 0.5907 GB, free: 2.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.6325, allocations: 4 kB / 0.5907 GB, free: 2.766 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003727/0.6363, allocations: 1.481 MB / 0.5922 GB, free: 1.438 MB / 382.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.002473/0.6387, allocations: 1.508 MB / 0.5936 GB, free: 268 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006904/0.6457, allocations: 3.508 MB / 0.5971 GB, free: 12.67 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.6457, allocations: 0 / 0.5971 GB, free: 12.67 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003932/0.6496, allocations: 2.025 MB / 0.599 GB, free: 10.58 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00218/0.6519, allocations: 396.8 kB / 0.5994 GB, free: 10.19 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00827/0.6601, allocations: 4.746 MB / 0.604 GB, free: 5.379 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001274/0.6614, allocations: 1.598 MB / 0.6056 GB, free: 3.746 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00184/0.6633, allocations: 0.5007 MB / 0.6061 GB, free: 3.242 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007839/0.6641, allocations: 352.4 kB / 0.6064 GB, free: 2.906 MB / 398.1 MB Notification: Performance of SimCode: time 7.52e-07/0.6641, allocations: 0 / 0.6064 GB, free: 2.906 MB / 398.1 MB Notification: Performance of Templates: time 0.08366/0.7478, allocations: 54.36 MB / 0.6595 GB, free: 12.74 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 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.LeadAcidBattery.pipe 2>&1)