Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008792/0.0008792, allocations: 80.94 kB / 19.94 MB, free: 4.543 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 177.4 kB / 23.36 MB, free: 1.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.999/0.999, allocations: 177.2 MB / 203.8 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1056/0.1056, allocations: 17.47 MB / 277.7 MB, free: 11.44 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Chemical.Obsolete.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery") translateModel(Chemical.Obsolete.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 300.8 MB, free: 1.715 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.108e-05/2.265e-05, allocations: 3.406 kB / 300.8 MB, free: 1.711 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.009173/0.009196, allocations: 11.33 MB / 312.1 MB, free: 8.738 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02553/0.03473, allocations: 31.12 MB / 343.2 MB, free: 9.492 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001641/0.03637, allocations: 35.69 kB / 343.3 MB, free: 9.457 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001493/0.03786, allocations: 0.6742 MB / 343.9 MB, free: 8.777 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005931/0.04379, allocations: 2.776 MB / 346.7 MB, free: 5.98 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008195/0.05199, allocations: 4.208 MB / 350.9 MB, free: 1.746 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004032/0.05602, allocations: 3.533 MB / 354.5 MB, free: 14.2 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001993/0.05801, allocations: 1.76 MB / 356.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002396/0.06041, allocations: 2.41 MB / 358.6 MB, free: 9.961 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002021/0.06243, allocations: 1.578 MB / 360.2 MB, free: 8.379 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005765/0.06301, allocations: 320 kB / 360.5 MB, free: 8.066 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006972/0.06998, allocations: 3.439 MB / 364 MB, free: 4.621 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007219/0.0707, allocations: 0.7789 MB / 364.7 MB, free: 3.84 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001545/0.07225, allocations: 1.173 MB / 365.9 MB, free: 2.664 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01092/0.08317, allocations: 6.44 MB / 372.4 MB, free: 12.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.08317, allocations: 0 / 372.4 MB, free: 12.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.08318, allocations: 0 / 372.4 MB, free: 12.2 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.982e-05/0.08325, allocations: 0 / 372.4 MB, free: 12.2 MB / 346.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.004244/0.08749, allocations: 3.625 MB / 376 MB, free: 8.527 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.08752, allocations: 16.03 kB / 376 MB, free: 8.512 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001762/0.08929, allocations: 0.95 MB / 377 MB, free: 7.559 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00124/0.09053, allocations: 0.9796 MB / 377.9 MB, free: 6.547 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001578/0.09068, allocations: 304.6 kB / 378.2 MB, free: 6.223 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002622/0.09095, allocations: 280.3 kB / 378.5 MB, free: 5.949 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002213/0.09316, allocations: 2.301 MB / 380.8 MB, free: 3.566 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.464e-05/0.09319, allocations: 0 / 380.8 MB, free: 3.566 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001562/0.09335, allocations: 108 kB / 380.9 MB, free: 3.461 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.089e-05/0.09338, allocations: 64 kB / 381 MB, free: 3.398 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002169/0.09555, allocations: 1.921 MB / 382.9 MB, free: 1.445 MB / 346.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.007871/0.1034, allocations: 5.916 MB / 388.8 MB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002173/0.1056, allocations: 2.261 MB / 391.1 MB, free: 9.121 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000595/0.1062, allocations: 0.5866 MB / 391.7 MB, free: 8.527 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008826/0.115, allocations: 4.999 MB / 396.7 MB, free: 3.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.079e-05/0.1151, allocations: 48.56 kB / 396.7 MB, free: 3.445 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005858/0.1156, allocations: 218.6 kB / 396.9 MB, free: 3.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=177): time 4.779e-06/0.1156, allocations: 0 / 396.9 MB, free: 3.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=251): time 0.02626/0.1419, allocations: 9.061 MB / 406 MB, free: 10.12 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.769e-05/0.142, allocations: 81.41 kB / 406.1 MB, free: 10.03 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009024/0.1429, allocations: 1.025 MB / 407.1 MB, free: 8.984 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001315/0.143, allocations: 69.69 kB / 407.1 MB, free: 8.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000782/0.1438, allocations: 1.056 MB / 408.2 MB, free: 7.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006051/0.1444, allocations: 0.8985 MB / 409.1 MB, free: 6.934 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006721/0.145, allocations: 0.5611 MB / 409.7 MB, free: 6.363 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.405e-05/0.1451, allocations: 301.1 kB / 410 MB, free: 6.066 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006729/0.1458, allocations: 406.2 kB / 410.4 MB, free: 5.664 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00113/0.1469, allocations: 1.299 MB / 411.7 MB, free: 3.973 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002316/0.1492, allocations: 2.093 MB / 413.7 MB, free: 1.457 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.991e-05/0.1493, allocations: 8 kB / 413.8 MB, free: 1.449 MB / 378.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.005179/0.1544, allocations: 2.338 MB / 416.1 MB, free: 15.05 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.225e-05/0.1545, allocations: 19.94 kB / 416.1 MB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.213e-05/0.1545, allocations: 28.91 kB / 416.1 MB, free: 15.01 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004211/0.1587, allocations: 1.184 MB / 417.3 MB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001908/0.1606, allocations: 0.7177 MB / 418 MB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006337/0.167, allocations: 5.788 MB / 423.8 MB, free: 7.016 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001349/0.1683, allocations: 92 kB / 423.9 MB, free: 6.926 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002447/0.1686, allocations: 143.9 kB / 424.1 MB, free: 6.785 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.0006388/0.1692, allocations: 303.7 kB / 424.4 MB, free: 6.477 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003425/0.1695, allocations: 192 kB / 424.5 MB, free: 6.289 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004021/0.1736, allocations: 2.268 MB / 426.8 MB, free: 3.973 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.436e-05/0.1736, allocations: 28 kB / 426.8 MB, free: 3.945 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.1736, allocations: 7.984 kB / 426.8 MB, free: 3.938 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.517e-05/0.1736, allocations: 11.95 kB / 426.9 MB, free: 3.926 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005543/0.1791, allocations: 3.475 MB / 430.3 MB, free: 336 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.1791, allocations: 0 / 430.3 MB, free: 336 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.1802, allocations: 495.7 kB / 430.8 MB, free: 15.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003062/0.1832, allocations: 1.082 MB / 431.9 MB, free: 14.74 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001794/0.1834, allocations: 91.94 kB / 432 MB, free: 14.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004587/0.188, allocations: 5.478 MB / 437.5 MB, free: 8.883 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.188, allocations: 11.92 kB / 437.5 MB, free: 8.871 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004526/0.1925, allocations: 2.636 MB / 440.1 MB, free: 6.086 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003847/0.1929, allocations: 178.6 kB / 440.3 MB, free: 5.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001913/0.1931, allocations: 52 kB / 440.3 MB, free: 5.859 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006006/0.1937, allocations: 52 kB / 440.4 MB, free: 5.809 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003753/0.1941, allocations: 241.5 kB / 440.6 MB, free: 5.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001582/0.1943, allocations: 87.94 kB / 440.7 MB, free: 5.484 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003737/0.1946, allocations: 461.1 kB / 441.2 MB, free: 5.027 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1946, allocations: 0 / 441.2 MB, free: 5.027 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003211/0.1978, allocations: 1.442 MB / 442.6 MB, free: 3.582 MB / 410.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.002253/0.2001, allocations: 1.584 MB / 444.2 MB, free: 1.988 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.1112/0.3113, allocations: 2.186 MB / 446.4 MB, free: 125 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.222e-05/0.3114, allocations: 22.44 kB / 446.4 MB, free: 125 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002281/0.3137, allocations: 1.318 MB / 447.7 MB, free: 124.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001536/0.3152, allocations: 429.9 kB / 448.1 MB, free: 124.6 MB / 410.7 MB Error: Error parsing unit kDa: Unit not found Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006872/0.3221, allocations: 4.177 MB / 452.3 MB, free: 122.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004956/0.3226, allocations: 435.1 kB / 452.7 MB, free: 122.8 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001684/0.3243, allocations: 489.9 kB / 453.2 MB, free: 122.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001408/0.3257, allocations: 0.6323 MB / 453.8 MB, free: 122.7 MB / 410.7 MB Notification: Performance of SimCode: time 1.523e-06/0.3257, allocations: 0 / 453.8 MB, free: 122.7 MB / 410.7 MB Notification: Performance of Templates: time 0.05683/0.3825, allocations: 60.42 MB / 0.5022 GB, free: 75.52 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.makefile [Timeout 660] (rm -f Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.sim & ./Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.538913216907531]