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.001266/0.001265, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00177/0.00177, allocations: 197.2 kB / 16.53 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.222/2.222, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.6242/0.6242, allocations: 15.3 MB / 305.7 MB, free: 15.29 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.00289/0.002891, allocations: 63.89 kB / 370.4 MB, free: 3.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2759, allocations: 53.61 MB / 424 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.02917/0.3052, allocations: 11.63 MB / 435.7 MB, free: 2.527 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.4266/0.732, allocations: 33.75 MB / 469.4 MB, free: 27.92 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003223/0.7352, allocations: 27.12 kB / 469.4 MB, free: 27.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003868/0.7391, allocations: 0.7524 MB / 470.2 MB, free: 27.48 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01431/0.7536, allocations: 2.759 MB / 473 MB, free: 25.8 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02161/0.7752, allocations: 4.419 MB / 477.4 MB, free: 23.2 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006852/0.7821, allocations: 3.398 MB / 480.8 MB, free: 21.52 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003145/0.7853, allocations: 2.079 MB / 482.9 MB, free: 20.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002835/0.7882, allocations: 1.649 MB / 484.5 MB, free: 19.96 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004002/0.7922, allocations: 1.853 MB / 486.4 MB, free: 19.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00105/0.7933, allocations: 322.1 kB / 486.7 MB, free: 19.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01757/0.8109, allocations: 3.725 MB / 490.4 MB, free: 18.24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001991/0.8129, allocations: 0.7494 MB / 491.1 MB, free: 17.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003584/0.8165, allocations: 1.583 MB / 492.7 MB, free: 16.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02137/0.8379, allocations: 7.212 MB / 499.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.598e-06/0.838, allocations: 1.062 kB / 499.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.838, allocations: 0 / 499.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001327/0.8381, allocations: 0 / 499.9 MB, free: 13.68 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.01041/0.8486, allocations: 3.695 MB / 0.4918 GB, free: 11.62 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.8486, allocations: 10.06 kB / 0.4918 GB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005023/0.8491, allocations: 359.2 kB / 0.4922 GB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002989/0.8521, allocations: 0.6221 MB / 0.4928 GB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003107/0.8552, allocations: 1.459 MB / 0.4942 GB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002244/0.8555, allocations: 258.7 kB / 0.4945 GB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005845/0.8561, allocations: 266 kB / 0.4947 GB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005434/0.8615, allocations: 3.127 MB / 0.4978 GB, free: 8.879 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.608e-05/0.8616, allocations: 0 / 0.4978 GB, free: 8.879 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002592/0.8619, allocations: 102.9 kB / 0.4979 GB, free: 8.801 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.553e-05/0.8619, allocations: 63.59 kB / 0.4979 GB, free: 8.801 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007871/0.8698, allocations: 3.842 MB / 0.5017 GB, free: 5.754 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.04141/0.9113, allocations: 9.956 MB / 0.5114 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01016/0.9215, allocations: 3.456 MB / 0.5148 GB, free: 7.852 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004795/0.9264, allocations: 1.336 MB / 0.5161 GB, free: 6.504 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03413/0.9606, allocations: 10.87 MB / 0.5267 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002526/0.961, allocations: 48.56 kB / 0.5267 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002699/0.9637, allocations: 198 kB / 0.5269 GB, free: 10.22 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 2.872e-05/0.9638, allocations: 3.938 kB / 0.5269 GB, free: 10.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=251): time 0.09733/1.061, allocations: 12.28 MB / 0.5389 GB, free: 13.78 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000163/1.061, allocations: 81.41 kB / 0.539 GB, free: 13.68 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003484/1.065, allocations: 1.168 MB / 0.5402 GB, free: 12.5 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001088/1.066, allocations: 65.7 kB / 0.5402 GB, free: 12.43 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00185/1.068, allocations: 1.153 MB / 0.5413 GB, free: 11.27 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002562/1.071, allocations: 0.8587 MB / 0.5422 GB, free: 10.39 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001979/1.073, allocations: 0.5611 MB / 0.5427 GB, free: 9.824 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00023/1.073, allocations: 305.1 kB / 0.543 GB, free: 9.523 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003721/1.077, allocations: 1.009 MB / 0.544 GB, free: 8.512 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006448/1.083, allocations: 1.897 MB / 0.5459 GB, free: 6.223 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01422/1.097, allocations: 3.208 MB / 0.549 GB, free: 2.594 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.268e-05/1.098, allocations: 12 kB / 0.549 GB, free: 2.582 MB / 414.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.02272/1.12, allocations: 4.125 MB / 0.553 GB, free: 14.39 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001611/1.121, allocations: 23.98 kB / 0.5531 GB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001419/1.121, allocations: 31.94 kB / 0.5531 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009312/1.13, allocations: 1.36 MB / 0.5544 GB, free: 12.96 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004636/1.135, allocations: 0.6474 MB / 0.555 GB, free: 12.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02314/1.158, allocations: 8.278 MB / 0.5631 GB, free: 3.605 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005699/1.164, allocations: 99.98 kB / 0.5632 GB, free: 3.508 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001707/1.166, allocations: 175.9 kB / 0.5634 GB, free: 3.336 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.003846/1.169, allocations: 0.5086 MB / 0.5639 GB, free: 2.816 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001485/1.171, allocations: 197.5 kB / 0.5641 GB, free: 2.621 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01971/1.191, allocations: 3.891 MB / 0.5679 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.276e-05/1.191, allocations: 28 kB / 0.5679 GB, free: 14.63 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.738e-05/1.191, allocations: 8 kB / 0.5679 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001244/1.191, allocations: 11.95 kB / 0.5679 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02961/1.221, allocations: 6.331 MB / 0.5741 GB, free: 8.125 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.339e-05/1.221, allocations: 7.984 kB / 0.5741 GB, free: 8.117 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003747/1.225, allocations: 431.4 kB / 0.5745 GB, free: 7.695 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009877/1.234, allocations: 1.276 MB / 0.5758 GB, free: 6.402 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00106/1.236, allocations: 95.94 kB / 0.5759 GB, free: 6.309 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01697/1.253, allocations: 7.788 MB / 0.5835 GB, free: 14.07 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.445e-05/1.253, allocations: 4 kB / 0.5835 GB, free: 14.07 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02892/1.282, allocations: 5.05 MB / 0.5884 GB, free: 8.867 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001663/1.283, allocations: 250.5 kB / 0.5886 GB, free: 8.602 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001695/1.285, allocations: 59.98 kB / 0.5887 GB, free: 8.543 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00395/1.289, allocations: 55.98 kB / 0.5887 GB, free: 8.488 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001533/1.291, allocations: 225.7 kB / 0.589 GB, free: 8.266 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009663/1.292, allocations: 115.9 kB / 0.5891 GB, free: 8.152 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003239/1.295, allocations: 0.7272 MB / 0.5898 GB, free: 7.426 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.172e-06/1.295, allocations: 0 / 0.5898 GB, free: 7.426 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01189/1.307, allocations: 1.479 MB / 0.5912 GB, free: 5.945 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.5334/1.84, allocations: 6.99 MB / 0.5981 GB, free: 136.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02274/1.863, allocations: 3.956 MB / 0.6019 GB, free: 136.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-05/1.863, allocations: 5.969 kB / 0.6019 GB, free: 136.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007938/1.871, allocations: 2.026 MB / 0.6039 GB, free: 135.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00531/1.877, allocations: 391.7 kB / 0.6043 GB, free: 135.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0921/1.969, allocations: 21.8 MB / 0.6256 GB, free: 124.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002946/1.972, allocations: 1.602 MB / 0.6271 GB, free: 123.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004846/1.977, allocations: 0.5034 MB / 0.6276 GB, free: 123.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003242/1.98, allocations: 1.194 MB / 0.6288 GB, free: 122.6 MB / 462.1 MB Notification: Performance of SimCode: time 3.297e-06/1.98, allocations: 0 / 0.6288 GB, free: 122.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4046/2.385, allocations: 72.84 MB / 0.6999 GB, free: 66.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 32.34/34.73, allocations: 18.17 kB / 0.6999 GB, free: 66.68 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.LeadAcidBattery_res.csv --start-time 0 --stop-time 47800 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 19.12 Chemical_Chemical_Examples_LeadAcidBattery.fmu > Chemical_Chemical.Examples.LeadAcidBattery.pipe 2>&1)