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.005964/0.005964, allocations: 103.7 kB / 15.74 MB, free: 5.988 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.001241/0.001241, allocations: 190.1 kB / 16.67 MB, free: 5.914 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08226/0.08226, allocations: 15.31 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 64.12 kB / 424.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.104, allocations: 53.61 MB / 478.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01198/0.116, allocations: 11.65 MB / 489.9 MB, free: 10.58 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2565/0.3726, allocations: 33.73 MB / 0.5114 GB, free: 2.746 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002532/0.3751, allocations: 27.97 kB / 0.5114 GB, free: 2.746 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002628/0.3778, allocations: 0.7524 MB / 0.5122 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009755/0.3876, allocations: 2.787 MB / 0.5149 GB, free: 2.676 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01457/0.4022, allocations: 4.45 MB / 0.5192 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008552/0.4108, allocations: 3.423 MB / 0.5226 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003909/0.4148, allocations: 2.068 MB / 0.5246 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004252/0.4191, allocations: 1.659 MB / 0.5262 GB, free: 376 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005523/0.4246, allocations: 1.952 MB / 0.5281 GB, free: 0 / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001066/0.4257, allocations: 321.7 kB / 0.5284 GB, free: 0 / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01647/0.4422, allocations: 3.731 MB / 0.5321 GB, free: 15.1 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001686/0.4439, allocations: 0.7564 MB / 0.5328 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002813/0.4468, allocations: 1.581 MB / 0.5344 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01917/0.466, allocations: 7.256 MB / 0.5414 GB, free: 9.945 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.121e-05/0.466, allocations: 3.984 kB / 0.5414 GB, free: 9.941 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.466, allocations: 0 / 0.5414 GB, free: 9.941 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001212/0.4662, allocations: 4 kB / 0.5414 GB, free: 9.938 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.008997/0.4752, allocations: 3.691 MB / 0.545 GB, free: 7.496 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.4752, allocations: 12.03 kB / 0.5451 GB, free: 7.484 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003975/0.4756, allocations: 359.2 kB / 0.5454 GB, free: 7.125 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002713/0.4784, allocations: 0.6215 MB / 0.546 GB, free: 6.5 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002856/0.4812, allocations: 1.488 MB / 0.5475 GB, free: 4.984 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002351/0.4815, allocations: 257.4 kB / 0.5477 GB, free: 4.719 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004367/0.4819, allocations: 267.8 kB / 0.548 GB, free: 4.457 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004923/0.4869, allocations: 3.12 MB / 0.551 GB, free: 1.266 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.769e-05/0.4869, allocations: 0 / 0.551 GB, free: 1.266 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002434/0.4872, allocations: 108 kB / 0.5511 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.601e-05/0.4872, allocations: 64 kB / 0.5512 GB, free: 1.098 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006355/0.4936, allocations: 3.846 MB / 0.5549 GB, free: 13.24 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.01667/0.5103, allocations: 9.873 MB / 0.5646 GB, free: 3.113 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004694/0.515, allocations: 3.459 MB / 0.568 GB, free: 15.52 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002078/0.5171, allocations: 1.337 MB / 0.5693 GB, free: 14.18 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01532/0.5324, allocations: 10.85 MB / 0.5799 GB, free: 2.262 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.897e-05/0.5325, allocations: 52.56 kB / 0.5799 GB, free: 2.203 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000884/0.5334, allocations: 212.8 kB / 0.5801 GB, free: 1.996 MB / 430.1 MB Notification: Performance of pre-optimization done (n=177): time 4.97e-06/0.5334, allocations: 0 / 0.5801 GB, free: 1.996 MB / 430.1 MB Notification: Performance of matching and sorting (n=251): time 0.04823/0.5816, allocations: 12.27 MB / 0.5921 GB, free: 5.598 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.512e-05/0.5817, allocations: 77.41 kB / 0.5922 GB, free: 5.512 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001629/0.5834, allocations: 1.175 MB / 0.5933 GB, free: 4.324 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003387/0.5837, allocations: 69.7 kB / 0.5934 GB, free: 4.25 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000794/0.5845, allocations: 1.153 MB / 0.5945 GB, free: 3.094 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009095/0.5855, allocations: 0.8617 MB / 0.5953 GB, free: 2.238 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001118/0.5866, allocations: 0.5611 MB / 0.5959 GB, free: 1.668 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.43e-05/0.5867, allocations: 305.1 kB / 0.5962 GB, free: 1.367 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001906/0.5886, allocations: 1.006 MB / 0.5972 GB, free: 368 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00261/0.5912, allocations: 1.906 MB / 0.599 GB, free: 14.07 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004868/0.5961, allocations: 3.201 MB / 0.6022 GB, free: 10.45 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.713e-05/0.5961, allocations: 8 kB / 0.6022 GB, free: 10.44 MB / 462.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01085/0.607, allocations: 4.129 MB / 0.6062 GB, free: 6.242 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.329e-05/0.6071, allocations: 16 kB / 0.6062 GB, free: 6.227 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.23e-05/0.6071, allocations: 31.94 kB / 0.6062 GB, free: 6.195 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006282/0.6134, allocations: 1.36 MB / 0.6076 GB, free: 4.828 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0026/0.616, allocations: 0.6553 MB / 0.6082 GB, free: 4.172 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01195/0.628, allocations: 8.269 MB / 0.6163 GB, free: 11.45 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002538/0.6306, allocations: 95.98 kB / 0.6164 GB, free: 11.36 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005854/0.6312, allocations: 171.9 kB / 0.6165 GB, free: 11.19 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.001552/0.6328, allocations: 0.5164 MB / 0.617 GB, free: 10.66 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005926/0.6334, allocations: 193.6 kB / 0.6172 GB, free: 10.47 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01056/0.6439, allocations: 3.894 MB / 0.621 GB, free: 6.504 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-05/0.644, allocations: 24 kB / 0.6211 GB, free: 6.48 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.751e-05/0.644, allocations: 4 kB / 0.6211 GB, free: 6.477 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.913e-05/0.6441, allocations: 15.94 kB / 0.6211 GB, free: 6.461 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01496/0.6591, allocations: 6.329 MB / 0.6273 GB, free: 36 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.218e-05/0.6591, allocations: 7.938 kB / 0.6273 GB, free: 28 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002109/0.6612, allocations: 435.8 kB / 0.6277 GB, free: 15.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006096/0.6674, allocations: 1.268 MB / 0.6289 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005085/0.6679, allocations: 95.94 kB / 0.629 GB, free: 14.22 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01039/0.6783, allocations: 7.787 MB / 0.6366 GB, free: 6.004 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.261e-06/0.6783, allocations: 7.938 kB / 0.6366 GB, free: 5.996 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01257/0.6909, allocations: 5.038 MB / 0.6415 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005567/0.6915, allocations: 254.5 kB / 0.6418 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005011/0.692, allocations: 56 kB / 0.6418 GB, free: 496 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00162/0.6937, allocations: 56.17 kB / 0.6419 GB, free: 440 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005817/0.6943, allocations: 233.7 kB / 0.6421 GB, free: 204 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00029/0.6946, allocations: 115.9 kB / 0.6422 GB, free: 88 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001256/0.6958, allocations: 0.7312 MB / 0.6429 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.7e-07/0.6958, allocations: 0 / 0.6429 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00523/0.7011, allocations: 1.476 MB / 0.6444 GB, free: 13.88 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.01591/0.717, allocations: 7.007 MB / 0.6512 GB, free: 6.895 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007213/0.7242, allocations: 3.5 MB / 0.6546 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.7243, allocations: 5 kB / 0.6546 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003862/0.7281, allocations: 2.032 MB / 0.6566 GB, free: 1.207 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002215/0.7304, allocations: 395.2 kB / 0.657 GB, free: 0.8203 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04258/0.773, allocations: 20.13 MB / 0.6767 GB, free: 11.56 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001513/0.7745, allocations: 1.595 MB / 0.6782 GB, free: 9.934 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00206/0.7766, allocations: 0.5047 MB / 0.6787 GB, free: 9.426 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001736/0.7784, allocations: 1.189 MB / 0.6799 GB, free: 8.246 MB / 0.5294 GB Notification: Performance of SimCode: time 1.052e-06/0.7784, allocations: 0 / 0.6799 GB, free: 8.246 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3854/1.164, allocations: 73.61 MB / 0.7518 GB, free: 197.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.21/26.37, allocations: 6.359 kB / 0.7518 GB, free: 197.5 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)