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.001423/0.001422, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001367/0.001367, allocations: 193.7 kB / 16.25 MB, free: 6.621 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.21/1.21, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1683/0.1683, allocations: 15.33 MB / 305.4 MB, free: 15.33 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 71.88 kB / 369.9 MB, free: 4.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08675/0.08789, allocations: 53.6 MB / 423.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01153/0.09946, allocations: 13.31 MB / 436.9 MB, free: 1.164 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1714/0.2709, allocations: 33.37 MB / 470.2 MB, free: 27.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002034/0.273, allocations: 55.28 kB / 470.3 MB, free: 27.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00183/0.2748, allocations: 0.6669 MB / 470.9 MB, free: 26.97 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006513/0.2814, allocations: 2.504 MB / 473.4 MB, free: 25.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009183/0.2906, allocations: 3.96 MB / 477.4 MB, free: 23.22 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003071/0.2937, allocations: 3.41 MB / 480.8 MB, free: 21.54 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001544/0.2952, allocations: 2.059 MB / 482.9 MB, free: 20.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001564/0.2968, allocations: 1.735 MB / 484.6 MB, free: 19.97 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002075/0.2989, allocations: 1.896 MB / 486.5 MB, free: 19.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004892/0.2994, allocations: 322 kB / 486.8 MB, free: 19.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01068/0.3101, allocations: 3.817 MB / 490.6 MB, free: 18.22 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001044/0.3111, allocations: 0.7634 MB / 491.4 MB, free: 17.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003281/0.3144, allocations: 1.594 MB / 493 MB, free: 16.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01573/0.3302, allocations: 6.934 MB / 499.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3302, allocations: 5.406 kB / 499.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3302, allocations: 0 / 499.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.255e-05/0.3303, allocations: 0 / 499.9 MB, free: 13.88 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.00786/0.3382, allocations: 3.699 MB / 0.4918 GB, free: 11.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.3382, allocations: 9.625 kB / 0.4918 GB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004008/0.3387, allocations: 359.7 kB / 0.4922 GB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00259/0.3412, allocations: 0.623 MB / 0.4928 GB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002461/0.3437, allocations: 1.46 MB / 0.4942 GB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001529/0.3439, allocations: 256.6 kB / 0.4945 GB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003789/0.3443, allocations: 266.9 kB / 0.4947 GB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004402/0.3487, allocations: 3.119 MB / 0.4978 GB, free: 9.113 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.576e-05/0.3487, allocations: 2.219 kB / 0.4978 GB, free: 9.113 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002408/0.349, allocations: 108.5 kB / 0.4979 GB, free: 9.027 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-05/0.349, allocations: 67.06 kB / 0.4979 GB, free: 9.023 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004498/0.3535, allocations: 3.854 MB / 0.5017 GB, free: 5.512 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.01513/0.3687, allocations: 9.904 MB / 0.5114 GB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004423/0.3731, allocations: 3.459 MB / 0.5147 GB, free: 7.656 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001783/0.3749, allocations: 1.336 MB / 0.5161 GB, free: 6.309 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01374/0.3887, allocations: 10.89 MB / 0.5267 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.4e-05/0.3887, allocations: 48.56 kB / 0.5267 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009272/0.3897, allocations: 202 kB / 0.5269 GB, free: 10 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 3.486e-06/0.3897, allocations: 4 kB / 0.5269 GB, free: 9.996 MB / 398.1 MB Notification: Performance of matching and sorting (n=251): time 0.04428/0.434, allocations: 12.28 MB / 0.5389 GB, free: 13.55 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.524e-05/0.4341, allocations: 77.41 kB / 0.539 GB, free: 13.46 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001338/0.4354, allocations: 1.164 MB / 0.5401 GB, free: 12.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002714/0.4357, allocations: 69.7 kB / 0.5402 GB, free: 12.21 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005989/0.4363, allocations: 1.149 MB / 0.5413 GB, free: 11.05 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006193/0.4369, allocations: 0.8626 MB / 0.5422 GB, free: 10.18 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007462/0.4377, allocations: 0.5572 MB / 0.5427 GB, free: 9.613 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.27e-05/0.4377, allocations: 305.1 kB / 0.543 GB, free: 9.312 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001589/0.4393, allocations: 1.017 MB / 0.544 GB, free: 8.293 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00208/0.4414, allocations: 1.905 MB / 0.5459 GB, free: 5.996 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003971/0.4454, allocations: 3.196 MB / 0.549 GB, free: 2.379 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.229e-05/0.4454, allocations: 8 kB / 0.549 GB, free: 2.371 MB / 414.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.009555/0.455, allocations: 4.132 MB / 0.553 GB, free: 14.18 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.204e-05/0.455, allocations: 24 kB / 0.553 GB, free: 14.15 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.349e-05/0.4551, allocations: 28 kB / 0.5531 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006/0.4611, allocations: 1.37 MB / 0.5544 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002401/0.4635, allocations: 0.6474 MB / 0.555 GB, free: 12.1 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0104/0.4739, allocations: 8.283 MB / 0.5631 GB, free: 3.375 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002462/0.4764, allocations: 167 kB / 0.5633 GB, free: 3.215 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003041/0.4767, allocations: 171.9 kB / 0.5634 GB, free: 3.047 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 (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.0009889/0.4777, allocations: 0.5125 MB / 0.5639 GB, free: 2.523 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004042/0.4781, allocations: 197.5 kB / 0.5641 GB, free: 2.328 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009735/0.4879, allocations: 3.884 MB / 0.5679 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.283e-05/0.4879, allocations: 28 kB / 0.568 GB, free: 14.35 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.488, allocations: 4 kB / 0.568 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.969e-05/0.488, allocations: 11.95 kB / 0.568 GB, free: 14.33 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01357/0.5016, allocations: 6.339 MB / 0.5742 GB, free: 7.836 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.251e-05/0.5016, allocations: 352 / 0.5742 GB, free: 7.836 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001824/0.5034, allocations: 439.4 kB / 0.5746 GB, free: 7.406 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00579/0.5093, allocations: 1.278 MB / 0.5758 GB, free: 6.113 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003589/0.5096, allocations: 99.88 kB / 0.5759 GB, free: 6.016 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009103/0.5187, allocations: 7.782 MB / 0.5835 GB, free: 13.79 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/0.5188, allocations: 7.938 kB / 0.5835 GB, free: 13.78 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01078/0.5296, allocations: 5.043 MB / 0.5885 GB, free: 8.586 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000622/0.5302, allocations: 254.6 kB / 0.5887 GB, free: 8.316 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003088/0.5305, allocations: 55.98 kB / 0.5888 GB, free: 8.262 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001357/0.5319, allocations: 95.8 kB / 0.5888 GB, free: 8.168 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004683/0.5324, allocations: 225.7 kB / 0.5891 GB, free: 7.945 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002058/0.5326, allocations: 111.9 kB / 0.5892 GB, free: 7.836 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008676/0.5335, allocations: 0.7311 MB / 0.5899 GB, free: 7.105 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5335, allocations: 0 / 0.5899 GB, free: 7.105 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00408/0.5376, allocations: 1.476 MB / 0.5913 GB, free: 5.629 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 (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.1619/0.6995, allocations: 6.979 MB / 0.5981 GB, free: 134.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009716/0.7093, allocations: 3.955 MB / 0.602 GB, free: 134.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/0.7093, allocations: 1.641 kB / 0.602 GB, free: 134.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003022/0.7123, allocations: 2.028 MB / 0.604 GB, free: 133.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001888/0.7142, allocations: 404 kB / 0.6044 GB, free: 133.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03593/0.7502, allocations: 22.92 MB / 0.6267 GB, free: 120.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001031/0.7512, allocations: 1.6 MB / 0.6283 GB, free: 120.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002356/0.7536, allocations: 0.5172 MB / 0.6288 GB, free: 120 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001376/0.755, allocations: 1.189 MB / 0.63 GB, free: 119.1 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/0.755, allocations: 0 / 0.63 GB, free: 119.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09723/0.8523, allocations: 72.63 MB / 0.7009 GB, free: 63.12 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001302/0.8524, allocations: 207.7 kB / 0.7011 GB, free: 62.86 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.939/4.791, allocations: 0 / 0.7011 GB, free: 62.86 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)