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.005753/0.005753, allocations: 103.1 kB / 15.73 MB, free: 6.047 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.001263/0.001263, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08196/0.08196, allocations: 15.31 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 60.12 kB / 424.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09512/0.09649, allocations: 53.61 MB / 478.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01253/0.1091, allocations: 11.65 MB / 489.9 MB, free: 10.57 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2606/0.3697, allocations: 33.73 MB / 0.5114 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001913/0.3717, allocations: 35.09 kB / 0.5114 GB, free: 2.703 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001907/0.3736, allocations: 0.7453 MB / 0.5122 GB, free: 2.703 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007476/0.3811, allocations: 2.764 MB / 0.5149 GB, free: 2.637 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01173/0.3929, allocations: 4.421 MB / 0.5192 GB, free: 1.512 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005856/0.3987, allocations: 3.417 MB / 0.5225 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003123/0.4019, allocations: 2.068 MB / 0.5245 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002862/0.4048, allocations: 1.652 MB / 0.5261 GB, free: 396 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004383/0.4092, allocations: 1.947 MB / 0.528 GB, free: 0 / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009561/0.4102, allocations: 322.7 kB / 0.5284 GB, free: 16 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01503/0.4252, allocations: 3.735 MB / 0.532 GB, free: 15.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001564/0.4268, allocations: 0.7571 MB / 0.5327 GB, free: 14.63 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00343/0.4303, allocations: 1.574 MB / 0.5343 GB, free: 13.72 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01753/0.4478, allocations: 7.261 MB / 0.5414 GB, free: 9.953 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.4478, allocations: 0 / 0.5414 GB, free: 9.953 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.4478, allocations: 0 / 0.5414 GB, free: 9.953 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001519/0.448, allocations: 0 / 0.5414 GB, free: 9.953 MB / 398.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.008863/0.4569, allocations: 3.699 MB / 0.545 GB, free: 7.512 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.4569, allocations: 8.969 kB / 0.545 GB, free: 7.512 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007157/0.4577, allocations: 360.8 kB / 0.5453 GB, free: 7.172 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002936/0.4606, allocations: 0.6182 MB / 0.5459 GB, free: 6.551 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003052/0.4637, allocations: 1.489 MB / 0.5474 GB, free: 5.031 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002523/0.4639, allocations: 257.4 kB / 0.5476 GB, free: 4.766 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006926/0.4646, allocations: 267.8 kB / 0.5479 GB, free: 4.504 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006568/0.4712, allocations: 3.12 MB / 0.5509 GB, free: 1.312 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.46e-05/0.4713, allocations: 0 / 0.5509 GB, free: 1.312 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000357/0.4717, allocations: 108 kB / 0.551 GB, free: 1.207 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-05/0.4717, allocations: 68 kB / 0.5511 GB, free: 1.141 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006562/0.4783, allocations: 3.842 MB / 0.5549 GB, free: 13.29 MB / 414.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.01784/0.4962, allocations: 9.879 MB / 0.5645 GB, free: 3.156 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004908/0.5011, allocations: 3.46 MB / 0.5679 GB, free: 15.57 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002042/0.5032, allocations: 1.337 MB / 0.5692 GB, free: 14.22 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01591/0.5191, allocations: 10.85 MB / 0.5798 GB, free: 2.305 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.529e-05/0.5192, allocations: 52.56 kB / 0.5798 GB, free: 2.246 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009401/0.5201, allocations: 204.8 kB / 0.58 GB, free: 2.047 MB / 430.1 MB Notification: Performance of pre-optimization done (n=177): time 5.771e-06/0.5201, allocations: 0 / 0.58 GB, free: 2.047 MB / 430.1 MB Notification: Performance of matching and sorting (n=251): time 0.04813/0.5683, allocations: 12.28 MB / 0.592 GB, free: 5.641 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.75e-05/0.5683, allocations: 77.41 kB / 0.5921 GB, free: 5.555 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001755/0.5701, allocations: 1.179 MB / 0.5932 GB, free: 4.363 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003275/0.5705, allocations: 69.7 kB / 0.5933 GB, free: 4.289 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007962/0.5713, allocations: 1.146 MB / 0.5944 GB, free: 3.137 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001032/0.5723, allocations: 0.8581 MB / 0.5953 GB, free: 2.285 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001247/0.5736, allocations: 0.5572 MB / 0.5958 GB, free: 1.719 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.5737, allocations: 301.1 kB / 0.5961 GB, free: 1.422 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002066/0.5758, allocations: 1.021 MB / 0.5971 GB, free: 408 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002674/0.5785, allocations: 1.902 MB / 0.599 GB, free: 14.11 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005125/0.5836, allocations: 3.197 MB / 0.6021 GB, free: 10.49 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-05/0.5837, allocations: 8 kB / 0.6021 GB, free: 10.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01109/0.5948, allocations: 4.129 MB / 0.6061 GB, free: 6.289 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.282e-05/0.5948, allocations: 16.38 kB / 0.6061 GB, free: 6.273 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.472e-05/0.5949, allocations: 35.94 kB / 0.6062 GB, free: 6.238 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006436/0.6013, allocations: 1.362 MB / 0.6075 GB, free: 4.863 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002594/0.604, allocations: 0.6513 MB / 0.6081 GB, free: 4.211 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01195/0.6159, allocations: 8.275 MB / 0.6162 GB, free: 11.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002577/0.6186, allocations: 104 kB / 0.6163 GB, free: 11.39 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006076/0.6192, allocations: 171.9 kB / 0.6165 GB, free: 11.23 MB / 478.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.001382/0.6206, allocations: 0.5047 MB / 0.617 GB, free: 10.71 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006751/0.6213, allocations: 193.6 kB / 0.6172 GB, free: 10.52 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01094/0.6322, allocations: 3.898 MB / 0.621 GB, free: 6.543 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.527e-05/0.6323, allocations: 28 kB / 0.621 GB, free: 6.516 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.457e-05/0.6323, allocations: 4 kB / 0.621 GB, free: 6.512 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-05/0.6323, allocations: 15.95 kB / 0.621 GB, free: 6.496 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01486/0.6472, allocations: 6.335 MB / 0.6272 GB, free: 68 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.597e-05/0.6472, allocations: 4.062 kB / 0.6272 GB, free: 64 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002051/0.6493, allocations: 431.4 kB / 0.6276 GB, free: 15.64 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00595/0.6553, allocations: 1.272 MB / 0.6289 GB, free: 14.35 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004787/0.6558, allocations: 95.94 kB / 0.6289 GB, free: 14.26 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009877/0.6657, allocations: 7.776 MB / 0.6365 GB, free: 6.047 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/0.6657, allocations: 7.938 kB / 0.6365 GB, free: 6.039 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0129/0.6786, allocations: 5.046 MB / 0.6415 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008521/0.6795, allocations: 258.5 kB / 0.6417 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007251/0.6803, allocations: 52 kB / 0.6418 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001736/0.682, allocations: 55.98 kB / 0.6418 GB, free: 476 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005954/0.6827, allocations: 229.7 kB / 0.642 GB, free: 244 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000317/0.683, allocations: 108.1 kB / 0.6421 GB, free: 136 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00116/0.6842, allocations: 0.739 MB / 0.6429 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6842, allocations: 3.938 kB / 0.6429 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004621/0.6888, allocations: 1.476 MB / 0.6443 GB, free: 13.91 MB / 0.4981 GB 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.01614/0.705, allocations: 7.012 MB / 0.6512 GB, free: 6.93 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00776/0.7128, allocations: 3.497 MB / 0.6546 GB, free: 3.344 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/0.7128, allocations: 0 / 0.6546 GB, free: 3.344 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004144/0.717, allocations: 2.039 MB / 0.6566 GB, free: 1.242 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002602/0.7196, allocations: 392.2 kB / 0.6569 GB, free: 0.8555 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04412/0.7637, allocations: 20.12 MB / 0.6766 GB, free: 11.61 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001766/0.7655, allocations: 1.595 MB / 0.6781 GB, free: 9.984 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002362/0.7679, allocations: 0.5085 MB / 0.6786 GB, free: 9.473 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001895/0.7698, allocations: 1.184 MB / 0.6798 GB, free: 8.297 MB / 0.5294 GB Notification: Performance of SimCode: time 1.052e-06/0.7699, allocations: 0 / 0.6798 GB, free: 8.297 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3837/1.154, allocations: 74.76 MB / 0.7528 GB, free: 197 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.68/25.83, allocations: 8.672 kB / 0.7528 GB, free: 197 MB / 0.5606 GB (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)