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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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.0008124/0.0008121, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.0009503/0.0009503, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.284/1.284, allocations: 223.2 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2006/0.2006, allocations: 15.27 MB / 306.3 MB, free: 15.75 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003186/0.0003187, allocations: 15.98 kB / 371.6 MB, free: 3.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.266, allocations: 54.61 MB / 426.2 MB, free: 39.95 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.008496/0.2745, allocations: 11.91 MB / 438.1 MB, free: 34.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02319/0.2978, allocations: 30.82 MB / 468.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001657/0.2995, allocations: 51.66 kB / 469 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00141/0.3009, allocations: 0.6816 MB / 469.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005631/0.3065, allocations: 2.455 MB / 472.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008351/0.3149, allocations: 3.583 MB / 475.7 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003837/0.3188, allocations: 3.132 MB / 478.8 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00211/0.3209, allocations: 1.63 MB / 480.4 MB, free: 5.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001973/0.3229, allocations: 1.334 MB / 481.8 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002216/0.3251, allocations: 1.65 MB / 483.4 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003942/0.3255, allocations: 176.4 kB / 483.6 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009913/0.3354, allocations: 3.388 MB / 487 MB, free: 4.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00128/0.3367, allocations: 0.5776 MB / 487.6 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00138/0.3381, allocations: 0.5155 MB / 488.1 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01029/0.3484, allocations: 5.398 MB / 493.5 MB, free: 1.496 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.3485, allocations: 0 / 493.5 MB, free: 1.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3485, allocations: 0 / 493.5 MB, free: 1.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001723/0.3487, allocations: 4 kB / 493.5 MB, free: 1.492 MB / 350.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.008526/0.3572, allocations: 3.069 MB / 496.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.955e-05/0.3573, allocations: 9.156 kB / 496.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001169/0.3585, allocations: 364.8 kB / 496.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003252/0.3617, allocations: 0.6162 MB / 497.5 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0034/0.3651, allocations: 1.388 MB / 498.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002506/0.3654, allocations: 256.7 kB / 499.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008134/0.3663, allocations: 267.9 kB / 499.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006223/0.3725, allocations: 3.097 MB / 0.4908 GB, free: 9.426 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.453e-05/0.3726, allocations: 0 / 0.4908 GB, free: 9.426 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002585/0.3728, allocations: 108 kB / 0.4909 GB, free: 9.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.805e-05/0.3729, allocations: 60 kB / 0.4909 GB, free: 9.262 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005911/0.3788, allocations: 3.838 MB / 0.4947 GB, free: 5.41 MB / 366.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.01834/0.3972, allocations: 9.867 MB / 0.5043 GB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005899/0.4031, allocations: 3.449 MB / 0.5077 GB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002746/0.4059, allocations: 1.329 MB / 0.509 GB, free: 6.246 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01721/0.4231, allocations: 10.65 MB / 0.5194 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/0.4232, allocations: 48.56 kB / 0.5194 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00101/0.4242, allocations: 206 kB / 0.5196 GB, free: 10.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 4.679e-06/0.4242, allocations: 0 / 0.5196 GB, free: 10.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=251): time 0.04665/0.4709, allocations: 12.4 MB / 0.5317 GB, free: 13.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.08e-05/0.471, allocations: 77.41 kB / 0.5318 GB, free: 13.53 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001938/0.473, allocations: 1.16 MB / 0.5329 GB, free: 12.36 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003769/0.4733, allocations: 65.7 kB / 0.533 GB, free: 12.29 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008611/0.4742, allocations: 1.149 MB / 0.5341 GB, free: 11.12 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009843/0.4752, allocations: 0.8587 MB / 0.5349 GB, free: 10.25 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003434/0.4756, allocations: 64 kB / 0.535 GB, free: 10.19 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002431/0.4758, allocations: 424.4 kB / 0.5354 GB, free: 9.77 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002114/0.478, allocations: 0.9977 MB / 0.5364 GB, free: 8.77 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002594/0.4806, allocations: 1.897 MB / 0.5382 GB, free: 6.48 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002454/0.483, allocations: 1.268 MB / 0.5395 GB, free: 5.191 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.161e-05/0.4831, allocations: 8 kB / 0.5395 GB, free: 5.184 MB / 414.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01107/0.4941, allocations: 4.114 MB / 0.5435 GB, free: 1.004 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.442e-05/0.4942, allocations: 16 kB / 0.5435 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.289e-05/0.4943, allocations: 28 kB / 0.5435 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006098/0.5004, allocations: 1.372 MB / 0.5449 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002673/0.5031, allocations: 0.6514 MB / 0.5455 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01159/0.5147, allocations: 7.706 MB / 0.553 GB, free: 6.789 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00272/0.5175, allocations: 167.7 kB / 0.5532 GB, free: 6.625 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006002/0.5181, allocations: 171.9 kB / 0.5534 GB, free: 6.457 MB / 430.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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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 {(3,77.8%) 15,(1,100.0%) 3} * Non-linear torn systems: 2 {2 25,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.00151/0.5196, allocations: 0.5169 MB / 0.5539 GB, free: 5.93 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005273/0.5202, allocations: 193.6 kB / 0.5541 GB, free: 5.738 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01076/0.5309, allocations: 3.898 MB / 0.5579 GB, free: 1.77 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-05/0.531, allocations: 24 kB / 0.5579 GB, free: 1.746 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.349e-05/0.531, allocations: 4 kB / 0.5579 GB, free: 1.742 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.924e-05/0.5311, allocations: 11.95 kB / 0.5579 GB, free: 1.73 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01478/0.5459, allocations: 6.316 MB / 0.5641 GB, free: 11.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/0.5459, allocations: 4 kB / 0.5641 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001877/0.5478, allocations: 443.7 kB / 0.5645 GB, free: 10.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005708/0.5535, allocations: 1.286 MB / 0.5658 GB, free: 9.52 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004115/0.5539, allocations: 95.94 kB / 0.5658 GB, free: 9.426 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009758/0.5637, allocations: 7.238 MB / 0.5729 GB, free: 1.766 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.5637, allocations: 0 / 0.5729 GB, free: 1.766 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01203/0.5758, allocations: 5.027 MB / 0.5778 GB, free: 12.58 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006036/0.5764, allocations: 254.5 kB / 0.5781 GB, free: 12.31 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005033/0.5769, allocations: 52 kB / 0.5781 GB, free: 12.26 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001589/0.5785, allocations: 99.75 kB / 0.5782 GB, free: 12.16 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000477/0.579, allocations: 229.7 kB / 0.5784 GB, free: 11.94 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002602/0.5793, allocations: 103.9 kB / 0.5785 GB, free: 11.84 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001101/0.5804, allocations: 0.7273 MB / 0.5792 GB, free: 11.11 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5804, allocations: 0 / 0.5792 GB, free: 11.11 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005182/0.5856, allocations: 1.448 MB / 0.5807 GB, free: 9.66 MB / 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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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 {(3,66.7%) 15,(1,100.0%) 3} * Non-linear torn systems: 2 {2 27,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01575/0.6014, allocations: 6.947 MB / 0.5874 GB, free: 2.555 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.171/0.7724, allocations: 3.47 MB / 0.5908 GB, free: 137.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.7724, allocations: 0 / 0.5908 GB, free: 137.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003184/0.7756, allocations: 2.022 MB / 0.5928 GB, free: 136.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00184/0.7775, allocations: 369.9 kB / 0.5932 GB, free: 136.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0232/0.8007, allocations: 15.59 MB / 0.6084 GB, free: 130.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008873/0.8016, allocations: 1.597 MB / 0.6099 GB, free: 129.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00219/0.8038, allocations: 0.5137 MB / 0.6104 GB, free: 129.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001288/0.8051, allocations: 1.187 MB / 0.6116 GB, free: 128.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.032e-06/0.8051, allocations: 0 / 0.6116 GB, free: 128.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0926/0.8977, allocations: 69.32 MB / 0.6793 GB, free: 79.83 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000123/0.8979, allocations: 203 kB / 0.6795 GB, free: 79.59 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.788/4.685, allocations: 3.938 kB / 0.6795 GB, free: 79.58 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/linux/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) Environment - environmentSimulation: