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.008841/0.008841, allocations: 96.69 kB / 15.73 MB, free: 6.043 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.002056/0.002056, allocations: 195.4 kB / 16.68 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.498/1.498, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2189/0.2189, allocations: 15.32 MB / 305.9 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 60.12 kB / 424.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2707, allocations: 53.62 MB / 478.3 MB, free: 25.6 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.009681/0.2804, allocations: 11.63 MB / 490 MB, free: 17.07 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0326/0.3131, allocations: 33.75 MB / 0.5114 GB, free: 5.121 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002079/0.3152, allocations: 27.81 kB / 0.5115 GB, free: 5.094 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002628/0.3178, allocations: 0.744 MB / 0.5122 GB, free: 4.348 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00894/0.3268, allocations: 2.762 MB / 0.5149 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01329/0.3401, allocations: 4.427 MB / 0.5192 GB, free: 13.11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005498/0.3457, allocations: 3.421 MB / 0.5225 GB, free: 9.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00267/0.3484, allocations: 2.078 MB / 0.5246 GB, free: 7.555 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002149/0.3505, allocations: 1.648 MB / 0.5262 GB, free: 5.902 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002516/0.3531, allocations: 1.869 MB / 0.528 GB, free: 4.027 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005239/0.3536, allocations: 324 kB / 0.5283 GB, free: 3.711 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01228/0.3659, allocations: 3.721 MB / 0.532 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009848/0.3669, allocations: 0.7517 MB / 0.5327 GB, free: 15.23 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002107/0.369, allocations: 1.579 MB / 0.5342 GB, free: 13.64 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01729/0.3863, allocations: 7.28 MB / 0.5413 GB, free: 6.336 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.3864, allocations: 4 kB / 0.5413 GB, free: 6.332 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3864, allocations: 0 / 0.5413 GB, free: 6.332 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.677e-05/0.3865, allocations: 0 / 0.5413 GB, free: 6.332 MB / 414.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.007813/0.3943, allocations: 3.792 MB / 0.545 GB, free: 2.469 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.3943, allocations: 8.031 kB / 0.5451 GB, free: 2.461 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004413/0.3948, allocations: 363.2 kB / 0.5454 GB, free: 2.098 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002671/0.3975, allocations: 0.6308 MB / 0.546 GB, free: 1.465 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002809/0.4003, allocations: 1.502 MB / 0.5475 GB, free: 15.91 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002377/0.4005, allocations: 252.8 kB / 0.5477 GB, free: 15.65 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004847/0.401, allocations: 275.9 kB / 0.548 GB, free: 15.38 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005291/0.4063, allocations: 3.124 MB / 0.551 GB, free: 12.19 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.202e-05/0.4064, allocations: 3.938 kB / 0.551 GB, free: 12.18 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00026/0.4067, allocations: 108 kB / 0.5511 GB, free: 12.08 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-05/0.4067, allocations: 64 kB / 0.5512 GB, free: 12.02 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006288/0.413, allocations: 3.838 MB / 0.555 GB, free: 8.164 MB / 430.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.01674/0.4298, allocations: 9.898 MB / 0.5646 GB, free: 13.88 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005087/0.4349, allocations: 3.481 MB / 0.568 GB, free: 10.27 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002104/0.437, allocations: 1.337 MB / 0.5693 GB, free: 8.922 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01658/0.4536, allocations: 10.86 MB / 0.5799 GB, free: 12.91 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.035e-05/0.4537, allocations: 52.56 kB / 0.58 GB, free: 12.85 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008711/0.4546, allocations: 210.5 kB / 0.5802 GB, free: 12.64 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 6.051e-06/0.4546, allocations: 4 kB / 0.5802 GB, free: 12.64 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.04825/0.5029, allocations: 12.32 MB / 0.5922 GB, free: 168 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.987e-05/0.503, allocations: 77.41 kB / 0.5923 GB, free: 80 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001553/0.5045, allocations: 1.176 MB / 0.5934 GB, free: 14.89 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003239/0.5049, allocations: 69.7 kB / 0.5935 GB, free: 14.81 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001004/0.5059, allocations: 1.18 MB / 0.5947 GB, free: 13.62 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001022/0.5069, allocations: 0.9025 MB / 0.5955 GB, free: 12.71 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008687/0.5078, allocations: 0.5652 MB / 0.5961 GB, free: 12.14 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.5079, allocations: 305.1 kB / 0.5964 GB, free: 11.84 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001868/0.5098, allocations: 1.009 MB / 0.5974 GB, free: 10.83 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002632/0.5124, allocations: 1.905 MB / 0.5992 GB, free: 8.531 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00516/0.5176, allocations: 3.204 MB / 0.6024 GB, free: 4.906 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-05/0.5177, allocations: 8 kB / 0.6024 GB, free: 4.898 MB / 478.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01083/0.5285, allocations: 4.142 MB / 0.6064 GB, free: 0.6914 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.585e-05/0.5286, allocations: 16 kB / 0.6064 GB, free: 0.6758 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-05/0.5286, allocations: 28 kB / 0.6064 GB, free: 0.6484 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2333/0.7619, allocations: 1.351 MB / 0.6078 GB, free: 119.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002706/0.7647, allocations: 0.6525 MB / 0.6084 GB, free: 119.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01146/0.7762, allocations: 8.275 MB / 0.6165 GB, free: 114.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002507/0.7787, allocations: 97.78 kB / 0.6166 GB, free: 114.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004086/0.7791, allocations: 172.3 kB / 0.6167 GB, free: 114.1 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.001123/0.7803, allocations: 0.5107 MB / 0.6172 GB, free: 113.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004847/0.7808, allocations: 205 kB / 0.6174 GB, free: 113.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0103/0.7911, allocations: 3.895 MB / 0.6212 GB, free: 112.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.868e-05/0.7911, allocations: 30.19 kB / 0.6213 GB, free: 112.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.468e-05/0.7912, allocations: 3.812 kB / 0.6213 GB, free: 112.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.071e-05/0.7912, allocations: 14.34 kB / 0.6213 GB, free: 112.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01278/0.804, allocations: 6.336 MB / 0.6275 GB, free: 109.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.364e-05/0.804, allocations: 6.5 kB / 0.6275 GB, free: 109.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00182/0.8059, allocations: 436.1 kB / 0.6279 GB, free: 109.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005576/0.8115, allocations: 1.263 MB / 0.6291 GB, free: 109.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003516/0.8118, allocations: 98.73 kB / 0.6292 GB, free: 109.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009662/0.8215, allocations: 7.79 MB / 0.6368 GB, free: 103.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.8216, allocations: 6.688 kB / 0.6368 GB, free: 103.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01228/0.8339, allocations: 5.047 MB / 0.6418 GB, free: 100.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004944/0.8344, allocations: 263.9 kB / 0.642 GB, free: 100.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000293/0.8347, allocations: 51.81 kB / 0.6421 GB, free: 100.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001279/0.836, allocations: 63.3 kB / 0.6421 GB, free: 100.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000465/0.8365, allocations: 224.9 kB / 0.6423 GB, free: 100 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001823/0.8366, allocations: 112.8 kB / 0.6424 GB, free: 100 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008144/0.8375, allocations: 0.7304 MB / 0.6432 GB, free: 99.59 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8375, allocations: 0 / 0.6432 GB, free: 99.59 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003654/0.8411, allocations: 1.501 MB / 0.6446 GB, free: 99.41 MB / 478.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.01202/0.8532, allocations: 7.025 MB / 0.6515 GB, free: 94.87 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005535/0.8587, allocations: 3.511 MB / 0.6549 GB, free: 91.27 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.8588, allocations: 0 / 0.6549 GB, free: 91.27 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002803/0.8616, allocations: 2.033 MB / 0.6569 GB, free: 89.18 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001722/0.8633, allocations: 397 kB / 0.6573 GB, free: 88.79 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03135/0.8947, allocations: 20.24 MB / 0.677 GB, free: 67.47 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008433/0.8956, allocations: 1.596 MB / 0.6786 GB, free: 65.84 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001655/0.8972, allocations: 0.5054 MB / 0.6791 GB, free: 65.34 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001229/0.8985, allocations: 1.185 MB / 0.6803 GB, free: 64.16 MB / 478.1 MB Notification: Performance of SimCode: time 7.22e-07/0.8985, allocations: 0 / 0.6803 GB, free: 64.16 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.114/1.012, allocations: 73.62 MB / 0.7521 GB, free: 6.809 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.21/26.23, allocations: 14.72 kB / 0.7522 GB, free: 6.797 MB / 494.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)