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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.1087/0.1087, allocations: 15.25 MB / 27.81 MB, free: 5.395 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 188.5 kB / 32.7 MB, free: 0.5156 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 221.4 MB / 258.8 MB, free: 8 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009439/0.000944, allocations: 108.9 kB / 314 MB, free: 15.77 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 4.207e-05/4.231e-05, allocations: 11.88 kB / 376.5 MB, free: 1.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3511/0.3512, allocations: 54.6 MB / 431.1 MB, free: 50 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1461/0.4974, allocations: 103 MB / 0.5216 GB, free: 12.27 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.4977, allocations: 67.97 kB / 0.5217 GB, free: 12.2 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5273/1.025, allocations: 93.1 MB / 0.6126 GB, free: 90.26 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.324e-06/1.025, allocations: 1.219 kB / 0.6126 GB, free: 90.26 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001013/1.025, allocations: 58.97 kB / 0.6126 GB, free: 90.25 MB / 442.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.007477/1.033, allocations: 2.794 MB / 0.6154 GB, free: 88.89 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/1.033, allocations: 9.5 kB / 0.6154 GB, free: 88.89 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002956/1.036, allocations: 0.6876 MB / 0.6161 GB, free: 88.74 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003279/1.039, allocations: 1.406 MB / 0.6174 GB, free: 88.29 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001939/1.039, allocations: 262.4 kB / 0.6177 GB, free: 88.21 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005604/1.04, allocations: 266 kB / 0.6179 GB, free: 88.21 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007951/1.048, allocations: 4.415 MB / 0.6222 GB, free: 87.99 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-05/1.048, allocations: 3.812 kB / 0.6222 GB, free: 87.99 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003171/1.048, allocations: 104.6 kB / 0.6223 GB, free: 87.99 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.781e-05/1.048, allocations: 64.88 kB / 0.6224 GB, free: 87.99 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00847/1.057, allocations: 6.156 MB / 0.6284 GB, free: 86.23 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or 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.02139/1.078, allocations: 12.93 MB / 0.6411 GB, free: 79.41 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005425/1.084, allocations: 4.563 MB / 0.6455 GB, free: 77.07 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002632/1.086, allocations: 2.175 MB / 0.6476 GB, free: 76.13 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001035/1.087, allocations: 0.6637 MB / 0.6483 GB, free: 75.95 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.296e-05/1.087, allocations: 62.23 kB / 0.6483 GB, free: 75.88 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00166/1.089, allocations: 253.1 kB / 0.6486 GB, free: 75.73 MB / 442.7 MB Notification: Performance of pre-optimization done (n=272): time 1.244e-05/1.089, allocations: 0 / 0.6486 GB, free: 75.73 MB / 442.7 MB Notification: Performance of matching and sorting (n=425): time 0.08234/1.171, allocations: 28.63 MB / 0.6765 GB, free: 53.63 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.04112/1.213, allocations: 19.37 MB / 0.6955 GB, free: 33.96 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001469/1.214, allocations: 1.009 MB / 0.6964 GB, free: 32.94 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000906/1.215, allocations: 93.7 kB / 0.6965 GB, free: 32.84 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005626/1.216, allocations: 0.8885 MB / 0.6974 GB, free: 31.95 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001826/1.217, allocations: 1.414 MB / 0.6988 GB, free: 30.54 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007556/1.218, allocations: 79.75 kB / 0.6989 GB, free: 30.47 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002849/1.218, allocations: 450.3 kB / 0.6993 GB, free: 30.02 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004367/1.223, allocations: 3.088 MB / 0.7023 GB, free: 26.93 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0047/1.228, allocations: 3.589 MB / 0.7058 GB, free: 23.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004654/1.232, allocations: 3.375 MB / 0.7091 GB, free: 19.82 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-05/1.232, allocations: 4 kB / 0.7091 GB, free: 19.81 MB / 442.7 MB Notification: Performance of matching and sorting (n=498) (initialization): time 0.01673/1.249, allocations: 8.845 MB / 0.7177 GB, free: 10.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.629e-05/1.249, allocations: 8.625 kB / 0.7178 GB, free: 10.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.718e-05/1.249, allocations: 19.3 kB / 0.7178 GB, free: 10.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01042/1.26, allocations: 2.951 MB / 0.7207 GB, free: 7.941 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003539/1.263, allocations: 0.7332 MB / 0.7214 GB, free: 7.207 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01458/1.278, allocations: 10.86 MB / 0.732 GB, free: 11.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007933/1.286, allocations: 0.6474 MB / 0.7326 GB, free: 11.25 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001116/1.287, allocations: 215.7 kB / 0.7328 GB, free: 11.04 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (383): * Single equations (assignments): 375 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * 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 {(2,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 3 {5 54,1 4,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001297/1.288, allocations: 302 kB / 0.7331 GB, free: 10.73 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007749/1.289, allocations: 225.2 kB / 0.7333 GB, free: 10.51 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01954/1.308, allocations: 9.163 MB / 0.7423 GB, free: 1.32 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0182/1.327, allocations: 8.776 MB / 0.7508 GB, free: 8.516 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.436e-05/1.327, allocations: 4 kB / 0.7508 GB, free: 8.512 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.914e-05/1.327, allocations: 23.86 kB / 0.7509 GB, free: 8.488 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3311/1.658, allocations: 21.91 MB / 0.7723 GB, free: 109.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.327e-05/1.658, allocations: 15.38 kB / 0.7723 GB, free: 109.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002796/1.661, allocations: 0.5927 MB / 0.7729 GB, free: 109.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0269/1.688, allocations: 6.537 MB / 0.7792 GB, free: 109.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009674/1.689, allocations: 149.7 kB / 0.7794 GB, free: 109.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01485/1.704, allocations: 10.85 MB / 0.79 GB, free: 106.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.03832/1.742, allocations: 19.37 MB / 0.8089 GB, free: 98.1 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02001/1.762, allocations: 14.28 MB / 0.8228 GB, free: 91.05 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001036/1.763, allocations: 374.6 kB / 0.8232 GB, free: 90.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007775/1.764, allocations: 101.1 kB / 0.8233 GB, free: 90.74 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004157/1.768, allocations: 388.8 kB / 0.8237 GB, free: 90.67 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006822/1.769, allocations: 365 kB / 0.824 GB, free: 90.61 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003295/1.769, allocations: 178.3 kB / 0.8242 GB, free: 90.58 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008964/1.77, allocations: 0.7773 MB / 0.8249 GB, free: 90.23 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.77, allocations: 0 / 0.8249 GB, free: 90.23 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007272/1.777, allocations: 2.694 MB / 0.8276 GB, free: 90.04 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 68 * Number of states: 10 ($STATESET1.x[10],$STATESET1.x[9],$STATESET1.x[8],$STATESET1.x[7],$STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (318): * Single equations (assignments): 314 * 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: 3 * 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 {(2,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 1 {16 101} Notification: Performance of Backend phase and start with SimCode phase: time 0.003316/1.781, allocations: 1.644 MB / 0.8292 GB, free: 89.68 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01144/1.792, allocations: 7.858 MB / 0.8369 GB, free: 82.94 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.688e-05/1.792, allocations: 320 / 0.8369 GB, free: 82.94 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008937/1.801, allocations: 5.06 MB / 0.8418 GB, free: 78.53 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003319/1.804, allocations: 432.4 kB / 0.8422 GB, free: 78.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0139/1.818, allocations: 7.404 MB / 0.8494 GB, free: 71.29 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00177/1.82, allocations: 1.963 MB / 0.8514 GB, free: 69.73 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003038/1.823, allocations: 499.2 kB / 0.8518 GB, free: 69.37 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001792/1.825, allocations: 307.9 kB / 0.8521 GB, free: 69.16 MB / 474.7 MB Notification: Performance of SimCode: time 1.012e-06/1.825, allocations: 0 / 0.8521 GB, free: 69.16 MB / 474.7 MB Notification: Performance of Templates: time 0.115/1.94, allocations: 84.06 MB / 0.9342 GB, free: 7.398 MB / 490.7 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)