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: "" <> buildModelFMU(Chemical.Examples.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.00868/0.00868, allocations: 170.7 kB / 16.27 MB, free: 6.652 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.25/1.25, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1693/0.1693, allocations: 15.28 MB / 306.7 MB, free: 15.69 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000283/0.0002831, allocations: 8 kB / 372.2 MB, free: 3.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2341, allocations: 54.61 MB / 426.8 MB, free: 40.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.008565/0.2427, allocations: 12.78 MB / 439.6 MB, free: 33.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0255/0.2683, allocations: 33.34 MB / 472.9 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001939/0.2702, allocations: 51.38 kB / 473 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00179/0.272, allocations: 0.6629 MB / 473.6 MB, free: 8.934 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006653/0.2787, allocations: 2.455 MB / 476.1 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0103/0.289, allocations: 3.87 MB / 480 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004049/0.2931, allocations: 3.291 MB / 483.3 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002317/0.2954, allocations: 1.684 MB / 484.9 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00239/0.2978, allocations: 1.525 MB / 486.5 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002848/0.3007, allocations: 1.71 MB / 488.2 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007624/0.3015, allocations: 171.6 kB / 488.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01043/0.3119, allocations: 3.604 MB / 491.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001042/0.313, allocations: 0.5999 MB / 492.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002858/0.3158, allocations: 1.427 MB / 494 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01571/0.3316, allocations: 6.733 MB / 0.489 GB, free: 11.87 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.3316, allocations: 0 / 0.489 GB, free: 11.87 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3316, allocations: 0 / 0.489 GB, free: 11.87 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000111/0.3317, allocations: 0 / 0.489 GB, free: 11.87 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.007072/0.3388, allocations: 3.063 MB / 0.492 GB, free: 8.746 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.3389, allocations: 8.031 kB / 0.492 GB, free: 8.738 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006559/0.3395, allocations: 355.2 kB / 0.4923 GB, free: 8.383 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002578/0.3421, allocations: 0.624 MB / 0.4929 GB, free: 7.758 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002253/0.3444, allocations: 1.412 MB / 0.4943 GB, free: 6.301 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001995/0.3446, allocations: 260.7 kB / 0.4945 GB, free: 6.031 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004788/0.3451, allocations: 271.8 kB / 0.4948 GB, free: 5.766 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005034/0.3501, allocations: 3.117 MB / 0.4979 GB, free: 2.578 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.174e-05/0.3502, allocations: 3.938 kB / 0.4979 GB, free: 2.574 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000269/0.3504, allocations: 108 kB / 0.498 GB, free: 2.469 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.627e-05/0.3505, allocations: 64 kB / 0.498 GB, free: 2.406 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005849/0.3563, allocations: 3.838 MB / 0.5018 GB, free: 14.55 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.01458/0.3709, allocations: 9.876 MB / 0.5114 GB, free: 4.297 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004634/0.3756, allocations: 3.468 MB / 0.5148 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001904/0.3775, allocations: 1.337 MB / 0.5161 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01529/0.3928, allocations: 10.66 MB / 0.5265 GB, free: 3.539 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.644e-05/0.3929, allocations: 48.56 kB / 0.5266 GB, free: 3.48 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009002/0.3938, allocations: 205.9 kB / 0.5268 GB, free: 3.277 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 4.538e-06/0.3938, allocations: 3.938 kB / 0.5268 GB, free: 3.273 MB / 398.1 MB Notification: Performance of matching and sorting (n=251): time 0.04288/0.4367, allocations: 12.4 MB / 0.5389 GB, free: 6.715 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.222e-05/0.4368, allocations: 81.41 kB / 0.5389 GB, free: 6.621 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001377/0.4381, allocations: 1.168 MB / 0.5401 GB, free: 5.441 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001553/0.4383, allocations: 69.7 kB / 0.5402 GB, free: 5.367 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006928/0.439, allocations: 1.152 MB / 0.5413 GB, free: 4.199 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006334/0.4397, allocations: 0.8549 MB / 0.5421 GB, free: 3.332 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003027/0.44, allocations: 240.1 kB / 0.5423 GB, free: 3.09 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.058e-05/0.4401, allocations: 301.1 kB / 0.5426 GB, free: 2.793 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001657/0.4417, allocations: 1.009 MB / 0.5436 GB, free: 1.781 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00214/0.4439, allocations: 1.905 MB / 0.5455 GB, free: 15.48 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004205/0.4481, allocations: 3.204 MB / 0.5486 GB, free: 11.86 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.646e-05/0.4481, allocations: 8 kB / 0.5486 GB, free: 11.85 MB / 430.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.009736/0.4578, allocations: 4.144 MB / 0.5527 GB, free: 7.641 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.386e-05/0.4579, allocations: 20 kB / 0.5527 GB, free: 7.621 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-05/0.4579, allocations: 28.38 kB / 0.5527 GB, free: 7.594 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006203/0.4641, allocations: 1.376 MB / 0.554 GB, free: 6.203 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002162/0.4663, allocations: 0.6474 MB / 0.5547 GB, free: 5.555 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0115/0.4778, allocations: 7.73 MB / 0.5622 GB, free: 13.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002205/0.4801, allocations: 179.6 kB / 0.5624 GB, free: 13.22 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003556/0.4804, allocations: 167.9 kB / 0.5626 GB, free: 13.06 MB / 446.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.001177/0.4816, allocations: 0.5125 MB / 0.5631 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003744/0.482, allocations: 193.6 kB / 0.5632 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01033/0.4923, allocations: 3.898 MB / 0.5671 GB, free: 8.367 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.906e-05/0.4924, allocations: 24 kB / 0.5671 GB, free: 8.344 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.4924, allocations: 4 kB / 0.5671 GB, free: 8.34 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.869e-05/0.4924, allocations: 15.89 kB / 0.5671 GB, free: 8.324 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01324/0.5057, allocations: 6.331 MB / 0.5733 GB, free: 1.836 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/0.5057, allocations: 7.938 kB / 0.5733 GB, free: 1.828 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001845/0.5076, allocations: 443.7 kB / 0.5737 GB, free: 1.395 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006172/0.5137, allocations: 1.287 MB / 0.575 GB, free: 92 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003972/0.5142, allocations: 95.98 kB / 0.5751 GB, free: 15.99 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009634/0.5238, allocations: 7.248 MB / 0.5821 GB, free: 8.324 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.5238, allocations: 0 / 0.5821 GB, free: 8.324 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01143/0.5353, allocations: 5.047 MB / 0.5871 GB, free: 3.121 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004555/0.5357, allocations: 254.5 kB / 0.5873 GB, free: 2.852 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003359/0.5361, allocations: 55.94 kB / 0.5874 GB, free: 2.797 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001437/0.5375, allocations: 95.8 kB / 0.5875 GB, free: 2.703 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004505/0.538, allocations: 229.8 kB / 0.5877 GB, free: 2.477 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002152/0.5382, allocations: 112.2 kB / 0.5878 GB, free: 2.367 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0009781/0.5392, allocations: 0.7311 MB / 0.5885 GB, free: 1.637 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5392, allocations: 0 / 0.5885 GB, free: 1.637 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003971/0.5432, allocations: 1.472 MB / 0.5899 GB, free: 168 kB / 462.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.1774/0.7206, allocations: 6.996 MB / 0.5968 GB, free: 132.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005138/0.7258, allocations: 3.493 MB / 0.6002 GB, free: 132.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.7258, allocations: 3.156 kB / 0.6002 GB, free: 132.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002579/0.7284, allocations: 2.026 MB / 0.6022 GB, free: 131.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002046/0.7304, allocations: 369.2 kB / 0.6025 GB, free: 131.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03212/0.7625, allocations: 23.07 MB / 0.625 GB, free: 117.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000948/0.7635, allocations: 1.604 MB / 0.6266 GB, free: 117 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002107/0.7656, allocations: 0.51 MB / 0.6271 GB, free: 116.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001257/0.7669, allocations: 1.183 MB / 0.6283 GB, free: 116 MB / 462.1 MB Notification: Performance of SimCode: time 5.31e-07/0.7669, allocations: 0 / 0.6283 GB, free: 116 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9572/1.724, allocations: 70.28 MB / 0.6969 GB, free: 59.46 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001876/1.724, allocations: 199.2 kB / 0.6971 GB, free: 59.21 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.875/5.599, allocations: 3.938 kB / 0.6971 GB, free: 59.21 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_LeadAcidBattery_fmu --startTime=0 --stopTime=47800 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_LeadAcidBattery.fmu > Chemical_Chemical.Examples.LeadAcidBattery.pipe 2>&1)