Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.LeadAcidBattery.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Chemical with version 1.4.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: translateModel(Chemical.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.LeadAcidBattery") translateModel(Chemical.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.LeadAcidBattery") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.09975/0.09975, allocations: 15.28 MB / 30.53 MB, free: 3.199 MB / 24.77 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000985/0.0009847, allocations: 191.5 kB / 35.63 MB, free: 2.25 MB / 24.77 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.541/1.541, allocations: 225.7 MB / 266.3 MB, free: 6.082 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008423/0.0008424, allocations: 99.25 kB / 321.7 MB, free: 2.195 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003449/0.0003449, allocations: 8.094 kB / 387 MB, free: 50.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09876/0.09912, allocations: 54.64 MB / 441.7 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01177/0.1109, allocations: 11.94 MB / 453.6 MB, free: 2.875 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0406/0.1516, allocations: 41.5 MB / 495.1 MB, free: 6.855 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003184/0.1548, allocations: 51.62 kB / 495.2 MB, free: 6.805 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002402/0.1572, allocations: 0.6754 MB / 495.8 MB, free: 6.125 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009123/0.1664, allocations: 2.364 MB / 498.2 MB, free: 3.746 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01986/0.1863, allocations: 3.882 MB / 0.4903 GB, free: 15.84 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.009605/0.1959, allocations: 3.289 MB / 0.4935 GB, free: 12.54 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004532/0.2005, allocations: 1.685 MB / 0.4952 GB, free: 10.81 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004154/0.2047, allocations: 1.46 MB / 0.4966 GB, free: 9.344 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004639/0.2094, allocations: 1.705 MB / 0.4983 GB, free: 7.633 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001097/0.2105, allocations: 168 kB / 0.4984 GB, free: 7.469 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01778/0.2284, allocations: 3.404 MB / 0.5017 GB, free: 4.059 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001737/0.2301, allocations: 0.6072 MB / 0.5023 GB, free: 3.449 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003707/0.2339, allocations: 1.428 MB / 0.5037 GB, free: 2.008 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2493/0.4832, allocations: 6.631 MB / 0.5102 GB, free: 30.09 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.4833, allocations: 0 / 0.5102 GB, free: 30.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.975e-06/0.4833, allocations: 0.5625 kB / 0.5102 GB, free: 30.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000159/0.4835, allocations: 2.031 kB / 0.5102 GB, free: 30.09 MB / 378.7 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.01297/0.4965, allocations: 3.045 MB / 0.5132 GB, free: 28.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.92e-05/0.4965, allocations: 11.31 kB / 0.5132 GB, free: 28.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005333/0.5019, allocations: 0.6172 MB / 0.5138 GB, free: 28.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005595/0.5075, allocations: 1.419 MB / 0.5152 GB, free: 28.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005661/0.5081, allocations: 260.8 kB / 0.5154 GB, free: 27.94 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001533/0.5097, allocations: 265.8 kB / 0.5157 GB, free: 27.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01207/0.5218, allocations: 3.101 MB / 0.5187 GB, free: 27.72 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001147/0.5219, allocations: 1.438 kB / 0.5187 GB, free: 27.72 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008169/0.5228, allocations: 112.7 kB / 0.5188 GB, free: 27.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001146/0.5229, allocations: 63.44 kB / 0.5189 GB, free: 27.72 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0128/0.5357, allocations: 3.826 MB / 0.5226 GB, free: 27.69 MB / 378.7 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.02999/0.5658, allocations: 9.867 MB / 0.5323 GB, free: 24.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007761/0.5736, allocations: 3.45 MB / 0.5356 GB, free: 23.93 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003411/0.577, allocations: 1.326 MB / 0.5369 GB, free: 23.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01696/0.594, allocations: 10.65 MB / 0.5473 GB, free: 16.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.563e-05/0.5941, allocations: 52 kB / 0.5474 GB, free: 16.82 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001013/0.5951, allocations: 208.3 kB / 0.5476 GB, free: 16.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=177): time 7.625e-06/0.5951, allocations: 6.219 kB / 0.5476 GB, free: 16.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=251): time 0.04308/0.6382, allocations: 12.37 MB / 0.5597 GB, free: 10.31 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.6383, allocations: 84.48 kB / 0.5597 GB, free: 10.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001194/0.6395, allocations: 1.162 MB / 0.5609 GB, free: 9.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002331/0.6397, allocations: 72.52 kB / 0.5609 GB, free: 9.277 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000448/0.6402, allocations: 1.144 MB / 0.5621 GB, free: 8.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005137/0.6407, allocations: 0.8638 MB / 0.5629 GB, free: 7.676 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001469/0.6408, allocations: 60.94 kB / 0.563 GB, free: 7.664 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.641, allocations: 424.3 kB / 0.5634 GB, free: 7.289 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001506/0.6425, allocations: 0.9965 MB / 0.5643 GB, free: 6.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001746/0.6442, allocations: 1.889 MB / 0.5662 GB, free: 4.828 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003557/0.6478, allocations: 3.17 MB / 0.5693 GB, free: 2.383 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.447e-05/0.6478, allocations: 8 kB / 0.5693 GB, free: 2.375 MB / 378.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.009145/0.657, allocations: 4.107 MB / 0.5733 GB, free: 15.52 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.93e-05/0.657, allocations: 16 kB / 0.5733 GB, free: 15.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.336e-05/0.6571, allocations: 28 kB / 0.5733 GB, free: 15.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006114/0.6632, allocations: 1.372 MB / 0.5747 GB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002689/0.6659, allocations: 0.6518 MB / 0.5753 GB, free: 13.49 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01085/0.6768, allocations: 7.711 MB / 0.5828 GB, free: 5.387 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003002/0.6798, allocations: 167.8 kB / 0.583 GB, free: 5.223 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005447/0.6804, allocations: 175.9 kB / 0.5832 GB, free: 5.051 MB / 394.7 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.001285/0.6817, allocations: 0.5099 MB / 0.5837 GB, free: 4.574 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004539/0.6821, allocations: 193.6 kB / 0.5839 GB, free: 4.383 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01008/0.6922, allocations: 3.888 MB / 0.5877 GB, free: 444 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.038e-05/0.6923, allocations: 38.02 kB / 0.5877 GB, free: 408 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.6923, allocations: 4 kB / 0.5877 GB, free: 404 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.891e-05/0.6924, allocations: 11.95 kB / 0.5877 GB, free: 392 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01361/0.706, allocations: 6.325 MB / 0.5939 GB, free: 10 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.425e-05/0.706, allocations: 4 kB / 0.5939 GB, free: 10 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00193/0.7079, allocations: 428.5 kB / 0.5943 GB, free: 9.602 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00584/0.7138, allocations: 1.296 MB / 0.5956 GB, free: 8.297 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003703/0.7142, allocations: 99.94 kB / 0.5957 GB, free: 8.199 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009978/0.7242, allocations: 7.221 MB / 0.6027 GB, free: 0.582 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/0.7242, allocations: 7.281 kB / 0.6027 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02244/0.7467, allocations: 5.029 MB / 0.6076 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001124/0.7479, allocations: 258.5 kB / 0.6079 GB, free: 11.15 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000993/0.7489, allocations: 48 kB / 0.6079 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003183/0.7521, allocations: 103.6 kB / 0.608 GB, free: 11.01 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001127/0.7533, allocations: 225.7 kB / 0.6082 GB, free: 10.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005633/0.7538, allocations: 111.9 kB / 0.6083 GB, free: 10.68 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002038/0.7559, allocations: 0.7194 MB / 0.609 GB, free: 9.957 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7559, allocations: 6.188 kB / 0.609 GB, free: 9.953 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008282/0.7642, allocations: 1.437 MB / 0.6104 GB, free: 8.516 MB / 426.7 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.006191/0.7705, allocations: 1.463 MB / 0.6119 GB, free: 7.258 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01279/0.7833, allocations: 3.482 MB / 0.6153 GB, free: 3.789 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.576e-06/0.7834, allocations: 0 / 0.6153 GB, free: 3.789 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007038/0.7904, allocations: 2.017 MB / 0.6172 GB, free: 1.758 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004678/0.7951, allocations: 377.4 kB / 0.6176 GB, free: 1.391 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01621/0.8114, allocations: 6.052 MB / 0.6235 GB, free: 11.27 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002186/0.8136, allocations: 1.599 MB / 0.6251 GB, free: 9.641 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005395/0.819, allocations: 0.5031 MB / 0.6256 GB, free: 9.137 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001684/0.8207, allocations: 344.4 kB / 0.6259 GB, free: 8.805 MB / 442.7 MB Notification: Performance of SimCode: time 1.603e-06/0.8208, allocations: 0 / 0.6259 GB, free: 8.805 MB / 442.7 MB Notification: Performance of Templates: time 0.1493/0.9701, allocations: 51.64 MB / 0.6763 GB, free: 5.496 MB / 490.7 MB make -j1 -f Chemical_Chemical.Examples.LeadAcidBattery.makefile (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 & ./Chemical_Chemical.Examples.LeadAcidBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.LeadAcidBattery.pipe 2>&1)