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.000993/0.0009927, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.0009826/0.0009827, allocations: 177.3 kB / 15.95 MB, free: 216 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.313/1.313, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2013/0.2013, allocations: 15.26 MB / 306.2 MB, free: 15.79 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003908/0.0003909, allocations: 12 kB / 371.5 MB, free: 3.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.2942, allocations: 54.62 MB / 426.1 MB, free: 40.04 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.008221/0.3024, allocations: 10.63 MB / 436.7 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02415/0.3266, allocations: 28.5 MB / 465.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001988/0.3287, allocations: 57.62 kB / 465.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001885/0.3306, allocations: 0.6986 MB / 466 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007782/0.3384, allocations: 2.82 MB / 468.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01237/0.3508, allocations: 3.95 MB / 472.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005536/0.3563, allocations: 2.261 MB / 475 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003525/0.3599, allocations: 1.624 MB / 476.6 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004069/0.364, allocations: 1.223 MB / 477.8 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004115/0.3681, allocations: 1.605 MB / 479.4 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001095/0.3692, allocations: 171.9 kB / 479.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01475/0.384, allocations: 4.079 MB / 483.7 MB, free: 6.875 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001345/0.3854, allocations: 0.5728 MB / 484.3 MB, free: 6.574 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001316/0.3867, allocations: 0.5153 MB / 484.8 MB, free: 6.312 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01108/0.3978, allocations: 4.35 MB / 489.1 MB, free: 4.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.3978, allocations: 5.375 kB / 489.1 MB, free: 4.914 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3978, allocations: 0 / 489.1 MB, free: 4.914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001096/0.3979, allocations: 0 / 489.1 MB, free: 4.914 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.00699/0.4049, allocations: 3.07 MB / 492.2 MB, free: 3.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.405, allocations: 9.672 kB / 492.2 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004489/0.4054, allocations: 364.5 kB / 492.6 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002381/0.4078, allocations: 0.6168 MB / 493.2 MB, free: 2.641 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002177/0.41, allocations: 1.357 MB / 494.5 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001407/0.4102, allocations: 248.7 kB / 494.8 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003716/0.4106, allocations: 275.8 kB / 495.1 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004958/0.4155, allocations: 3.093 MB / 498.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.022e-05/0.4156, allocations: 0 / 498.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002647/0.4159, allocations: 108 kB / 498.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.331e-05/0.4159, allocations: 60 kB / 498.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005786/0.4217, allocations: 3.827 MB / 0.4904 GB, free: 9.797 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.01635/0.4381, allocations: 9.836 MB / 0.5 GB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004447/0.4425, allocations: 3.441 MB / 0.5033 GB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01464/0.4572, allocations: 10.58 MB / 0.5137 GB, free: 292 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.578e-05/0.4573, allocations: 56.5 kB / 0.5137 GB, free: 228 kB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009982/0.4583, allocations: 206 kB / 0.5139 GB, free: 20 kB / 382.1 MB Notification: Performance of pre-optimization done (n=177): time 3.677e-06/0.4583, allocations: 0 / 0.5139 GB, free: 20 kB / 382.1 MB Notification: Performance of matching and sorting (n=251): time 0.04397/0.5023, allocations: 12.37 MB / 0.526 GB, free: 3.484 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.964e-05/0.5023, allocations: 81.34 kB / 0.5261 GB, free: 3.395 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00146/0.5038, allocations: 1.16 MB / 0.5272 GB, free: 2.223 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002631/0.5041, allocations: 65.7 kB / 0.5273 GB, free: 2.152 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006636/0.5048, allocations: 1.153 MB / 0.5284 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007057/0.5055, allocations: 0.8587 MB / 0.5292 GB, free: 116 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001556/0.5056, allocations: 68 kB / 0.5293 GB, free: 48 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002062/0.5058, allocations: 416.4 kB / 0.5297 GB, free: 15.63 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001635/0.5075, allocations: 0.9977 MB / 0.5307 GB, free: 14.63 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002083/0.5096, allocations: 1.877 MB / 0.5325 GB, free: 12.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001987/0.5116, allocations: 1.272 MB / 0.5337 GB, free: 11.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.391e-05/0.5116, allocations: 8 kB / 0.5337 GB, free: 11.06 MB / 414.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.009415/0.521, allocations: 4.109 MB / 0.5378 GB, free: 6.883 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.394e-05/0.5211, allocations: 16 kB / 0.5378 GB, free: 6.867 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.442e-05/0.5211, allocations: 28 kB / 0.5378 GB, free: 6.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006102/0.5272, allocations: 1.383 MB / 0.5392 GB, free: 5.445 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002647/0.5299, allocations: 0.6474 MB / 0.5398 GB, free: 4.797 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01119/0.5411, allocations: 7.812 MB / 0.5474 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00349/0.5446, allocations: 163.8 kB / 0.5476 GB, free: 12.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006634/0.5453, allocations: 171.9 kB / 0.5477 GB, free: 12.23 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.001427/0.5468, allocations: 0.5091 MB / 0.5482 GB, free: 11.71 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000498/0.5473, allocations: 197.9 kB / 0.5484 GB, free: 11.51 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01003/0.5573, allocations: 3.909 MB / 0.5522 GB, free: 7.531 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-05/0.5574, allocations: 28 kB / 0.5523 GB, free: 7.504 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.429e-05/0.5574, allocations: 4 kB / 0.5523 GB, free: 7.5 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-05/0.5575, allocations: 11.95 kB / 0.5523 GB, free: 7.488 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01445/0.5719, allocations: 6.319 MB / 0.5585 GB, free: 1.016 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.087e-05/0.572, allocations: 0 / 0.5585 GB, free: 1.016 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002085/0.5741, allocations: 439.7 kB / 0.5589 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005982/0.5801, allocations: 1.28 MB / 0.5601 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000525/0.5806, allocations: 103.9 kB / 0.5602 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009185/0.5898, allocations: 7.334 MB / 0.5674 GB, free: 7.43 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/0.5899, allocations: 4 kB / 0.5674 GB, free: 7.426 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01179/0.6017, allocations: 5.188 MB / 0.5725 GB, free: 2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001021/0.6027, allocations: 246.6 kB / 0.5727 GB, free: 1.738 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004562/0.6032, allocations: 55.98 kB / 0.5727 GB, free: 1.684 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001418/0.6046, allocations: 99.8 kB / 0.5728 GB, free: 1.586 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004892/0.6051, allocations: 225.7 kB / 0.5731 GB, free: 1.363 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000237/0.6054, allocations: 111.9 kB / 0.5732 GB, free: 1.254 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009595/0.6064, allocations: 0.7194 MB / 0.5739 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.463e-06/0.6064, allocations: 4.031 kB / 0.5739 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00519/0.6116, allocations: 1.44 MB / 0.5753 GB, free: 15.09 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.01579/0.6274, allocations: 7.82 MB / 0.5829 GB, free: 7.066 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007015/0.6344, allocations: 3.479 MB / 0.5863 GB, free: 3.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.6345, allocations: 0 / 0.5863 GB, free: 3.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003579/0.6381, allocations: 2.013 MB / 0.5883 GB, free: 1.426 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001849/0.6399, allocations: 337.9 kB / 0.5886 GB, free: 1.09 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1927/0.8326, allocations: 27.77 MB / 0.6157 GB, free: 112.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009473/0.8336, allocations: 1.648 MB / 0.6173 GB, free: 111.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002242/0.8359, allocations: 0.5009 MB / 0.6178 GB, free: 111.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001267/0.8371, allocations: 1.19 MB / 0.619 GB, free: 111.8 MB / 462.1 MB Notification: Performance of SimCode: time 8.92e-07/0.8371, allocations: 0 / 0.619 GB, free: 111.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09012/0.9273, allocations: 68.7 MB / 0.6861 GB, free: 70.36 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001272/0.9274, allocations: 188 kB / 0.6862 GB, free: 70.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.756/4.683, allocations: 0 / 0.6862 GB, free: 70.12 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: